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