CMS 3D CMS Logo

HcalChannelQualityHandler Class Reference

#include <CondTools/Hcal/interface/HcalChannelQualityHandler.h>

Inheritance diagram for HcalChannelQualityHandler:

popcon::PopConSourceHandler< HcalChannelQuality >

List of all members.

Public Member Functions

void getNewObjects ()
 HcalChannelQualityHandler (edm::ParameterSet const &)
std::string id () const
void initObject (HcalChannelQuality *)
 ~HcalChannelQualityHandler ()

Private Attributes

edm::FileInPath fFile
std::string m_name
HcalChannelQualitymyDBObject
unsigned int sinceTime


Detailed Description

Definition at line 25 of file HcalChannelQualityHandler.h.


Constructor & Destructor Documentation

HcalChannelQualityHandler::~HcalChannelQualityHandler (  ) 

Definition at line 12 of file HcalChannelQualityHandler.cc.

00013 {
00014 }

HcalChannelQualityHandler::HcalChannelQualityHandler ( edm::ParameterSet const &  ps  ) 

Definition at line 6 of file HcalChannelQualityHandler.cc.

References edm::ParameterSet::getUntrackedParameter(), m_name, and sinceTime.

00007 {
00008   m_name = ps.getUntrackedParameter<std::string>("name","HcalChannelQualityHandler");
00009   sinceTime = ps.getUntrackedParameter<unsigned>("IOVRun",0);
00010 }


Member Function Documentation

void HcalChannelQualityHandler::getNewObjects (  )  [virtual]

Implements popcon::PopConSourceHandler< HcalChannelQuality >.

Definition at line 16 of file HcalChannelQualityHandler.cc.

References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), Exception, cond::TagInfo::lastInterval, m_name, popcon::PopConSourceHandler< HcalChannelQuality >::m_to_transfer, myDBObject, cond::TagInfo::name, sinceTime, cond::TagInfo::size, and popcon::PopConSourceHandler< HcalChannelQuality >::tagInfo().

00017 {
00018   //  edm::LogInfo   ("HcalChannelQualityHandler") 
00019   std::cout
00020     << "------- " << m_name 
00021     << " - > getNewObjects\n" << 
00022     //check whats already inside of database
00023     "got offlineInfo"<<
00024     tagInfo().name << ", size " << tagInfo().size 
00025                                           << ", last object valid since " 
00026                                           << tagInfo().lastInterval.first << std::endl;  
00027 
00028   if (!myDBObject) 
00029     throw cms::Exception("Empty DB object") << m_name 
00030                                             << " has received empty object - nothing to write to DB" 
00031                                             << std::endl;
00032 
00033   //  IOV information
00034   cond::Time_t myTime = sinceTime;
00035 
00036   std::cout << "Using IOV run " << sinceTime << std::endl;
00037 
00038   // prepare for transfer:
00039   m_to_transfer.push_back(std::make_pair(myDBObject,myTime));
00040 
00041   edm::LogInfo("HcalChannelQualityHandler") << "------- " << m_name << " - > getNewObjects" << std::endl;
00042 
00043 }

std::string HcalChannelQualityHandler::id ( void   )  const [inline, virtual]

Implements popcon::PopConSourceHandler< HcalChannelQuality >.

Definition at line 29 of file HcalChannelQualityHandler.h.

References m_name.

00029 { return m_name;}

void HcalChannelQualityHandler::initObject ( HcalChannelQuality fObject  ) 

Definition at line 45 of file HcalChannelQualityHandler.cc.

References myDBObject.

Referenced by HcalChannelQualityPopConAnalyzer::endJob().

00046 {
00047   myDBObject = fObject;
00048 }


Member Data Documentation

edm::FileInPath HcalChannelQualityHandler::fFile [private]

Definition at line 37 of file HcalChannelQualityHandler.h.

std::string HcalChannelQualityHandler::m_name [private]

Definition at line 39 of file HcalChannelQualityHandler.h.

Referenced by getNewObjects(), HcalChannelQualityHandler(), and id().

HcalChannelQuality* HcalChannelQualityHandler::myDBObject [private]

Definition at line 38 of file HcalChannelQualityHandler.h.

Referenced by getNewObjects(), and initObject().

unsigned int HcalChannelQualityHandler::sinceTime [private]

Definition at line 36 of file HcalChannelQualityHandler.h.

Referenced by getNewObjects(), and HcalChannelQualityHandler().


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