00001 #include "CalibMuon/CSCCalibration/interface/CSCFakeDBPedestals.h" 00002 #include "CondFormats/CSCObjects/interface/CSCDBPedestals.h" 00003 #include "CondFormats/DataRecord/interface/CSCDBPedestalsRcd.h" 00004 #include "CalibMuon/CSCCalibration/interface/CSCPedestalsDBConditions.h" 00005 00006 CSCFakeDBPedestals::CSCFakeDBPedestals(const edm::ParameterSet& iConfig) 00007 { 00008 cndbPedestals = boost::shared_ptr<CSCDBPedestals> ( prefillDBPedestals() ); 00009 00010 //the following line is needed to tell the framework what 00011 // data is being produced 00012 setWhatProduced(this,&CSCFakeDBPedestals::produceDBPedestals); 00013 findingRecord<CSCDBPedestalsRcd>(); 00014 } 00015 00016 00017 CSCFakeDBPedestals::~CSCFakeDBPedestals() 00018 { 00019 } 00020 00021 // ------------ method called to produce the data ------------ 00022 CSCFakeDBPedestals::Pointer 00023 CSCFakeDBPedestals::produceDBPedestals(const CSCDBPedestalsRcd& iRecord) 00024 { 00025 return cndbPedestals; 00026 } 00027 00028 void CSCFakeDBPedestals::setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue&, 00029 edm::ValidityInterval & oValidity) 00030 { 00031 oValidity = edm::ValidityInterval(edm::IOVSyncValue::beginOfTime(),edm::IOVSyncValue::endOfTime()); 00032 00033 }