CalibMuon
CSCCalibration
plugins
CSCFakeDBGains.cc
Go to the documentation of this file.
1
#include "
CalibMuon/CSCCalibration/interface/CSCFakeDBGains.h
"
2
#include "
CalibMuon/CSCCalibration/interface/CSCGainsDBConditions.h
"
3
#include "
CondFormats/CSCObjects/interface/CSCDBGains.h
"
4
#include "
CondFormats/DataRecord/interface/CSCDBGainsRcd.h
"
5
6
CSCFakeDBGains::CSCFakeDBGains
(
const
edm::ParameterSet
&iConfig) {
7
// the following line is needed to tell the framework what
8
// data is being produced
9
setWhatProduced
(
this
, &
CSCFakeDBGains::produceDBGains
);
10
findingRecord<CSCDBGainsRcd>();
11
}
12
13
CSCFakeDBGains::~CSCFakeDBGains
() {}
14
15
// ------------ method called to produce the data ------------
16
CSCFakeDBGains::Pointer
CSCFakeDBGains::produceDBGains
(
const
CSCDBGainsRcd
&iRecord) {
17
return
CSCFakeDBGains::Pointer
(
prefillDBGains
());
18
}
19
20
void
CSCFakeDBGains::setIntervalFor
(
const
edm::eventsetup::EventSetupRecordKey
&,
21
const
edm::IOVSyncValue
&,
22
edm::ValidityInterval
&oValidity) {
23
oValidity =
edm::ValidityInterval
(
edm::IOVSyncValue::beginOfTime
(),
edm::IOVSyncValue::endOfTime
());
24
}
CSCFakeDBGains::CSCFakeDBGains
CSCFakeDBGains(const edm::ParameterSet &)
Definition:
CSCFakeDBGains.cc:6
CSCFakeDBGains::produceDBGains
Pointer produceDBGains(const CSCDBGainsRcd &)
Definition:
CSCFakeDBGains.cc:16
CSCFakeDBGains::prefillDBGains
static CSCDBGains * prefillDBGains()
Definition:
CSCFakeDBGains.h:44
CSCGainsDBConditions.h
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:138
edm::ValidityInterval
Definition:
ValidityInterval.h:28
CSCFakeDBGains::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
Definition:
CSCFakeDBGains.cc:20
edm::eventsetup::EventSetupRecordKey
Definition:
EventSetupRecordKey.h:30
edm::IOVSyncValue
Definition:
IOVSyncValue.h:31
edm::ParameterSet
Definition:
ParameterSet.h:36
CSCFakeDBGains::Pointer
std::unique_ptr< CSCDBGains > Pointer
Definition:
CSCFakeDBGains.h:27
edm::IOVSyncValue::endOfTime
static const IOVSyncValue & endOfTime()
Definition:
IOVSyncValue.cc:82
cond::ValidityInterval
std::pair< Time_t, Time_t > ValidityInterval
Definition:
Time.h:17
CSCDBGainsRcd.h
CSCFakeDBGains.h
edm::IOVSyncValue::beginOfTime
static const IOVSyncValue & beginOfTime()
Definition:
IOVSyncValue.cc:88
CSCDBGainsRcd
Definition:
CSCDBGainsRcd.h:5
CSCDBGains.h
CSCFakeDBGains::~CSCFakeDBGains
~CSCFakeDBGains() override
Definition:
CSCFakeDBGains.cc:13
Generated for CMSSW Reference Manual by
1.8.16