OnlineDB
CSCCondDB
src
CSCCrateMapValues.cc
Go to the documentation of this file.
1
#include <memory>
2
3
#include <fstream>
4
5
#include "
CondFormats/CSCObjects/interface/CSCCrateMap.h
"
6
#include "
CondFormats/DataRecord/interface/CSCCrateMapRcd.h
"
7
#include "
OnlineDB/CSCCondDB/interface/CSCCrateMapValues.h
"
8
#include "
OnlineDB/CSCCondDB/interface/CSCMap1.h
"
9
10
CSCCrateMapValues::CSCCrateMapValues
(
const
edm::ParameterSet
& iConfig) {
11
//the following line is needed to tell the framework what
12
// data is being produced
13
setWhatProduced
(
this
, &
CSCCrateMapValues::produceCrateMap
);
14
findingRecord<CSCCrateMapRcd>();
15
//now do what ever other initialization is needed
16
}
17
18
CSCCrateMapValues::~CSCCrateMapValues
() {
19
// do anything here that needs to be done at desctruction time
20
// (e.g. close files, deallocate resources etc.)
21
}
22
23
//
24
// member functions
25
//
26
27
// ------------ method called to produce the data ------------
28
CSCCrateMapValues::ReturnType
CSCCrateMapValues::produceCrateMap
(
const
CSCCrateMapRcd
& iRecord) {
29
//need a new object so to not be deleted at exit
30
return
ReturnType
(
fillCrateMap
());
31
}
32
33
void
CSCCrateMapValues::setIntervalFor
(
const
edm::eventsetup::EventSetupRecordKey
&,
34
const
edm::IOVSyncValue
&,
35
edm::ValidityInterval
& oValidity) {
36
oValidity =
edm::ValidityInterval
(
edm::IOVSyncValue::beginOfTime
(),
edm::IOVSyncValue::endOfTime
());
37
}
CSCCrateMapValues::produceCrateMap
CSCCrateMapValues::ReturnType produceCrateMap(const CSCCrateMapRcd &)
Definition:
CSCCrateMapValues.cc:28
CSCCrateMapRcd.h
CSCCrateMapValues::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
Definition:
CSCCrateMapValues.cc:33
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:163
edm::ValidityInterval
Definition:
ValidityInterval.h:28
CSCCrateMapValues.h
CSCCrateMapValues::CSCCrateMapValues
CSCCrateMapValues(const edm::ParameterSet &)
Definition:
CSCCrateMapValues.cc:10
edm::eventsetup::EventSetupRecordKey
Definition:
EventSetupRecordKey.h:30
CSCCrateMapValues::fillCrateMap
static CSCCrateMap * fillCrateMap()
Definition:
CSCCrateMapValues.h:45
edm::IOVSyncValue
Definition:
IOVSyncValue.h:31
CSCCrateMapValues::~CSCCrateMapValues
~CSCCrateMapValues() override
Definition:
CSCCrateMapValues.cc:18
edm::ParameterSet
Definition:
ParameterSet.h:47
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
CSCCrateMapRcd
Definition:
CSCCrateMapRcd.h:5
CSCMap1.h
CSCCrateMapValues::ReturnType
std::unique_ptr< CSCCrateMap > ReturnType
Definition:
CSCCrateMapValues.h:27
CSCCrateMap.h
Generated for CMSSW Reference Manual by
1.8.16