test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::auto_ptr<SiStripApvGain> SiStripGainESSource::produce( const SiStripApvGainRcd& ) {
21 
22  SiStripApvGain* gain = makeGain();
23 
24  if ( !gain ) {
26  << "[SiStripGainESSource::" << __func__ << "]"
27  << " Null pointer to SiStripApvGain object!";
28  }
29 
30  std::auto_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 &)
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:97
static const IOVSyncValue & beginOfTime()
const double infinity
virtual std::auto_ptr< SiStripApvGain > produce(const SiStripApvGainRcd &)
SiStripGainESSource(const edm::ParameterSet &)
CastorGain makeGain(HcalGenericDetId fId, bool fSmear=false)
static const char mlESSources_[]