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