CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/CalibMuon/RPCCalibration/src/RPCPerformanceESSource.cc

Go to the documentation of this file.
00001 #include "CalibMuon/RPCCalibration/interface/RPCPerformanceESSource.h"
00002 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00003 #include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
00004 #include "CondFormats/RPCObjects/interface/RPCStripNoises.h"
00005 #include "CondFormats/DataRecord/interface/RPCStripNoisesRcd.h"
00006 #include <iostream>
00007 
00008 using namespace std;
00009 
00010 // -----------------------------------------------------------------------------
00011 //
00012 RPCPerformanceESSource::RPCPerformanceESSource( const edm::ParameterSet& pset ) {
00013 
00014   setWhatProduced( this );
00015   findingRecord<RPCStripNoisesRcd>();
00016 }
00017 
00018 // -----------------------------------------------------------------------------
00019 //
00020 auto_ptr<RPCStripNoises> RPCPerformanceESSource::produce( const RPCStripNoisesRcd&) { 
00021     
00022   RPCStripNoises* noise = makeNoise();
00023   
00024   auto_ptr<RPCStripNoises> ptr(noise);
00025   return ptr;
00026 
00027 }
00028 
00029 // -----------------------------------------------------------------------------
00030 //
00031 void RPCPerformanceESSource::setIntervalFor( const edm::eventsetup::EventSetupRecordKey&, 
00032                                            const edm::IOVSyncValue& iosv, 
00033                                            edm::ValidityInterval& oValidity ) {
00034   edm::ValidityInterval infinity( iosv.beginOfTime(), iosv.endOfTime() );
00035   oValidity = infinity;
00036 }
00037 
00038