#include <HcalQIEDataHandler.h>
Public Member Functions | |
void | getNewObjects () |
HcalQIEDataHandler (edm::ParameterSet const &) | |
std::string | id () const |
void | initObject (HcalQIEData *) |
~HcalQIEDataHandler () | |
Private Attributes | |
edm::FileInPath | fFile |
std::string | m_name |
HcalQIEData * | myDBObject |
unsigned int | sinceTime |
Definition at line 25 of file HcalQIEDataHandler.h.
HcalQIEDataHandler::~HcalQIEDataHandler | ( | ) |
Definition at line 12 of file HcalQIEDataHandler.cc.
{ }
HcalQIEDataHandler::HcalQIEDataHandler | ( | edm::ParameterSet const & | ps | ) |
Definition at line 6 of file HcalQIEDataHandler.cc.
References edm::ParameterSet::getUntrackedParameter(), m_name, sinceTime, and AlCaHLTBitMon_QueryRunRegistry::string.
{ m_name = ps.getUntrackedParameter<std::string>("name","HcalQIEDataHandler"); sinceTime = ps.getUntrackedParameter<unsigned>("IOVRun",0); }
void HcalQIEDataHandler::getNewObjects | ( | ) | [virtual] |
Implements popcon::PopConSourceHandler< HcalQIEData >.
Definition at line 16 of file HcalQIEDataHandler.cc.
References gather_cfg::cout, Exception, cond::TagInfo::lastInterval, m_name, popcon::PopConSourceHandler< HcalQIEData >::m_to_transfer, myDBObject, cond::TagInfo::name, sinceTime, cond::TagInfo::size, and popcon::PopConSourceHandler< HcalQIEData >::tagInfo().
{ // edm::LogInfo ("HcalQIEDataHandler") 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("HcalQIEDataHandler") << "------- " << m_name << " - > getNewObjects" << std::endl; }
std::string HcalQIEDataHandler::id | ( | void | ) | const [inline, virtual] |
Implements popcon::PopConSourceHandler< HcalQIEData >.
Definition at line 29 of file HcalQIEDataHandler.h.
References m_name.
{ return m_name;}
void HcalQIEDataHandler::initObject | ( | HcalQIEData * | fObject | ) |
Definition at line 45 of file HcalQIEDataHandler.cc.
References myDBObject.
Referenced by HcalQIEDataPopConAnalyzer::endJob().
{ myDBObject = fObject; }
edm::FileInPath HcalQIEDataHandler::fFile [private] |
Definition at line 37 of file HcalQIEDataHandler.h.
std::string HcalQIEDataHandler::m_name [private] |
Definition at line 39 of file HcalQIEDataHandler.h.
Referenced by getNewObjects(), HcalQIEDataHandler(), and id().
HcalQIEData* HcalQIEDataHandler::myDBObject [private] |
Definition at line 38 of file HcalQIEDataHandler.h.
Referenced by getNewObjects(), and initObject().
unsigned int HcalQIEDataHandler::sinceTime [private] |
Definition at line 36 of file HcalQIEDataHandler.h.
Referenced by getNewObjects(), and HcalQIEDataHandler().