CMS 3D CMS Logo

CSCBadWiresConditions.cc
Go to the documentation of this file.
1 #include <memory>
2 #include <fstream>
3 
7 
8 
10 {
11  //the following line is needed to tell the framework what
12  // data is being produced
15  findingRecord<CSCBadWiresRcd>();
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  delete cndbBadWires;
26 }
27 
28 
29 //
30 // member functions
31 //
32 
33 // ------------ method called to produce the data ------------
36 {
37  //need a new object so to not be deleted at exit
38  CSCBadWires* mydata=new CSCBadWires( *cndbBadWires );
39  return mydata;
40 
41 }
42 
44  edm::ValidityInterval & oValidity)
45  {
47 
48  }
static CSCBadWires * prefillBadWires()
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:97
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:19
CSCBadWiresConditions(const edm::ParameterSet &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
static const IOVSyncValue & beginOfTime()
ReturnType produceBadWires(const CSCBadWiresRcd &)