#include <RPCDBHandler.h>
Public Member Functions | |
void | getNewObjects () |
std::string | id () const |
void | initObject (RPCDQMObject *) |
RPCDBHandler (const edm::ParameterSet &pset) | |
~RPCDBHandler () | |
Private Attributes | |
std::string | m_name |
RPCDQMObject * | rpcDQMObject |
unsigned int | sinceTime |
Definition at line 27 of file RPCDBHandler.h.
RPCDBHandler::~RPCDBHandler | ( | ) |
Definition at line 8 of file RPCDBHandler.cc.
{}
RPCDBHandler::RPCDBHandler | ( | const edm::ParameterSet & | pset | ) |
Definition at line 3 of file RPCDBHandler.cc.
: m_name(iConfig.getUntrackedParameter<std::string>("name","RPCDBHandler")), sinceTime(iConfig.getUntrackedParameter<unsigned>("IOVRun",0)) {}
void RPCDBHandler::getNewObjects | ( | ) | [virtual] |
Implements popcon::PopConSourceHandler< RPCDQMObject >.
Definition at line 10 of file RPCDBHandler.cc.
References RPCDQMObject::Fake_RPCDQMObject(), cond::TagInfo::lastInterval, popcon::PopConSourceHandler< RPCDQMObject >::m_to_transfer, alignCSCRings::r, rpcDQMObject, sinceTime, findQualityFiles::size, and popcon::PopConSourceHandler< RPCDQMObject >::tagInfo().
{ cond::Time_t myTime = sinceTime; // std::cout << "sinceTime= " << myTime << std::endl; size_t n_empty_run = 0; if(tagInfo().size > 0 && (tagInfo().lastInterval.first+1) < myTime) { n_empty_run = myTime - tagInfo().lastInterval.first - 1; } if (n_empty_run != 0) { RPCDQMObject * r = new RPCDQMObject(); m_to_transfer.push_back(std::make_pair((RPCDQMObject*) (r->Fake_RPCDQMObject()),tagInfo().lastInterval.first + 1)); } m_to_transfer.push_back(std::make_pair(rpcDQMObject,myTime)); }
std::string RPCDBHandler::id | ( | void | ) | const [inline, virtual] |
Implements popcon::PopConSourceHandler< RPCDQMObject >.
Definition at line 32 of file RPCDBHandler.h.
References m_name.
{ return m_name; }
void RPCDBHandler::initObject | ( | RPCDQMObject * | fObject | ) |
Definition at line 32 of file RPCDBHandler.cc.
References rpcDQMObject.
Referenced by RPCDBPopConAnalyzer::endJob().
{ rpcDQMObject = fObject; }
std::string RPCDBHandler::m_name [private] |
Definition at line 39 of file RPCDBHandler.h.
Referenced by id().
RPCDQMObject* RPCDBHandler::rpcDQMObject [private] |
Definition at line 41 of file RPCDBHandler.h.
Referenced by getNewObjects(), and initObject().
unsigned int RPCDBHandler::sinceTime [private] |
Definition at line 40 of file RPCDBHandler.h.
Referenced by getNewObjects().