#include <CalibTracker/SiStripESProducers/interface/SiStripPedestalsESSource.h>
Public Member Functions | |
virtual std::auto_ptr < SiStripPedestals > | produce (const SiStripPedestalsRcd &) |
SiStripPedestalsESSource (const edm::ParameterSet &) | |
virtual | ~SiStripPedestalsESSource () |
Protected Member Functions | |
virtual void | setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) |
Private Member Functions | |
virtual SiStripPedestals * | makePedestals ()=0 |
const SiStripPedestalsESSource & | operator= (const SiStripPedestalsESSource &) |
SiStripPedestalsESSource (const SiStripPedestalsESSource &) |
Definition at line 23 of file SiStripPedestalsESSource.h.
SiStripPedestalsESSource::SiStripPedestalsESSource | ( | const edm::ParameterSet & | pset | ) |
Definition at line 17 of file SiStripPedestalsESSource.cc.
References edm::ESProducer::setWhatProduced().
00017 { 00018 setWhatProduced( this ); 00019 findingRecord<SiStripPedestalsRcd>(); 00020 }
virtual SiStripPedestalsESSource::~SiStripPedestalsESSource | ( | ) | [inline, virtual] |
SiStripPedestalsESSource::SiStripPedestalsESSource | ( | const SiStripPedestalsESSource & | ) | [private] |
virtual SiStripPedestals* SiStripPedestalsESSource::makePedestals | ( | ) | [private, pure virtual] |
Implemented in SiStripPedestalsFakeESSource, and SiStripPedestalsBuilderFromDb.
Referenced by produce().
const SiStripPedestalsESSource& SiStripPedestalsESSource::operator= | ( | const SiStripPedestalsESSource & | ) | [private] |
auto_ptr< SiStripPedestals > SiStripPedestalsESSource::produce | ( | const SiStripPedestalsRcd & | ) | [virtual] |
Definition at line 24 of file SiStripPedestalsESSource.cc.
References makePedestals(), sistrip::mlESSources_, and ptr.
00024 { 00025 00026 SiStripPedestals* peds = makePedestals(); 00027 00028 if ( !peds ) { 00029 edm::LogWarning(mlESSources_) 00030 << "[SiStripPedestalsESSource::" << __func__ << "]" 00031 << " Null pointer to SiStripPedestals object!"; 00032 } 00033 00034 auto_ptr<SiStripPedestals> ptr(peds); 00035 return ptr; 00036 00037 }
void SiStripPedestalsESSource::setIntervalFor | ( | const edm::eventsetup::EventSetupRecordKey & | , | |
const edm::IOVSyncValue & | iosv, | |||
edm::ValidityInterval & | oValidity | |||
) | [protected, virtual] |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 41 of file SiStripPedestalsESSource.cc.
References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), and infinity.
00043 { 00044 00045 edm::ValidityInterval infinity( iosv.beginOfTime(), iosv.endOfTime() ); 00046 oValidity = infinity; 00047 00048 }