CMS 3D CMS Logo

Public Member Functions | Protected Member Functions

SiStripGainBuilderFromDb Class Reference

#include <SiStripGainBuilderFromDb.h>

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

List of all members.

Public Member Functions

virtual SiStripApvGainmakeGain ()
 SiStripGainBuilderFromDb (const edm::ParameterSet &)
virtual ~SiStripGainBuilderFromDb ()

Protected Member Functions

virtual void writeGainToCondDb (const SiStripApvGain &)

Detailed Description

Definition at line 10 of file SiStripGainBuilderFromDb.h.


Constructor & Destructor Documentation

SiStripGainBuilderFromDb::SiStripGainBuilderFromDb ( const edm::ParameterSet pset)

Definition at line 18 of file SiStripGainBuilderFromDb.cc.

References LogTrace, and sistrip::mlESSources_.

  : SiStripGainESSource( pset )
{
  LogTrace(mlESSources_) 
    << "[SiStripGainBuilderFromDb::" << __func__ << "]"
    << " Constructing object...";
}
SiStripGainBuilderFromDb::~SiStripGainBuilderFromDb ( ) [virtual]

Definition at line 28 of file SiStripGainBuilderFromDb.cc.

References LogTrace, and sistrip::mlESSources_.

                                                    {
  LogTrace(mlESSources_)
    << "[SiStripGainBuilderFromDb::" << __func__ << "]"
    << " Destructing object...";
}

Member Function Documentation

SiStripApvGain * SiStripGainBuilderFromDb::makeGain ( ) [virtual]

Builds pedestals using info from configuration database.

Service to access onlineDB and extract pedestal/gain

Implements SiStripGainESSource.

Definition at line 36 of file SiStripGainBuilderFromDb.cc.

References LogTrace, and sistrip::mlESSources_.

                                                   {
  LogTrace(mlESSources_) 
    << "[SiStripGainBuilderFromDb::" << __func__ << "]"
    << " Constructing Gain object...";

  edm::Service<SiStripCondObjBuilderFromDb> condObjBuilder_;
  
  // Create Gain object 
  SiStripApvGain* gain;
  condObjBuilder_->getValue(gain);
  return gain;
  
}
virtual void SiStripGainBuilderFromDb::writeGainToCondDb ( const SiStripApvGain ) [inline, protected, virtual]

Virtual method that is called by makeGain() to allow gain to be written to the conditions database.

Definition at line 25 of file SiStripGainBuilderFromDb.h.

{;}