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 
21  SiStripNoises* noise = makeNoise();
22 
23  if ( !noise ) {
25  << "[SiStripNoiseESSource::" << __func__ << "]"
26  << " Null pointer to SiStripNoises object!";
27  }
28 
29  std::unique_ptr<SiStripNoises> ptr(noise);
30  return ptr;
31 
32 }
33 
34 // -----------------------------------------------------------------------------
35 //
37  const edm::IOVSyncValue& iosv,
38  edm::ValidityInterval& oValidity ) {
39 
41  oValidity = infinity;
42 
43 }
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:82
sistrip classes
static const IOVSyncValue & beginOfTime()
Definition: IOVSyncValue.cc:88
const double infinity
virtual std::unique_ptr< SiStripNoises > produce(const SiStripNoisesRcd &)
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
SiStripNoiseESSource(const edm::ParameterSet &)
static const char mlESSources_[]