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