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 
36 //
37 // member functions
38 //
39 
40 // ------------ method called to produce the data ------------
43 {
44 
46 
47  LogDebug("EcalTBHodoscopeGeometryEP") << "[EcalTBHodoscopeGeometryEP]::Constructing EcalTBHodoscopeGeometry";
48  return std::unique_ptr<CaloSubdetectorGeometry>(loader_.load(&(*cpv)));
49 }
50 
51 
#define LogDebug(id)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
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