Pure virtual class for EventSetup sources of SiStripApvGain. More...
#include <SiStripGainESSource.h>
Public Member Functions | |
virtual std::auto_ptr < SiStripApvGain > | produce (const SiStripApvGainRcd &) |
SiStripGainESSource (const edm::ParameterSet &) | |
virtual | ~SiStripGainESSource () |
Protected Member Functions | |
virtual void | setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) |
Private Member Functions | |
virtual SiStripApvGain * | makeGain ()=0 |
const SiStripGainESSource & | operator= (const SiStripGainESSource &) |
SiStripGainESSource (const SiStripGainESSource &) |
Pure virtual class for EventSetup sources of SiStripApvGain.
Definition at line 18 of file SiStripGainESSource.h.
SiStripGainESSource::SiStripGainESSource | ( | const edm::ParameterSet & | pset | ) |
Definition at line 13 of file SiStripGainESSource.cc.
{ setWhatProduced( this ); findingRecord<SiStripApvGainRcd>(); }
virtual SiStripGainESSource::~SiStripGainESSource | ( | ) | [inline, virtual] |
Definition at line 23 of file SiStripGainESSource.h.
{;}
SiStripGainESSource::SiStripGainESSource | ( | const SiStripGainESSource & | ) | [private] |
virtual SiStripApvGain* SiStripGainESSource::makeGain | ( | ) | [private, pure virtual] |
Implemented in SiStripGainBuilderFromDb.
const SiStripGainESSource& SiStripGainESSource::operator= | ( | const SiStripGainESSource & | ) | [private] |
std::auto_ptr< SiStripApvGain > SiStripGainESSource::produce | ( | const SiStripApvGainRcd & | ) | [virtual] |
Definition at line 20 of file SiStripGainESSource.cc.
References CastorDbHardcode::makeGain(), and sistrip::mlESSources_.
{ SiStripApvGain* gain = makeGain(); if ( !gain ) { edm::LogWarning(mlESSources_) << "[SiStripGainESSource::" << __func__ << "]" << " Null pointer to SiStripApvGain object!"; } std::auto_ptr<SiStripApvGain> ptr(gain); return ptr; }
void SiStripGainESSource::setIntervalFor | ( | const edm::eventsetup::EventSetupRecordKey & | , |
const edm::IOVSyncValue & | iosv, | ||
edm::ValidityInterval & | oValidity | ||
) | [protected, virtual] |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 37 of file SiStripGainESSource.cc.
References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), and infinity.
{ edm::ValidityInterval infinity( iosv.beginOfTime(), iosv.endOfTime() ); oValidity = infinity; }