test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripPedestalsESSource.cc
Go to the documentation of this file.
6 #include <iostream>
7 
8 using namespace sistrip;
9 
10 // -----------------------------------------------------------------------------
11 //
13  setWhatProduced( this );
14  findingRecord<SiStripPedestalsRcd>();
15 }
16 
17 // -----------------------------------------------------------------------------
18 //
19 std::unique_ptr<SiStripPedestals> SiStripPedestalsESSource::produce( const SiStripPedestalsRcd& ) {
20 
21  SiStripPedestals* peds = makePedestals();
22 
23  if ( !peds ) {
25  << "[SiStripPedestalsESSource::" << __func__ << "]"
26  << " Null pointer to SiStripPedestals object!";
27  }
28 
29  std::unique_ptr<SiStripPedestals> ptr(peds);
30  return ptr;
31 
32 }
33 
34 // -----------------------------------------------------------------------------
35 //
37  const edm::IOVSyncValue& iosv,
38  edm::ValidityInterval& oValidity ) {
39 
41  oValidity = infinity;
42 
43 }
SiStripPedestalsESSource(const edm::ParameterSet &)
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:97
virtual std::unique_ptr< SiStripPedestals > produce(const SiStripPedestalsRcd &)
static const IOVSyncValue & beginOfTime()
const double infinity
virtual void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)
static const char mlESSources_[]