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