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 }
#define LogDebug(id)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:138
ReturnType produce(const IdealGeometryRecord &)
std::unique_ptr< CaloSubdetectorGeometry > load(const DDCompactView *cpv)
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvToken_
EcalTBHodoscopeGeometryEP(const edm::ParameterSet &)
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
EcalTBHodoscopeGeometryLoaderFromDDD loader_
std::unique_ptr< CaloSubdetectorGeometry > ReturnType