CMS 3D CMS Logo

CSCCrateMapValues.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
15  findingRecord<CSCCrateMapRcd>();
16  //now do what ever other initialization is needed
17 }
18 
19 
21 {
22 
23  // do anything here that needs to be done at desctruction time
24  // (e.g. close files, deallocate resources etc.)
25 }
26 
27 
28 //
29 // member functions
30 //
31 
32 // ------------ method called to produce the data ------------
35 {
36  //need a new object so to not be deleted at exit
37  return ReturnType(fillCrateMap());
38 }
39 
41  edm::ValidityInterval & oValidity)
42  {
44 
45  }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:116
CSCCrateMapValues(const edm::ParameterSet &)
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:97
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:19
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
static CSCCrateMap * fillCrateMap()
static const IOVSyncValue & beginOfTime()
~CSCCrateMapValues() override
std::unique_ptr< CSCCrateMap > ReturnType
CSCCrateMapValues::ReturnType produceCrateMap(const CSCCrateMapRcd &)