#include <SiPixelFakeCPEGenericErrorParmESSource.h>
Public Member Functions | |
virtual std::auto_ptr < SiPixelCPEGenericErrorParm > | produce (const SiPixelCPEGenericErrorParmRcd &) |
SiPixelFakeCPEGenericErrorParmESSource (const edm::ParameterSet &) | |
~SiPixelFakeCPEGenericErrorParmESSource () | |
Protected Member Functions | |
virtual void | setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) |
Private Attributes | |
edm::FileInPath | fp_ |
double | version_ |
Definition at line 13 of file SiPixelFakeCPEGenericErrorParmESSource.h.
SiPixelFakeCPEGenericErrorParmESSource::SiPixelFakeCPEGenericErrorParmESSource | ( | const edm::ParameterSet & | conf_ | ) |
Definition at line 4 of file SiPixelFakeCPEGenericErrorParmESSource.cc.
References edm::ESProducer::setWhatProduced().
: fp_(conf_.getParameter<edm::FileInPath>("file")), version_(conf_.getParameter<double>("version")) { edm::LogInfo("SiPixelFakeCPEGenericErrorParmESSource::SiPixelFakeCPEGenericErrorParmESSource"); //the following line is needed to tell the framework what // data is being produced setWhatProduced(this); findingRecord<SiPixelCPEGenericErrorParmRcd>(); }
SiPixelFakeCPEGenericErrorParmESSource::~SiPixelFakeCPEGenericErrorParmESSource | ( | ) |
Definition at line 13 of file SiPixelFakeCPEGenericErrorParmESSource.cc.
{ }
std::auto_ptr< SiPixelCPEGenericErrorParm > SiPixelFakeCPEGenericErrorParmESSource::produce | ( | const SiPixelCPEGenericErrorParmRcd & | ) | [virtual] |
Definition at line 17 of file SiPixelFakeCPEGenericErrorParmESSource.cc.
References fp_, edm::FileInPath::fullPath(), getGTfromDQMFile::obj, and version_.
{ using namespace edm::es; SiPixelCPEGenericErrorParm * obj = new SiPixelCPEGenericErrorParm(); obj->fillCPEGenericErrorParm(version_, fp_.fullPath()); //std::cout << *obj << std::endl; return std::auto_ptr<SiPixelCPEGenericErrorParm>(obj); }
void SiPixelFakeCPEGenericErrorParmESSource::setIntervalFor | ( | const edm::eventsetup::EventSetupRecordKey & | , |
const edm::IOVSyncValue & | iosv, | ||
edm::ValidityInterval & | oValidity | ||
) | [protected, virtual] |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 27 of file SiPixelFakeCPEGenericErrorParmESSource.cc.
References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), and infinity.
{ edm::ValidityInterval infinity( iosv.beginOfTime(), iosv.endOfTime() ); oValidity = infinity; }
Definition at line 29 of file SiPixelFakeCPEGenericErrorParmESSource.h.
Referenced by produce().
double SiPixelFakeCPEGenericErrorParmESSource::version_ [private] |
Definition at line 30 of file SiPixelFakeCPEGenericErrorParmESSource.h.
Referenced by produce().