CalibTracker
SiStripESProducers
src
SiStripPedestalsESSource.cc
Go to the documentation of this file.
1
#include "
CalibTracker/SiStripESProducers/interface/SiStripPedestalsESSource.h
"
2
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
3
#include "
DataFormats/SiStripCommon/interface/SiStripConstants.h
"
4
#include "
CondFormats/SiStripObjects/interface/SiStripPedestals.h
"
5
#include "
CondFormats/DataRecord/interface/SiStripPedestalsRcd.h
"
6
#include <iostream>
7
8
using namespace
sistrip
;
9
10
// -----------------------------------------------------------------------------
11
//
12
SiStripPedestalsESSource::SiStripPedestalsESSource
(
const
edm::ParameterSet
&
pset
) {
13
setWhatProduced(
this
);
14
findingRecord<SiStripPedestalsRcd>();
15
}
16
17
// -----------------------------------------------------------------------------
18
//
19
std::unique_ptr<SiStripPedestals>
SiStripPedestalsESSource::produce
(
const
SiStripPedestalsRcd
&) {
20
SiStripPedestals
* peds = makePedestals();
21
22
if
(!peds) {
23
edm::LogWarning
(
mlESSources_
) <<
"[SiStripPedestalsESSource::"
<< __func__ <<
"]"
24
<<
" Null pointer to SiStripPedestals object!"
;
25
}
26
27
std::unique_ptr<SiStripPedestals> ptr(peds);
28
return
ptr;
29
}
30
31
// -----------------------------------------------------------------------------
32
//
33
void
SiStripPedestalsESSource::setIntervalFor
(
const
edm::eventsetup::EventSetupRecordKey
&,
34
const
edm::IOVSyncValue
& iosv,
35
edm::ValidityInterval
& oValidity) {
36
edm::ValidityInterval
infinity
(iosv.
beginOfTime
(), iosv.
endOfTime
());
37
oValidity =
infinity
;
38
}
MessageLogger.h
edm::ValidityInterval
Definition:
ValidityInterval.h:28
infinity
const double infinity
Definition:
CSCChamberFitter.cc:10
SiStripPedestalsRcd
Definition:
SiStripCondDataRecords.h:44
edm::eventsetup::EventSetupRecordKey
Definition:
EventSetupRecordKey.h:30
SiStripPedestalsRcd.h
edm::IOVSyncValue
Definition:
IOVSyncValue.h:31
edm::LogWarning
Definition:
MessageLogger.h:141
SiStripConstants.h
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::IOVSyncValue::endOfTime
static const IOVSyncValue & endOfTime()
Definition:
IOVSyncValue.cc:82
SiStripPedestalsESSource::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
Definition:
SiStripPedestalsESSource.cc:33
SiStripPedestalsESSource::SiStripPedestalsESSource
SiStripPedestalsESSource(const edm::ParameterSet &)
Definition:
SiStripPedestalsESSource.cc:12
sistrip::mlESSources_
static const char mlESSources_[]
Definition:
ConstantsForLogger.h:21
SiStripPedestals.h
edm::IOVSyncValue::beginOfTime
static const IOVSyncValue & beginOfTime()
Definition:
IOVSyncValue.cc:88
SiStripPedestalsESSource::produce
virtual std::unique_ptr< SiStripPedestals > produce(const SiStripPedestalsRcd &)
Definition:
SiStripPedestalsESSource.cc:19
SiStripPedestalsESSource.h
SiStripPedestals
Definition:
SiStripPedestals.h:27
sistrip
sistrip classes
Definition:
SiStripQualityHelpers.h:14
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
Generated for CMSSW Reference Manual by
1.8.16