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