#include <CalibTracker/SiPixelESProducer/src/SiPixelFakeQualityESSource.cc>
Public Member Functions | |
virtual std::auto_ptr < SiPixelQuality > | produce (const SiPixelQualityFromDbRcd &) |
SiPixelFakeQualityESSource (const edm::ParameterSet &) | |
~SiPixelFakeQualityESSource () | |
Protected Member Functions | |
virtual void | setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) |
Private Attributes | |
edm::FileInPath | fp_ |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 37 of file SiPixelFakeQualityESSource.h.
SiPixelFakeQualityESSource::SiPixelFakeQualityESSource | ( | const edm::ParameterSet & | conf_ | ) |
Definition at line 29 of file SiPixelFakeQualityESSource.cc.
References edm::ESProducer::setWhatProduced().
: fp_(conf_.getParameter<edm::FileInPath>("file")) { edm::LogInfo("SiPixelFakeQualityESSource::SiPixelFakeQualityESSource"); //the following line is needed to tell the framework what // data is being produced setWhatProduced(this); findingRecord<SiPixelQualityFromDbRcd>(); }
SiPixelFakeQualityESSource::~SiPixelFakeQualityESSource | ( | ) |
Definition at line 38 of file SiPixelFakeQualityESSource.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) }
std::auto_ptr< SiPixelQuality > SiPixelFakeQualityESSource::produce | ( | const SiPixelQualityFromDbRcd & | ) | [virtual] |
Definition at line 46 of file SiPixelFakeQualityESSource.cc.
References SiPixelQuality::addDisabledModule(), SiPixelQuality::disabledModuleType::BadRocs, SiPixelQuality::disabledModuleType::DetID, SiPixelQuality::disabledModuleType::errorType, and VarParsing::obj.
{ // errortype "whole" = int 0 in DB BadRocs = 65535 // // errortype "tbmA" = int 1 in DB BadRocs = 255 // // errortype "tbmB" = int 2 in DB Bad Rocs = 65280 // // errortype "none" = int 3 in DB // SiPixelQuality * obj = new SiPixelQuality(); SiPixelQuality::disabledModuleType BadModule; BadModule.DetID = 1; BadModule.errorType = 0; BadModule.BadRocs = 65535; obj->addDisabledModule(BadModule); return std::auto_ptr<SiPixelQuality>(obj); }
void SiPixelFakeQualityESSource::setIntervalFor | ( | const edm::eventsetup::EventSetupRecordKey & | , |
const edm::IOVSyncValue & | iosv, | ||
edm::ValidityInterval & | oValidity | ||
) | [protected, virtual] |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 66 of file SiPixelFakeQualityESSource.cc.
References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), and infinity.
{ edm::ValidityInterval infinity( iosv.beginOfTime(), iosv.endOfTime() ); oValidity = infinity; }
Definition at line 56 of file SiPixelFakeQualityESSource.h.