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 
20 
21 #include <iostream>
22 //
23 // constants, enums and typedefs
24 //
25 
26 //
27 // static data member definitions
28 //
29 
30 //
31 // constructors and destructor
32 //
34 {
35  //the following line is needed to tell the framework what
36  // data is being produced
37  setWhatProduced(this,"EcalLaserPnDiode");
38  //now do what ever other initialization is needed
40 }
41 
42 
44 {
45  delete loader_;
46 }
47 
48 
49 //
50 // member functions
51 //
52 
53 // ------------ method called to produce the data ------------
56 {
57 
59  iRecord.get( cpv );
60 
61  std::cout << "[EcalTBHodoscopeGeometryEP]::Constructing EcalTBHodoscopeGeometry" << std::endl;
62  return std::unique_ptr<CaloSubdetectorGeometry>(loader_->load(&(*cpv)));
63 }
64 
65 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:116
ReturnType produce(const IdealGeometryRecord &)
std::unique_ptr< CaloSubdetectorGeometry > load(const DDCompactView *cpv)
EcalTBHodoscopeGeometryLoaderFromDDD * loader_
EcalTBHodoscopeGeometryEP(const edm::ParameterSet &)
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
bool get(HolderT &iHolder) const