Public Types | |
typedef boost::shared_ptr < EcalSeverityLevelAlgo > | ReturnType |
Public Member Functions | |
EcalSeverityLevelESProducer (const edm::ParameterSet &iConfig) | |
ReturnType | produce (const EcalSeverityLevelAlgoRcd &iRecord) |
Private Member Functions | |
void | chstatusCallback (const EcalChannelStatusRcd &chs) |
Private Attributes | |
ReturnType | algo_ |
Definition at line 20 of file EcalSeverityLevelESProducer.cc.
typedef boost::shared_ptr<EcalSeverityLevelAlgo> EcalSeverityLevelESProducer::ReturnType |
Definition at line 25 of file EcalSeverityLevelESProducer.cc.
EcalSeverityLevelESProducer::EcalSeverityLevelESProducer | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 38 of file EcalSeverityLevelESProducer.cc.
References algo_, chstatusCallback(), edm::eventsetup::dependsOn(), and edm::ESProducer::setWhatProduced().
{ //the following line is needed to tell the framework what // data is being produced setWhatProduced(this, dependsOn (&EcalSeverityLevelESProducer::chstatusCallback)); algo_ = ReturnType(new EcalSeverityLevelAlgo(iConfig)); }
void EcalSeverityLevelESProducer::chstatusCallback | ( | const EcalChannelStatusRcd & | chs | ) | [private] |
Definition at line 57 of file EcalSeverityLevelESProducer.cc.
References algo_, edm::eventsetup::EventSetupRecord::get(), h, and edm::ESHandle< T >::product().
Referenced by EcalSeverityLevelESProducer().
{ edm::ESHandle <EcalChannelStatus> h; chs.get (h); algo_->setChannelStatus(*h.product()); }
EcalSeverityLevelESProducer::ReturnType EcalSeverityLevelESProducer::produce | ( | const EcalSeverityLevelAlgoRcd & | iRecord | ) |
ReturnType EcalSeverityLevelESProducer::algo_ [private] |
Definition at line 35 of file EcalSeverityLevelESProducer.cc.
Referenced by chstatusCallback(), EcalSeverityLevelESProducer(), and produce().