OnlineDB
CSCCondDB
src
CSCChamberMapValues.cc
Go to the documentation of this file.
1
#include <memory>
2
3
#include <fstream>
4
5
#include "
CondFormats/CSCObjects/interface/CSCChamberMap.h
"
6
#include "
CondFormats/DataRecord/interface/CSCChamberMapRcd.h
"
7
#include "
OnlineDB/CSCCondDB/interface/CSCChamberMapValues.h
"
8
#include "
OnlineDB/CSCCondDB/interface/CSCMap1.h
"
9
10
CSCChamberMapValues::CSCChamberMapValues
(
const
edm::ParameterSet
& iConfig) {
11
//the following line is needed to tell the framework what
12
// data is being produced
13
setWhatProduced
(
this
, &
CSCChamberMapValues::produceChamberMap
);
14
findingRecord<CSCChamberMapRcd>();
15
//now do what ever other initialization is needed
16
}
17
18
CSCChamberMapValues::~CSCChamberMapValues
() {
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
CSCChamberMapValues::ReturnType
CSCChamberMapValues::produceChamberMap
(
const
CSCChamberMapRcd
& iRecord) {
29
//need a new object so to not be deleted at exit
30
return
ReturnType
(
fillChamberMap
());
31
}
32
33
void
CSCChamberMapValues::setIntervalFor
(
const
edm::eventsetup::EventSetupRecordKey
&,
34
const
edm::IOVSyncValue
&,
35
edm::ValidityInterval
& oValidity) {
36
oValidity =
edm::ValidityInterval
(
edm::IOVSyncValue::beginOfTime
(),
edm::IOVSyncValue::endOfTime
());
37
}
CSCChamberMapValues::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
Definition:
CSCChamberMapValues.cc:33
CSCChamberMapValues::fillChamberMap
static CSCChamberMap * fillChamberMap()
Definition:
CSCChamberMapValues.h:45
CSCChamberMapRcd.h
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:138
edm::ValidityInterval
Definition:
ValidityInterval.h:28
CSCChamberMapValues::ReturnType
std::unique_ptr< CSCChamberMap > ReturnType
Definition:
CSCChamberMapValues.h:27
CSCChamberMapValues.h
edm::eventsetup::EventSetupRecordKey
Definition:
EventSetupRecordKey.h:30
CSCChamberMapValues::CSCChamberMapValues
CSCChamberMapValues(const edm::ParameterSet &)
Definition:
CSCChamberMapValues.cc:10
CSCChamberMapValues::~CSCChamberMapValues
~CSCChamberMapValues() override
Definition:
CSCChamberMapValues.cc:18
edm::IOVSyncValue
Definition:
IOVSyncValue.h:31
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::IOVSyncValue::endOfTime
static const IOVSyncValue & endOfTime()
Definition:
IOVSyncValue.cc:82
CSCChamberMapValues::produceChamberMap
ReturnType produceChamberMap(const CSCChamberMapRcd &)
Definition:
CSCChamberMapValues.cc:28
CSCChamberMap.h
cond::ValidityInterval
std::pair< Time_t, Time_t > ValidityInterval
Definition:
Time.h:17
CSCChamberMapRcd
Definition:
CSCChamberMapRcd.h:5
edm::IOVSyncValue::beginOfTime
static const IOVSyncValue & beginOfTime()
Definition:
IOVSyncValue.cc:88
CSCMap1.h
Generated for CMSSW Reference Manual by
1.8.16