Geometry
ForwardGeometry
plugins
CastorHardcodeGeometryEP.cc
Go to the documentation of this file.
1
#include "
Geometry/ForwardGeometry/interface/CastorGeometry.h
"
2
#include "
Geometry/ForwardGeometry/plugins/CastorHardcodeGeometryEP.h
"
3
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
4
5
CastorHardcodeGeometryEP::CastorHardcodeGeometryEP
(
const
edm::ParameterSet
& iConfig) {
6
//the following line is needed to tell the framework what
7
// data is being produced
8
setWhatProduced
(
this
,
CastorGeometry::producerTag
());
9
10
loader_
=
nullptr
;
11
}
12
13
CastorHardcodeGeometryEP::~CastorHardcodeGeometryEP
() {
14
if
(
loader_
)
15
delete
loader_
;
16
}
17
18
//
19
// member functions
20
//
21
22
// ------------ method called to produce the data ------------
23
CastorHardcodeGeometryEP::ReturnType
CastorHardcodeGeometryEP::produce
(
const
CastorGeometryRecord
& iRecord) {
24
loader_
=
new
CastorHardcodeGeometryLoader
();
25
return
std::unique_ptr<CaloSubdetectorGeometry>(
loader_
->
load
());
26
}
CastorHardcodeGeometryEP::CastorHardcodeGeometryEP
CastorHardcodeGeometryEP(const edm::ParameterSet &)
Definition:
CastorHardcodeGeometryEP.cc:5
MessageLogger.h
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:138
CastorGeometry::producerTag
static std::string producerTag()
Definition:
CastorGeometry.h:48
CastorHardcodeGeometryLoader
Definition:
CastorHardcodeGeometryLoader.h:11
CastorHardcodeGeometryEP::ReturnType
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
Definition:
CastorHardcodeGeometryEP.h:24
CastorGeometryRecord
Definition:
CastorGeometryRecord.h:23
CastorHardcodeGeometryLoader::load
virtual std::unique_ptr< CaloSubdetectorGeometry > load(DetId::Detector det, int subdet)
Definition:
CastorHardcodeGeometryLoader.cc:31
CastorHardcodeGeometryEP::produce
ReturnType produce(const CastorGeometryRecord &)
Definition:
CastorHardcodeGeometryEP.cc:23
CastorHardcodeGeometryEP.h
edm::ParameterSet
Definition:
ParameterSet.h:36
CastorHardcodeGeometryEP::loader_
CastorHardcodeGeometryLoader * loader_
Definition:
CastorHardcodeGeometryEP.h:30
CastorHardcodeGeometryEP::~CastorHardcodeGeometryEP
~CastorHardcodeGeometryEP() override
Definition:
CastorHardcodeGeometryEP.cc:13
CastorGeometry.h
Generated for CMSSW Reference Manual by
1.8.16