CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CalibTracker/SiStripESProducers/src/SiStripFedCablingESProducer.cc

Go to the documentation of this file.
00001 #include "CalibTracker/SiStripESProducers/interface/SiStripFedCablingESProducer.h"
00002 #include "CondFormats/DataRecord/interface/SiStripFedCablingRcd.h"
00003 #include "CondFormats/SiStripObjects/interface/SiStripFedCabling.h"
00004 #include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
00005 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00006 #include <iostream>
00007 
00008 using namespace sistrip;
00009 
00010 // -----------------------------------------------------------------------------
00011 //
00012 SiStripFedCablingESProducer::SiStripFedCablingESProducer( const edm::ParameterSet& pset ) {
00013   setWhatProduced( this, &SiStripFedCablingESProducer::produce );
00014 }
00015 
00016 // -----------------------------------------------------------------------------
00017 //
00018 SiStripFedCablingESProducer::~SiStripFedCablingESProducer() {}
00019 
00020 // -----------------------------------------------------------------------------
00021 //
00022 std::auto_ptr<SiStripFedCabling> SiStripFedCablingESProducer::produce( const SiStripFedCablingRcd& rcd ) { 
00023   
00024   SiStripFedCabling* temp = make( rcd );
00025   
00026   if ( !temp ) {
00027     edm::LogWarning(mlCabling_)
00028       << "[SiStripFedCablingESProducer::" << __func__ << "]"
00029       << " Null pointer to SiStripFedCabling object!";
00030   }
00031   
00032   std::auto_ptr<SiStripFedCabling> ptr( temp );
00033   return ptr;
00034 
00035 }