#include <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_ |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 26 of file EcalTBHodoscopeGeometryEP.h.
typedef std::auto_ptr<CaloSubdetectorGeometry> EcalTBHodoscopeGeometryEP::ReturnType |
Definition at line 31 of file EcalTBHodoscopeGeometryEP.h.
EcalTBHodoscopeGeometryEP::EcalTBHodoscopeGeometryEP | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 34 of file EcalTBHodoscopeGeometryEP.cc.
References loader_, and edm::ESProducer::setWhatProduced().
{ //the following line is needed to tell the framework what // data is being produced setWhatProduced(this,"EcalLaserPnDiode"); //now do what ever other initialization is needed loader_=new EcalTBHodoscopeGeometryLoaderFromDDD(); }
EcalTBHodoscopeGeometryEP::~EcalTBHodoscopeGeometryEP | ( | ) |
EcalTBHodoscopeGeometryEP::ReturnType EcalTBHodoscopeGeometryEP::produce | ( | const IdealGeometryRecord & | iRecord | ) |
Definition at line 56 of file EcalTBHodoscopeGeometryEP.cc.
References gather_cfg::cout, edm::eventsetup::EventSetupRecord::get(), EcalTBHodoscopeGeometryLoaderFromDDD::load(), and loader_.
{ edm::ESTransientHandle<DDCompactView> cpv; iRecord.get( cpv ); std::cout << "[EcalTBHodoscopeGeometryEP]::Constructing EcalTBHodoscopeGeometry" << std::endl; std::auto_ptr<CaloSubdetectorGeometry> pCaloSubdetectorGeometry(loader_->load(&(*cpv))) ; return pCaloSubdetectorGeometry ; }
Definition at line 38 of file EcalTBHodoscopeGeometryEP.h.
Referenced by EcalTBHodoscopeGeometryEP(), produce(), and ~EcalTBHodoscopeGeometryEP().