#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 () |
Private Attributes | |
edm::ParameterSet | ps0 |
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 & | ps | ) |
Definition at line 44 of file HcalHardcodeGeometryEP.cc.
References edm::eventsetup::dependsOn(), idealRecordCallBack(), produceAligned(), HcalGeometry::producerTag(), and edm::ESProducer::setWhatProduced().
: ps0(ps) { //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 & | iRecord | ) |
Definition at line 72 of file HcalHardcodeGeometryEP.cc.
Referenced by HcalHardcodeGeometryEP().
{ }
HcalHardcodeGeometryEP::ReturnType HcalHardcodeGeometryEP::produceAligned | ( | const HcalGeometryRecord & | iRecord | ) |
Definition at line 88 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(), HcalFlexiHardcodeGeometryLoader::load(), and ps0.
Referenced by produceAligned().
{ edm::LogInfo("HCAL") << "Using default HCAL topology" ; edm::ESHandle<HcalTopology> topology ; iRecord.get( topology ) ; HcalFlexiHardcodeGeometryLoader loader(ps0); return ReturnType (loader.load (*topology)); }
edm::ParameterSet HcalHardcodeGeometryEP::ps0 [private] |
Definition at line 33 of file HcalHardcodeGeometryEP.h.
Referenced by produceIdeal().