CMS 3D CMS Logo

Public Member Functions | Private Attributes

HcalL1TriggerObjectsHandler Class Reference

#include <HcalL1TriggerObjectsHandler.h>

Inheritance diagram for HcalL1TriggerObjectsHandler:
popcon::PopConSourceHandler< HcalL1TriggerObjects >

List of all members.

Public Member Functions

void getNewObjects ()
 HcalL1TriggerObjectsHandler (edm::ParameterSet const &)
std::string id () const
void initObject (HcalL1TriggerObjects *)
 ~HcalL1TriggerObjectsHandler ()

Private Attributes

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

Detailed Description

Definition at line 25 of file HcalL1TriggerObjectsHandler.h.


Constructor & Destructor Documentation

HcalL1TriggerObjectsHandler::~HcalL1TriggerObjectsHandler ( )

Definition at line 12 of file HcalL1TriggerObjectsHandler.cc.

{
}
HcalL1TriggerObjectsHandler::HcalL1TriggerObjectsHandler ( edm::ParameterSet const &  ps)

Definition at line 6 of file HcalL1TriggerObjectsHandler.cc.

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

{
  m_name = ps.getUntrackedParameter<std::string>("name","HcalL1TriggerObjectsHandler");
  sinceTime = ps.getUntrackedParameter<unsigned>("IOVRun",0);
}

Member Function Documentation

void HcalL1TriggerObjectsHandler::getNewObjects ( ) [virtual]

Implements popcon::PopConSourceHandler< HcalL1TriggerObjects >.

Definition at line 16 of file HcalL1TriggerObjectsHandler.cc.

References gather_cfg::cout, Exception, cond::TagInfo::lastInterval, m_name, popcon::PopConSourceHandler< HcalL1TriggerObjects >::m_to_transfer, myDBObject, cond::TagInfo::name, sinceTime, cond::TagInfo::size, and popcon::PopConSourceHandler< HcalL1TriggerObjects >::tagInfo().

{
  //  edm::LogInfo   ("HcalL1TriggerObjectsHandler") 
  std::cout
    << "------- " << m_name 
    << " - > getNewObjects\n" << 
    //check whats already inside of database
    "got offlineInfo"<<
    tagInfo().name << ", size " << tagInfo().size 
                                          << ", last object valid since " 
                                          << tagInfo().lastInterval.first << std::endl;  

  if (!myDBObject) 
    throw cms::Exception("Empty DB object") << m_name 
                                            << " has received empty object - nothing to write to DB" 
                                            << std::endl;

  //  IOV information
  cond::Time_t myTime = sinceTime;

  std::cout << "Using IOV run " << sinceTime << std::endl;

  // prepare for transfer:
  m_to_transfer.push_back(std::make_pair(myDBObject,myTime));

  edm::LogInfo("HcalL1TriggerObjectsHandler") << "------- " << m_name << " - > getNewObjects" << std::endl;

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

Implements popcon::PopConSourceHandler< HcalL1TriggerObjects >.

Definition at line 29 of file HcalL1TriggerObjectsHandler.h.

References m_name.

{ return m_name;}
void HcalL1TriggerObjectsHandler::initObject ( HcalL1TriggerObjects fObject)

Definition at line 45 of file HcalL1TriggerObjectsHandler.cc.

References myDBObject.

Referenced by HcalL1TriggerObjectsPopConAnalyzer::endJob().

{
  myDBObject = fObject;
}

Member Data Documentation

Definition at line 37 of file HcalL1TriggerObjectsHandler.h.

std::string HcalL1TriggerObjectsHandler::m_name [private]

Definition at line 39 of file HcalL1TriggerObjectsHandler.h.

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

Definition at line 38 of file HcalL1TriggerObjectsHandler.h.

Referenced by getNewObjects(), and initObject().

Definition at line 36 of file HcalL1TriggerObjectsHandler.h.

Referenced by getNewObjects(), and HcalL1TriggerObjectsHandler().