CalibMuon
RPCCalibration
src
RPCPerformanceESSource.cc
Go to the documentation of this file.
1
#include "
CalibMuon/RPCCalibration/interface/RPCPerformanceESSource.h
"
2
#include "
CondFormats/DataRecord/interface/RPCStripNoisesRcd.h
"
3
#include "
CondFormats/RPCObjects/interface/RPCStripNoises.h
"
4
#include "
DataFormats/SiStripCommon/interface/SiStripConstants.h
"
5
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
6
#include <iostream>
7
8
using namespace
std
;
9
10
// -----------------------------------------------------------------------------
11
//
12
RPCPerformanceESSource::RPCPerformanceESSource
(
const
edm::ParameterSet
&
pset
) {
13
setWhatProduced(
this
);
14
findingRecord<RPCStripNoisesRcd>();
15
}
16
17
// -----------------------------------------------------------------------------
18
//
19
unique_ptr<RPCStripNoises>
RPCPerformanceESSource::produce
(
const
RPCStripNoisesRcd
&) {
20
RPCStripNoises
*
noise
= makeNoise();
21
22
return
unique_ptr<RPCStripNoises>(
noise
);
23
}
24
25
// -----------------------------------------------------------------------------
26
//
27
void
RPCPerformanceESSource::setIntervalFor
(
const
edm::eventsetup::EventSetupRecordKey
&,
28
const
edm::IOVSyncValue
&iosv,
29
edm::ValidityInterval
&oValidity) {
30
edm::ValidityInterval
infinity
(iosv.
beginOfTime
(), iosv.
endOfTime
());
31
oValidity =
infinity
;
32
}
MessageLogger.h
RPCStripNoisesRcd
Definition:
RPCStripNoisesRcd.h:24
edm::ValidityInterval
Definition:
ValidityInterval.h:28
RPCStripNoisesRcd.h
infinity
const double infinity
Definition:
CSCChamberFitter.cc:10
edm::eventsetup::EventSetupRecordKey
Definition:
EventSetupRecordKey.h:30
RPCStripNoises
Definition:
RPCStripNoises.h:10
edm::IOVSyncValue
Definition:
IOVSyncValue.h:31
SiStripConstants.h
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::IOVSyncValue::endOfTime
static const IOVSyncValue & endOfTime()
Definition:
IOVSyncValue.cc:82
RPCPerformanceESSource::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
Definition:
RPCPerformanceESSource.cc:27
RPCPerformanceESSource::RPCPerformanceESSource
RPCPerformanceESSource(const edm::ParameterSet &)
Definition:
RPCPerformanceESSource.cc:12
RPCPerformanceESSource.h
std
Definition:
JetResolutionObject.h:76
RPCStripNoises.h
edm::IOVSyncValue::beginOfTime
static const IOVSyncValue & beginOfTime()
Definition:
IOVSyncValue.cc:88
RPCPerformanceESSource::produce
std::unique_ptr< RPCStripNoises > produce(const RPCStripNoisesRcd &)
Definition:
RPCPerformanceESSource.cc:19
hgchebackDigitizer_cfi.noise
noise
Definition:
hgchebackDigitizer_cfi.py:42
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
Generated for CMSSW Reference Manual by
1.8.16