Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #include <fstream>
0002 #include <memory>
0003 
0004 #include "CalibMuon/CSCCalibration/interface/CSCBadStripsConditions.h"
0005 #include "CondFormats/CSCObjects/interface/CSCBadStrips.h"
0006 #include "CondFormats/DataRecord/interface/CSCBadStripsRcd.h"
0007 
0008 CSCBadStripsConditions::CSCBadStripsConditions(const edm::ParameterSet &iConfig) {
0009   // the following line is needed to tell the framework what
0010   // data is being produced
0011   setWhatProduced(this, &CSCBadStripsConditions::produceBadStrips);
0012   findingRecord<CSCBadStripsRcd>();
0013   // now do what ever other initialization is needed
0014 }
0015 
0016 CSCBadStripsConditions::~CSCBadStripsConditions() {
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 CSCBadStripsConditions::ReturnType CSCBadStripsConditions::produceBadStrips(const CSCBadStripsRcd &iRecord) {
0027   // need a new object so to not be deleted at exit
0028   return CSCBadStripsConditions::ReturnType(prefillBadStrips());
0029 }
0030 
0031 void CSCBadStripsConditions::setIntervalFor(const edm::eventsetup::EventSetupRecordKey &,
0032                                             const edm::IOVSyncValue &,
0033                                             edm::ValidityInterval &oValidity) {
0034   oValidity = edm::ValidityInterval(edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime());
0035 }