CMS 3D CMS Logo

SiStripPedestalsESSource Class Reference

Pure virtual class for EventSetup sources of SiStripPedestals. More...

#include <CalibTracker/SiStripESProducers/interface/SiStripPedestalsESSource.h>

Inheritance diagram for SiStripPedestalsESSource:

edm::ESProducer edm::EventSetupRecordIntervalFinder edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider SiStripPedestalsBuilderFromDb SiStripPedestalsFakeESSource

List of all members.

Public Member Functions

virtual std::auto_ptr
< SiStripPedestals
produce (const SiStripPedestalsRcd &)
 SiStripPedestalsESSource (const edm::ParameterSet &)
virtual ~SiStripPedestalsESSource ()

Protected Member Functions

virtual void setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)

Private Member Functions

virtual SiStripPedestalsmakePedestals ()=0
const SiStripPedestalsESSourceoperator= (const SiStripPedestalsESSource &)
 SiStripPedestalsESSource (const SiStripPedestalsESSource &)


Detailed Description

Pure virtual class for EventSetup sources of SiStripPedestals.

Author:
R.Bainbridge

Definition at line 23 of file SiStripPedestalsESSource.h.


Constructor & Destructor Documentation

SiStripPedestalsESSource::SiStripPedestalsESSource ( const edm::ParameterSet pset  ) 

Definition at line 17 of file SiStripPedestalsESSource.cc.

References edm::ESProducer::setWhatProduced().

00017                                                                                 {
00018   setWhatProduced( this );
00019   findingRecord<SiStripPedestalsRcd>();
00020 }

virtual SiStripPedestalsESSource::~SiStripPedestalsESSource (  )  [inline, virtual]

Definition at line 28 of file SiStripPedestalsESSource.h.

00028 {;}

SiStripPedestalsESSource::SiStripPedestalsESSource ( const SiStripPedestalsESSource  )  [private]


Member Function Documentation

virtual SiStripPedestals* SiStripPedestalsESSource::makePedestals (  )  [private, pure virtual]

Implemented in SiStripPedestalsFakeESSource, and SiStripPedestalsBuilderFromDb.

Referenced by produce().

const SiStripPedestalsESSource& SiStripPedestalsESSource::operator= ( const SiStripPedestalsESSource  )  [private]

auto_ptr< SiStripPedestals > SiStripPedestalsESSource::produce ( const SiStripPedestalsRcd  )  [virtual]

Definition at line 24 of file SiStripPedestalsESSource.cc.

References makePedestals(), sistrip::mlESSources_, and ptr.

00024                                                                                          { 
00025   
00026   SiStripPedestals* peds = makePedestals();
00027   
00028   if ( !peds ) {
00029     edm::LogWarning(mlESSources_)
00030       << "[SiStripPedestalsESSource::" << __func__ << "]"
00031       << " Null pointer to SiStripPedestals object!";
00032   }
00033   
00034   auto_ptr<SiStripPedestals> ptr(peds);
00035   return ptr;
00036 
00037 }

void SiStripPedestalsESSource::setIntervalFor ( const edm::eventsetup::EventSetupRecordKey ,
const edm::IOVSyncValue iosv,
edm::ValidityInterval oValidity 
) [protected, virtual]

Implements edm::EventSetupRecordIntervalFinder.

Definition at line 41 of file SiStripPedestalsESSource.cc.

References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), and infinity.

00043                                                                                  {
00044 
00045   edm::ValidityInterval infinity( iosv.beginOfTime(), iosv.endOfTime() );
00046   oValidity = infinity;
00047   
00048 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:32:28 2009 for CMSSW by  doxygen 1.5.4