CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
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:81
EcalTBHodoscopeGeometryLoaderFromDDD loader_
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
#define LogDebug(id)