CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Private Member Functions

SiStripGainESSource Class Reference

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

#include <SiStripGainESSource.h>

Inheritance diagram for SiStripGainESSource:
edm::ESProducer edm::EventSetupRecordIntervalFinder edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider SiStripGainBuilderFromDb

List of all members.

Public Member Functions

virtual std::auto_ptr
< SiStripApvGain
produce (const SiStripApvGainRcd &)
 SiStripGainESSource (const edm::ParameterSet &)
virtual ~SiStripGainESSource ()

Protected Member Functions

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

Private Member Functions

virtual SiStripApvGainmakeGain ()=0
const SiStripGainESSourceoperator= (const SiStripGainESSource &)
 SiStripGainESSource (const SiStripGainESSource &)

Detailed Description

Pure virtual class for EventSetup sources of SiStripApvGain.

Author:
R.Bainbridge

Definition at line 18 of file SiStripGainESSource.h.


Constructor & Destructor Documentation

SiStripGainESSource::SiStripGainESSource ( const edm::ParameterSet pset)

Definition at line 13 of file SiStripGainESSource.cc.

                                                                      {
  setWhatProduced( this );
  findingRecord<SiStripApvGainRcd>();
}
virtual SiStripGainESSource::~SiStripGainESSource ( ) [inline, virtual]

Definition at line 23 of file SiStripGainESSource.h.

{;}
SiStripGainESSource::SiStripGainESSource ( const SiStripGainESSource ) [private]

Member Function Documentation

virtual SiStripApvGain* SiStripGainESSource::makeGain ( ) [private, pure virtual]

Implemented in SiStripGainBuilderFromDb.

const SiStripGainESSource& SiStripGainESSource::operator= ( const SiStripGainESSource ) [private]
std::auto_ptr< SiStripApvGain > SiStripGainESSource::produce ( const SiStripApvGainRcd ) [virtual]

Definition at line 20 of file SiStripGainESSource.cc.

References CastorDbHardcode::makeGain(), and sistrip::mlESSources_.

                                                                                   { 
  
  SiStripApvGain* gain = makeGain();
  
  if ( !gain ) {
    edm::LogWarning(mlESSources_)
      << "[SiStripGainESSource::" << __func__ << "]"
      << " Null pointer to SiStripApvGain object!";
  }
  
  std::auto_ptr<SiStripApvGain> ptr(gain);
  return ptr;

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