#include <Geometry/ForwardGeometry/plugins/ZdcHardcodeGeometryEP.h>
Public Types | |
typedef boost::shared_ptr < CaloSubdetectorGeometry > | ReturnType |
Public Member Functions | |
void | idealRecordCallBack (const IdealGeometryRecord &) |
ReturnType | produceAligned (const ZDCGeometryRecord &) |
ReturnType | produceIdeal (const IdealGeometryRecord &) |
ZdcHardcodeGeometryEP (const edm::ParameterSet &) | |
~ZdcHardcodeGeometryEP () | |
Private Attributes | |
bool | m_applyAlignment |
ZdcHardcodeGeometryLoader * | m_loader |
ZdcTopology | m_topology |
Implementation: <Notes on="" implementation>="">
Definition at line 22 of file ZdcHardcodeGeometryEP.h.
typedef boost::shared_ptr<CaloSubdetectorGeometry> ZdcHardcodeGeometryEP::ReturnType |
Definition at line 28 of file ZdcHardcodeGeometryEP.h.
ZdcHardcodeGeometryEP::ZdcHardcodeGeometryEP | ( | const edm::ParameterSet & | ps | ) |
Definition at line 22 of file ZdcHardcodeGeometryEP.cc.
References edm::eventsetup::dependsOn(), idealRecordCallBack(), produceAligned(), and edm::ESProducer::setWhatProduced().
00022 : 00023 m_loader (0), 00024 m_topology () , 00025 m_applyAlignment ( ps.getUntrackedParameter<bool>("applyAlignment", false) ) 00026 { 00027 //the following line is needed to tell the framework what 00028 // data is being produced 00029 setWhatProduced( this, 00030 &ZdcHardcodeGeometryEP::produceAligned, 00031 dependsOn( &ZdcHardcodeGeometryEP::idealRecordCallBack ), 00032 "ZDC"); 00033 00034 // disable 00035 // setWhatProduced( this, 00036 // &ZdcHardcodeGeometryEP::produceIdeal, 00037 // edm::es::Label( "ZDC" ) ); 00038 }
ZdcHardcodeGeometryEP::~ZdcHardcodeGeometryEP | ( | ) |
Definition at line 41 of file ZdcHardcodeGeometryEP.cc.
References m_loader.
00042 { 00043 delete m_loader ; 00044 }
void ZdcHardcodeGeometryEP::idealRecordCallBack | ( | const IdealGeometryRecord & | iRecord | ) |
ZdcHardcodeGeometryEP::ReturnType ZdcHardcodeGeometryEP::produceAligned | ( | const ZDCGeometryRecord & | iRecord | ) |
Definition at line 70 of file ZdcHardcodeGeometryEP.cc.
References ZdcHardcodeGeometryLoader::load(), m_loader, m_topology, and ptr.
Referenced by ZdcHardcodeGeometryEP().
00071 { 00072 // ZdcHardcodeGeometryLoader loader ( m_topology ) ; 00073 m_loader = new ZdcHardcodeGeometryLoader( m_topology ) ; 00074 00075 ReturnType ptr ( m_loader->load() ) ; 00076 00077 return ptr ; 00078 }
ZdcHardcodeGeometryEP::ReturnType ZdcHardcodeGeometryEP::produceIdeal | ( | const IdealGeometryRecord & | iRecord | ) |
Definition at line 59 of file ZdcHardcodeGeometryEP.cc.
References ZdcHardcodeGeometryLoader::load(), m_applyAlignment, m_topology, and ptr.
00060 { 00061 assert( !m_applyAlignment ) ; 00062 00063 ZdcHardcodeGeometryLoader loader ( m_topology ) ; 00064 00065 ReturnType ptr ( loader.load() ) ; 00066 return ptr ; 00067 }
bool ZdcHardcodeGeometryEP::m_applyAlignment [private] |
Definition at line 39 of file ZdcHardcodeGeometryEP.h.
Referenced by produceAligned(), and ~ZdcHardcodeGeometryEP().
ZdcTopology ZdcHardcodeGeometryEP::m_topology [private] |
Definition at line 41 of file ZdcHardcodeGeometryEP.h.
Referenced by produceAligned(), and produceIdeal().