![]() |
![]() |
#include <Geometry/EcalTestBeam/plugins/EcalTBHodoscopeGeometryEP.h>
Public Types | |
typedef std::auto_ptr < CaloSubdetectorGeometry > | ReturnType |
Public Member Functions | |
EcalTBHodoscopeGeometryEP (const edm::ParameterSet &) | |
ReturnType | produce (const IdealGeometryRecord &) |
~EcalTBHodoscopeGeometryEP () | |
Private Attributes | |
EcalTBHodoscopeGeometryLoaderFromDDD * | loader_ |
Implementation: <Notes on="" implementation>="">
Definition at line 25 of file EcalTBHodoscopeGeometryEP.h.
typedef std::auto_ptr<CaloSubdetectorGeometry> EcalTBHodoscopeGeometryEP::ReturnType |
Definition at line 30 of file EcalTBHodoscopeGeometryEP.h.
EcalTBHodoscopeGeometryEP::EcalTBHodoscopeGeometryEP | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 34 of file EcalTBHodoscopeGeometryEP.cc.
References loader_, and edm::ESProducer::setWhatProduced().
00035 { 00036 //the following line is needed to tell the framework what 00037 // data is being produced 00038 setWhatProduced(this,"EcalLaserPnDiode"); 00039 //now do what ever other initialization is needed 00040 loader_=new EcalTBHodoscopeGeometryLoaderFromDDD(); 00041 }
EcalTBHodoscopeGeometryEP::~EcalTBHodoscopeGeometryEP | ( | ) |
Definition at line 44 of file EcalTBHodoscopeGeometryEP.cc.
References loader_.
00045 { 00046 delete loader_; 00047 }
EcalTBHodoscopeGeometryEP::ReturnType EcalTBHodoscopeGeometryEP::produce | ( | const IdealGeometryRecord & | iRecord | ) |
Definition at line 56 of file EcalTBHodoscopeGeometryEP.cc.
References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), edm::eventsetup::EventSetupRecordImplementation< T >::get(), EcalTBHodoscopeGeometryLoaderFromDDD::load(), and loader_.
00057 { 00058 using namespace edm::es; 00059 00060 edm::ESHandle<DDCompactView> cpv; 00061 iRecord.get( cpv ); 00062 00063 std::cout << "[EcalTBHodoscopeGeometryEP]::Constructing EcalTBHodoscopeGeometry" << std::endl; 00064 std::auto_ptr<CaloSubdetectorGeometry> pCaloSubdetectorGeometry(loader_->load(&(*cpv))) ; 00065 return pCaloSubdetectorGeometry ; 00066 }
Definition at line 37 of file EcalTBHodoscopeGeometryEP.h.
Referenced by EcalTBHodoscopeGeometryEP(), produce(), and ~EcalTBHodoscopeGeometryEP().