CMS 3D CMS Logo

CSCGasGainCorrectionDBConditions.cc
Go to the documentation of this file.
1 #include <fstream>
2 #include <memory>
3 
7 
9  // the following line is needed to tell the framework what
10  // data is being produced
11  isForMC = iConfig.getUntrackedParameter<bool>("isForMC", true);
12  dataCorrFileName = iConfig.getUntrackedParameter<std::string>("dataCorrFileName", "empty.txt");
13  // added by Zhen (changed since 1_2_0)
15  findingRecord<CSCDBGasGainCorrectionRcd>();
16  // now do what ever other initialization is needed
17 }
18 
20  // do anything here that needs to be done at desctruction time
21  // (e.g. close files, deallocate resources etc.)
22 }
23 
24 //
25 // member functions
26 //
27 
28 // ------------ method called to produce the data ------------
30  const CSCDBGasGainCorrectionRcd &iRecord) {
31  // need a new object so to not be deleted at exit
33 }
34 
36  const edm::IOVSyncValue &,
37  edm::ValidityInterval &oValidity) {
39 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
T getUntrackedParameter(std::string const &, T const &) const
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:82
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:19
CSCGasGainCorrectionDBConditions(const edm::ParameterSet &)
static const IOVSyncValue & beginOfTime()
Definition: IOVSyncValue.cc:88
std::unique_ptr< CSCDBGasGainCorrection > ReturnType
static CSCDBGasGainCorrection * prefillDBGasGainCorrection(bool isForMC, std::string dataCorrFileName)
ReturnType produceDBGasGainCorrection(const CSCDBGasGainCorrectionRcd &)
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override