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