CMS 3D CMS Logo

CSCChamberTimeCorrectionsValues.cc
Go to the documentation of this file.
1 #include <memory>
2 #include "boost/shared_ptr.hpp"
3 #include <fstream>
4 
9 
11 {
12  //the following line is needed to tell the framework what
13  // data is being produced
14  isForMC = iConfig.getUntrackedParameter<bool>("isForMC",true);
15  ME11offsetMC = 184;
16  ME11offsetData = 205;
17  nonME11offsetMC = 174;
18  nonME11offsetData = 216;
20  findingRecord<CSCChamberTimeCorrectionsRcd>();
21  //now do what ever other initialization is needed
22 }
23 
24 
26 {
27 
28  // do anything here that needs to be done at desctruction time
29  // (e.g. close files, deallocate resources etc.)
30 }
31 
32 
33 //
34 // member functions
35 //
36 
37 // ------------ method called to produce the data ------------
40 {
41  //need a new object so to not be deleted at exit
43 
44 
45 }
46 
48  edm::ValidityInterval & oValidity)
49  {
51 
52  }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
T getUntrackedParameter(std::string const &, T const &) const
std::unique_ptr< CSCChamberTimeCorrections > ReturnType
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:82
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:19
static CSCChamberTimeCorrections * prefill(bool isMC, float ME11offset, float nonME11offset)
CSCChamberTimeCorrectionsValues(const edm::ParameterSet &)
static const IOVSyncValue & beginOfTime()
Definition: IOVSyncValue.cc:88
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
ReturnType produceChamberTimeCorrections(const CSCChamberTimeCorrectionsRcd &)