CMS 3D CMS Logo

SiStripNoiseESSource.cc
Go to the documentation of this file.
6 #include <iostream>
7 
8 using namespace sistrip;
9 
10 // -----------------------------------------------------------------------------
11 //
13  setWhatProduced(this);
14  findingRecord<SiStripNoisesRcd>();
15 }
16 
17 // -----------------------------------------------------------------------------
18 //
19 std::unique_ptr<SiStripNoises> SiStripNoiseESSource::produce(const SiStripNoisesRcd&) {
20  SiStripNoises* noise = makeNoise();
21 
22  if (!noise) {
23  edm::LogWarning(mlESSources_) << "[SiStripNoiseESSource::" << __func__ << "]"
24  << " Null pointer to SiStripNoises object!";
25  }
26 
27  std::unique_ptr<SiStripNoises> ptr(noise);
28  return ptr;
29 }
30 
31 // -----------------------------------------------------------------------------
32 //
34  const edm::IOVSyncValue& iosv,
35  edm::ValidityInterval& oValidity) {
37  oValidity = infinity;
38 }
SiStripNoiseESSource.h
MessageLogger.h
SiStripNoises
Definition: SiStripNoises.h:25
SiStripNoiseESSource::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
Definition: SiStripNoiseESSource.cc:33
edm::ValidityInterval
Definition: ValidityInterval.h:28
SiStripNoises.h
infinity
const double infinity
Definition: CSCChamberFitter.cc:10
edm::eventsetup::EventSetupRecordKey
Definition: EventSetupRecordKey.h:30
SiStripNoisesRcd
Definition: SiStripCondDataRecords.h:40
SiStripNoiseESSource::produce
virtual std::unique_ptr< SiStripNoises > produce(const SiStripNoisesRcd &)
Definition: SiStripNoiseESSource.cc:19
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
hgcalDigitizer_cfi.noise
noise
Definition: hgcalDigitizer_cfi.py:150
sistrip::mlESSources_
static const char mlESSources_[]
Definition: ConstantsForLogger.h:21
SiStripNoiseESSource::SiStripNoiseESSource
SiStripNoiseESSource(const edm::ParameterSet &)
Definition: SiStripNoiseESSource.cc:12
edm::IOVSyncValue::beginOfTime
static const IOVSyncValue & beginOfTime()
Definition: IOVSyncValue.cc:88
SiStripNoisesRcd.h
sistrip
sistrip classes
Definition: SiStripQualityHelpers.h:14
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27