CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SiStripGainESSource.cc
Go to the documentation of this file.
6 #include <iostream>
7 
8 using namespace sistrip;
9 
10 // -----------------------------------------------------------------------------
11 //
13  setWhatProduced(this);
14  findingRecord<SiStripApvGainRcd>();
15 }
16 
17 // -----------------------------------------------------------------------------
18 //
19 std::unique_ptr<SiStripApvGain> SiStripGainESSource::produce(const SiStripApvGainRcd&) {
20  SiStripApvGain* gain = makeGain();
21 
22  if (!gain) {
23  edm::LogWarning(mlESSources_) << "[SiStripGainESSource::" << __func__ << "]"
24  << " Null pointer to SiStripApvGain object!";
25  }
26 
27  std::unique_ptr<SiStripApvGain> ptr(gain);
28  return ptr;
29 }
30 
31 // -----------------------------------------------------------------------------
32 //
34  const edm::IOVSyncValue& iosv,
35  edm::ValidityInterval& oValidity) {
37  oValidity = infinity;
38 }
virtual std::unique_ptr< SiStripApvGain > produce(const SiStripApvGainRcd &)
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:82
static const IOVSyncValue & beginOfTime()
Definition: IOVSyncValue.cc:88
const double infinity
SiStripGainESSource(const edm::ParameterSet &)
CastorGain makeGain(HcalGenericDetId fId, bool fSmear=false)
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
Log< level::Warning, false > LogWarning
static const char mlESSources_[]