Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:33

0001 #include <fstream>
0002 #include <memory>
0003 
0004 #include "CalibMuon/CSCCalibration/interface/CSCBadChambersConditions.h"
0005 #include "CondFormats/CSCObjects/interface/CSCBadChambers.h"
0006 #include "CondFormats/DataRecord/interface/CSCBadChambersRcd.h"
0007 
0008 CSCBadChambersConditions::CSCBadChambersConditions(const edm::ParameterSet &iConfig) {
0009   // the following line is needed to tell the framework what
0010   // data is being produced
0011   setWhatProduced(this, &CSCBadChambersConditions::produceBadChambers);
0012   findingRecord<CSCBadChambersRcd>();
0013   // now do what ever other initialization is needed
0014 }
0015 
0016 CSCBadChambersConditions::~CSCBadChambersConditions() {
0017   // do anything here that needs to be done at desctruction time
0018   // (e.g. close files, deallocate resources etc.)
0019 }
0020 
0021 //
0022 // member functions
0023 //
0024 
0025 // ------------ method called to produce the data  ------------
0026 CSCBadChambersConditions::ReturnType CSCBadChambersConditions::produceBadChambers(const CSCBadChambersRcd &iRecord) {
0027   // need a new object so to not be deleted at exit
0028   return CSCBadChambersConditions::ReturnType(prefillBadChambers());
0029 }
0030 
0031 void CSCBadChambersConditions::setIntervalFor(const edm::eventsetup::EventSetupRecordKey &,
0032                                               const edm::IOVSyncValue &,
0033                                               edm::ValidityInterval &oValidity) {
0034   oValidity = edm::ValidityInterval(edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime());
0035 }