CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
SiStripFedCablingESProducer.cc
Go to the documentation of this file.
6 #include <iostream>
7 
8 using namespace sistrip;
9 
10 // -----------------------------------------------------------------------------
11 //
13  setWhatProduced(this, &SiStripFedCablingESProducer::produce);
14 }
15 
16 // -----------------------------------------------------------------------------
17 //
19 
20 // -----------------------------------------------------------------------------
21 //
22 std::unique_ptr<SiStripFedCabling> SiStripFedCablingESProducer::produce(const SiStripFedCablingRcd& rcd) {
23  SiStripFedCabling* temp = make(rcd);
24 
25  if (!temp) {
26  edm::LogWarning(mlCabling_) << "[SiStripFedCablingESProducer::" << __func__ << "]"
27  << " Null pointer to SiStripFedCabling object!";
28  }
29 
30  std::unique_ptr<SiStripFedCabling> ptr(temp);
31  return ptr;
32 }
S make(const edm::ParameterSet &cfg)
virtual std::unique_ptr< SiStripFedCabling > produce(const SiStripFedCablingRcd &)
sistrip classes
static const char mlCabling_[]
SiStripFedCablingESProducer(const edm::ParameterSet &)
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
Log< level::Warning, false > LogWarning