CMS 3D CMS Logo

EcalTBHodoscopeGeometryEP.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: EcalTBHodoscopeGeometryEP
4 // Class: EcalTBHodoscopeGeometryEP
5 //
13 //
14 
15 //
16 //
17 
19 
20 //
21 // constants, enums and typedefs
22 //
23 
24 //
25 // static data member definitions
26 //
27 
28 //
29 // constructors and destructor
30 //
32  : cpvToken_{setWhatProduced(this, "EcalLaserPnDiode").consumes<DDCompactView>(edm::ESInputTag{})} {}
33 
34 //
35 // member functions
36 //
37 
38 // ------------ method called to produce the data ------------
41 
42  LogDebug("EcalTBHodoscopeGeometryEP") << "[EcalTBHodoscopeGeometryEP]::Constructing EcalTBHodoscopeGeometry";
43  return std::unique_ptr<CaloSubdetectorGeometry>(loader_.load(&(*cpv)));
44 }
edm::ESInputTag
Definition: ESInputTag.h:87
EcalTBHodoscopeGeometryEP::produce
ReturnType produce(const IdealGeometryRecord &)
Definition: EcalTBHodoscopeGeometryEP.cc:39
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
EcalTBHodoscopeGeometryEP.h
EcalTBHodoscopeGeometryLoaderFromDDD::load
std::unique_ptr< CaloSubdetectorGeometry > load(const DDCompactView *cpv)
Definition: EcalTBHodoscopeGeometryLoaderFromDDD.cc:21
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
edm::eventsetup::DependentRecordImplementation::getTransientHandle
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:92
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:223
edm::ParameterSet
Definition: ParameterSet.h:47
edm::ESTransientHandle
Definition: ESTransientHandle.h:41
EcalTBHodoscopeGeometryEP::cpvToken_
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvToken_
Definition: EcalTBHodoscopeGeometryEP.h:35
EcalTBHodoscopeGeometryEP::ReturnType
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
Definition: EcalTBHodoscopeGeometryEP.h:28
EcalTBHodoscopeGeometryEP::loader_
EcalTBHodoscopeGeometryLoaderFromDDD loader_
Definition: EcalTBHodoscopeGeometryEP.h:34
IdealGeometryRecord
Definition: IdealGeometryRecord.h:25
EcalTBHodoscopeGeometryEP::EcalTBHodoscopeGeometryEP
EcalTBHodoscopeGeometryEP(const edm::ParameterSet &)
Definition: EcalTBHodoscopeGeometryEP.cc:31