CMS 3D CMS Logo

SiStripFedCablingESSource.cc

Go to the documentation of this file.
00001 // Last commit: $Id: SiStripFedCablingESSource.cc,v 1.8 2007/04/24 13:57:55 bainbrid Exp $
00002 
00003 #include "CalibTracker/SiStripConnectivity/interface/SiStripFedCablingESSource.h"
00004 #include "CondFormats/DataRecord/interface/SiStripFedCablingRcd.h"
00005 #include "CondFormats/SiStripObjects/interface/SiStripFedCabling.h"
00006 #include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
00007 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00008 #include <iostream>
00009 
00010 using namespace sistrip;
00011 
00012 // -----------------------------------------------------------------------------
00013 //
00014 SiStripFedCablingESSource::SiStripFedCablingESSource( const edm::ParameterSet& pset ) {
00015   setWhatProduced( this );
00016   findingRecord<SiStripFedCablingRcd>();
00017 }
00018 
00019 // -----------------------------------------------------------------------------
00020 //
00021 std::auto_ptr<SiStripFedCabling> SiStripFedCablingESSource::produce( const SiStripFedCablingRcd& ) { 
00022   
00023   SiStripFedCabling* cabling = makeFedCabling();
00024   
00025   if ( !cabling ) {
00026     edm::LogWarning(mlCabling_)
00027       << "[SiStripFedCablingESSource::" << __func__ << "]"
00028       << " Null pointer to SiStripFedCabling object!";
00029   }
00030   
00031   std::auto_ptr<SiStripFedCabling> ptr(cabling);
00032   return ptr;
00033 
00034 }
00035 
00036 // -----------------------------------------------------------------------------
00037 //
00038 void SiStripFedCablingESSource::setIntervalFor( const edm::eventsetup::EventSetupRecordKey&, 
00039                                                 const edm::IOVSyncValue& iosv, 
00040                                                 edm::ValidityInterval& oValidity ) {
00041 
00042   edm::ValidityInterval infinity( iosv.beginOfTime(), iosv.endOfTime() );
00043   oValidity = infinity;
00044   
00045 }

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