#include <EcalLaserCorrectionService.h>
Public Member Functions | |
void | alphaCallback (const EcalLaserAlphasRcd &fRecord) |
void | apdpnCallback (const EcalLaserAPDPNRatiosRcd &fRecord) |
void | apdpnRefCallback (const EcalLaserAPDPNRatiosRefRcd &fRecord) |
EcalLaserCorrectionService (const edm::ParameterSet &) | |
boost::shared_ptr < EcalLaserDbService > | produce (const EcalLaserDbRecord &) |
~EcalLaserCorrectionService () | |
Private Attributes | |
boost::shared_ptr < EcalLaserDbService > | mService_ |
Definition at line 21 of file EcalLaserCorrectionService.h.
EcalLaserCorrectionService::EcalLaserCorrectionService | ( | const edm::ParameterSet & | fConfig | ) |
Definition at line 18 of file EcalLaserCorrectionService.cc.
References alphaCallback(), apdpnCallback(), apdpnRefCallback(), edm::eventsetup::dependsOn(), and edm::ESProducer::setWhatProduced().
: ESProducer(), mService_ ( new EcalLaserDbService ()) // mDumpRequest (), // mDumpStream(0) { //the following line is needed to tell the framework what // data is being produced // setWhatProduced (this, (dependsOn (&EcalLaserCorrectionService::apdpnCallback))); setWhatProduced (this, (dependsOn (&EcalLaserCorrectionService::alphaCallback) & (&EcalLaserCorrectionService::apdpnRefCallback) & (&EcalLaserCorrectionService::apdpnCallback) ) ); //now do what ever other initialization is needed // mDumpRequest = fConfig.getUntrackedParameter <std::vector <std::string> > ("dump", std::vector<std::string>()); // if (!mDumpRequest.empty()) { // std::string otputFile = fConfig.getUntrackedParameter <std::string> ("file", ""); // mDumpStream = otputFile.empty () ? &std::cout : new std::ofstream (otputFile.c_str()); // } }
EcalLaserCorrectionService::~EcalLaserCorrectionService | ( | ) |
Definition at line 43 of file EcalLaserCorrectionService.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) // if (mDumpStream != &std::cout) delete mDumpStream; }
void EcalLaserCorrectionService::alphaCallback | ( | const EcalLaserAlphasRcd & | fRecord | ) |
Definition at line 62 of file EcalLaserCorrectionService.cc.
References edm::eventsetup::EventSetupRecord::get(), mService_, and edm::ESHandle< T >::product().
Referenced by EcalLaserCorrectionService().
{ edm::ESHandle <EcalLaserAlphas> item; fRecord.get (item); mService_->setAlphaData (item.product ()); }
void EcalLaserCorrectionService::apdpnCallback | ( | const EcalLaserAPDPNRatiosRcd & | fRecord | ) |
Definition at line 74 of file EcalLaserCorrectionService.cc.
References edm::eventsetup::EventSetupRecord::get(), mService_, and edm::ESHandle< T >::product().
Referenced by EcalLaserCorrectionService().
{ edm::ESHandle <EcalLaserAPDPNRatios> item; fRecord.get (item); mService_->setAPDPNData (item.product ()); }
void EcalLaserCorrectionService::apdpnRefCallback | ( | const EcalLaserAPDPNRatiosRefRcd & | fRecord | ) |
Definition at line 68 of file EcalLaserCorrectionService.cc.
References edm::eventsetup::EventSetupRecord::get(), mService_, and edm::ESHandle< T >::product().
Referenced by EcalLaserCorrectionService().
{ edm::ESHandle <EcalLaserAPDPNRatiosRef> item; fRecord.get (item); mService_->setAPDPNRefData (item.product ()); }
boost::shared_ptr< EcalLaserDbService > EcalLaserCorrectionService::produce | ( | const EcalLaserDbRecord & | ) |
Definition at line 57 of file EcalLaserCorrectionService.cc.
References mService_.
{ return mService_; }
boost::shared_ptr<EcalLaserDbService> EcalLaserCorrectionService::mService_ [private] |
Definition at line 35 of file EcalLaserCorrectionService.h.
Referenced by alphaCallback(), apdpnCallback(), apdpnRefCallback(), and produce().