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