CMS 3D CMS Logo

SiStripHashedDetIdESProducer.cc

Go to the documentation of this file.
00001 #include "CalibTracker/SiStripESProducers/interface/SiStripHashedDetIdESProducer.h"
00002 #include "CalibFormats/SiStripObjects/interface/SiStripHashedDetId.h"
00003 #include "CalibTracker/Records/interface/SiStripHashedDetIdRcd.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 SiStripHashedDetIdESProducer::SiStripHashedDetIdESProducer( const edm::ParameterSet& pset ) {
00013   setWhatProduced( this, &SiStripHashedDetIdESProducer::produce );
00014 }
00015 
00016 // -----------------------------------------------------------------------------
00017 //
00018 SiStripHashedDetIdESProducer::~SiStripHashedDetIdESProducer() {}
00019 
00020 // -----------------------------------------------------------------------------
00021 //
00022 std::auto_ptr<SiStripHashedDetId> SiStripHashedDetIdESProducer::produce( const SiStripHashedDetIdRcd& rcd ) { 
00023   
00024   SiStripHashedDetId* temp = make( rcd );
00025   
00026   if ( !temp ) {
00027     edm::LogWarning(mlCabling_)
00028       << "[SiStripHashedDetIdESProducer::" << __func__ << "]"
00029       << " Null pointer to SiStripHashedDetId object!";
00030   }
00031   
00032   std::auto_ptr<SiStripHashedDetId> ptr( temp );
00033   return ptr;
00034   
00035 }
00036 

Generated on Tue Jun 9 17:25:51 2009 for CMSSW by  doxygen 1.5.4