CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/OnlineDB/SiStripESSources/src/SiStripPedestalsBuilderFromDb.cc

Go to the documentation of this file.
00001 // Last commit: $Id: SiStripPedestalsBuilderFromDb.cc,v 1.10 2008/07/17 10:27:59 giordano Exp $
00002 // Latest tag:  $Name: V05-00-02-05 $
00003 // Location:    $Source: /cvs_server/repositories/CMSSW/CMSSW/OnlineDB/SiStripESSources/src/SiStripPedestalsBuilderFromDb.cc,v $
00004 
00005 #include "OnlineDB/SiStripESSources/interface/SiStripPedestalsBuilderFromDb.h"
00006 #include "CondFormats/SiStripObjects/interface/SiStripPedestals.h"
00007 
00008 using namespace std;
00009 using namespace sistrip;
00010 
00011 // -----------------------------------------------------------------------------
00013 SiStripPedestalsBuilderFromDb::SiStripPedestalsBuilderFromDb( const edm::ParameterSet& pset ) 
00014   : SiStripPedestalsESSource( pset ) {
00015   LogTrace(mlESSources_) 
00016     << "[SiStripPedestalsBuilderFromDb::" << __func__ << "]"
00017     << " Constructing object...";
00018 }
00019 
00020 // -----------------------------------------------------------------------------
00022 SiStripPedestalsBuilderFromDb::~SiStripPedestalsBuilderFromDb() {
00023   LogTrace(mlESSources_)
00024     << "[SiStripPedestalsBuilderFromDb::" << __func__ << "]"
00025     << " Destructing object...";
00026 }
00027 
00028 // -----------------------------------------------------------------------------
00030 SiStripPedestals* SiStripPedestalsBuilderFromDb::makePedestals() {
00031   LogTrace(mlESSources_) 
00032     << "[SiStripPedestalsBuilderFromDb::" << __func__ << "]"
00033     << " Constructing Pedestals object...";
00034   
00035   // Create Pedestals object 
00036   SiStripPedestals* pedestals;
00037   condObjBuilder->getValue(pedestals);  
00038   return pedestals;
00039   
00040 }
00041