#include <tmp/HcalHardcodeGeometryEP/interface/HcalHardcodeGeometryEP.h>
Public Types | |
typedef boost::shared_ptr < CaloSubdetectorGeometry > | ReturnType |
Public Member Functions | |
HcalHardcodeGeometryEP (const edm::ParameterSet &) | |
void | idealRecordCallBack (const IdealGeometryRecord &) |
ReturnType | produceAligned (const HcalGeometryRecord &) |
ReturnType | produceIdeal (const IdealGeometryRecord &) |
virtual | ~HcalHardcodeGeometryEP () |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 19 of file HcalHardcodeGeometryEP.h.
typedef boost::shared_ptr<CaloSubdetectorGeometry> HcalHardcodeGeometryEP::ReturnType |
Definition at line 25 of file HcalHardcodeGeometryEP.h.
HcalHardcodeGeometryEP::HcalHardcodeGeometryEP | ( | const edm::ParameterSet & | ) |
Definition at line 44 of file HcalHardcodeGeometryEP.cc.
References edm::eventsetup::dependsOn(), idealRecordCallBack(), produceAligned(), HcalGeometry::producerTag(), and edm::ESProducer::setWhatProduced().
{ //the following line is needed to tell the framework what // data is being produced setWhatProduced( this, &HcalHardcodeGeometryEP::produceAligned, dependsOn( &HcalHardcodeGeometryEP::idealRecordCallBack ), HcalGeometry::producerTag() ); // disable // setWhatProduced( this, // &HcalHardcodeGeometryEP::produceIdeal, // edm::es::Label( "HCAL" ) ); }
HcalHardcodeGeometryEP::~HcalHardcodeGeometryEP | ( | ) | [virtual] |
Definition at line 60 of file HcalHardcodeGeometryEP.cc.
{ }
void HcalHardcodeGeometryEP::idealRecordCallBack | ( | const IdealGeometryRecord & | ) |
Definition at line 72 of file HcalHardcodeGeometryEP.cc.
Referenced by HcalHardcodeGeometryEP().
{ }
HcalHardcodeGeometryEP::ReturnType HcalHardcodeGeometryEP::produceAligned | ( | const HcalGeometryRecord & | iRecord | ) |
Definition at line 87 of file HcalHardcodeGeometryEP.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and produceIdeal().
Referenced by HcalHardcodeGeometryEP().
{ const IdealGeometryRecord& idealRecord = iRecord.getRecord<IdealGeometryRecord>(); return produceIdeal (idealRecord); }
HcalHardcodeGeometryEP::ReturnType HcalHardcodeGeometryEP::produceIdeal | ( | const IdealGeometryRecord & | iRecord | ) |
Definition at line 77 of file HcalHardcodeGeometryEP.cc.
References edm::eventsetup::EventSetupRecord::get(), and HcalFlexiHardcodeGeometryLoader::load().
Referenced by produceAligned().
{ edm::LogInfo("HCAL") << "Using default HCAL topology" ; edm::ESHandle<HcalTopology> topology ; iRecord.get( topology ) ; HcalFlexiHardcodeGeometryLoader loader; return ReturnType (loader.load (*topology)); }