Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:21

0001 #include "CalibMuon/CSCCalibration/interface/CSCFakeDBPedestals.h"
0002 #include "CalibMuon/CSCCalibration/interface/CSCPedestalsDBConditions.h"
0003 #include "CondFormats/CSCObjects/interface/CSCDBPedestals.h"
0004 #include "CondFormats/DataRecord/interface/CSCDBPedestalsRcd.h"
0005 
0006 CSCFakeDBPedestals::CSCFakeDBPedestals(const edm::ParameterSet &iConfig) {
0007   // the following line is needed to tell the framework what
0008   // data is being produced
0009   setWhatProduced(this, &CSCFakeDBPedestals::produceDBPedestals);
0010   findingRecord<CSCDBPedestalsRcd>();
0011 }
0012 
0013 CSCFakeDBPedestals::~CSCFakeDBPedestals() {}
0014 
0015 // ------------ method called to produce the data  ------------
0016 CSCFakeDBPedestals::Pointer CSCFakeDBPedestals::produceDBPedestals(const CSCDBPedestalsRcd &iRecord) {
0017   Pointer cndbPedestals(prefillDBPedestals());
0018   return cndbPedestals;
0019 }
0020 
0021 void CSCFakeDBPedestals::setIntervalFor(const edm::eventsetup::EventSetupRecordKey &,
0022                                         const edm::IOVSyncValue &,
0023                                         edm::ValidityInterval &oValidity) {
0024   oValidity = edm::ValidityInterval(edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime());
0025 }