CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
14  mapObj = fillCrateMap();
16  findingRecord<CSCCrateMapRcd>();
17  //now do what ever other initialization is needed
18 }
19 
20 
22 {
23 
24  // do anything here that needs to be done at desctruction time
25  // (e.g. close files, deallocate resources etc.)
26  delete mapObj;
27 }
28 
29 
30 //
31 // member functions
32 //
33 
34 // ------------ method called to produce the data ------------
37 {
38  //need a new object so to not be deleted at exit
39  CSCCrateMap* mydata=new CSCCrateMap( *mapObj );
40  return mydata;
41 
42 }
43 
45  edm::ValidityInterval & oValidity)
46  {
48 
49  }
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 &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
static CSCCrateMap * fillCrateMap()
static const IOVSyncValue & beginOfTime()
CSCCrateMap * mapObj
ReturnType produceCrateMap(const CSCCrateMapRcd &)