CMS 3D CMS Logo

CSCPedestalsDBConditions.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  // added by Zhen (changed since 1_2_0)
13  findingRecord<CSCDBPedestalsRcd>();
14  // now do what ever other initialization is needed
15 }
16 
18  // do anything here that needs to be done at desctruction time
19  // (e.g. close files, deallocate resources etc.)
20 }
21 
22 //
23 // member functions
24 //
25 
26 // ------------ method called to produce the data ------------
28  // need a new object so to not be deleted at exit
30 }
31 
33  const edm::IOVSyncValue &,
34  edm::ValidityInterval &oValidity) {
36 }
CSCDBPedestalsRcd
Definition: CSCDBPedestalsRcd.h:5
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
edm::ValidityInterval
Definition: ValidityInterval.h:28
CSCPedestalsDBConditions::CSCPedestalsDBConditions
CSCPedestalsDBConditions(const edm::ParameterSet &)
Definition: CSCPedestalsDBConditions.cc:8
edm::eventsetup::EventSetupRecordKey
Definition: EventSetupRecordKey.h:30
CSCPedestalsDBConditions.h
CSCPedestalsDBConditions::~CSCPedestalsDBConditions
~CSCPedestalsDBConditions() override
Definition: CSCPedestalsDBConditions.cc:17
CSCPedestalsDBConditions::prefillDBPedestals
static CSCDBPedestals * prefillDBPedestals()
Definition: CSCPedestalsDBConditions.h:48
CSCPedestalsDBConditions::ReturnType
std::unique_ptr< CSCDBPedestals > ReturnType
Definition: CSCPedestalsDBConditions.h:27
CSCPedestalsDBConditions::produceDBPedestals
ReturnType produceDBPedestals(const CSCDBPedestalsRcd &)
Definition: CSCPedestalsDBConditions.cc:27
edm::IOVSyncValue
Definition: IOVSyncValue.h:31
edm::ParameterSet
Definition: ParameterSet.h:47
CSCDBPedestals.h
edm::IOVSyncValue::endOfTime
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:82
cond::ValidityInterval
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:17
edm::IOVSyncValue::beginOfTime
static const IOVSyncValue & beginOfTime()
Definition: IOVSyncValue.cc:88
CSCPedestalsDBConditions::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
Definition: CSCPedestalsDBConditions.cc:32
CSCDBPedestalsRcd.h