Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:14:53

0001 #include "CalibTracker/SiStripESProducers/interface/SiStripFedCablingESProducer.h"
0002 #include "CondFormats/DataRecord/interface/SiStripFedCablingRcd.h"
0003 #include "CondFormats/SiStripObjects/interface/SiStripFedCabling.h"
0004 #include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
0005 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0006 #include <iostream>
0007 
0008 using namespace sistrip;
0009 
0010 // -----------------------------------------------------------------------------
0011 //
0012 SiStripFedCablingESProducer::SiStripFedCablingESProducer(const edm::ParameterSet& pset) {
0013   setWhatProduced(this, &SiStripFedCablingESProducer::produce);
0014 }
0015 
0016 // -----------------------------------------------------------------------------
0017 //
0018 SiStripFedCablingESProducer::~SiStripFedCablingESProducer() {}
0019 
0020 // -----------------------------------------------------------------------------
0021 //
0022 std::unique_ptr<SiStripFedCabling> SiStripFedCablingESProducer::produce(const SiStripFedCablingRcd& rcd) {
0023   SiStripFedCabling* temp = make(rcd);
0024 
0025   if (!temp) {
0026     edm::LogWarning(mlCabling_) << "[SiStripFedCablingESProducer::" << __func__ << "]"
0027                                 << " Null pointer to SiStripFedCabling object!";
0028   }
0029 
0030   std::unique_ptr<SiStripFedCabling> ptr(temp);
0031   return ptr;
0032 }