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