CMS 3D CMS Logo

SiStripGainESSource.cc
Go to the documentation of this file.
6 #include "boost/cstdint.hpp"
7 #include <iostream>
8 
9 using namespace sistrip;
10 
11 // -----------------------------------------------------------------------------
12 //
14  setWhatProduced( this );
15  findingRecord<SiStripApvGainRcd>();
16 }
17 
18 // -----------------------------------------------------------------------------
19 //
20 std::unique_ptr<SiStripApvGain> SiStripGainESSource::produce( const SiStripApvGainRcd& ) {
21 
23 
24  if ( !gain ) {
26  << "[SiStripGainESSource::" << __func__ << "]"
27  << " Null pointer to SiStripApvGain object!";
28  }
29 
30  std::unique_ptr<SiStripApvGain> ptr(gain);
31  return ptr;
32 
33 }
34 
35 // -----------------------------------------------------------------------------
36 //
38  const edm::IOVSyncValue& iosv,
39  edm::ValidityInterval& oValidity ) {
40 
42  oValidity = infinity;
43 
44 }
virtual void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)
virtual std::unique_ptr< SiStripApvGain > produce(const SiStripApvGainRcd &)
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:97
sistrip classes
static const IOVSyncValue & beginOfTime()
const double infinity
SiStripGainESSource(const edm::ParameterSet &)
CastorGain makeGain(HcalGenericDetId fId, bool fSmear=false)
static const char mlESSources_[]