Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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