00001 #include "DQM/RPCMonitorClient/interface/RPCDBHandler.h" 00002 00003 RPCDBHandler::RPCDBHandler(const edm::ParameterSet& iConfig) : 00004 m_name(iConfig.getUntrackedParameter<std::string>("name","RPCDBHandler")), 00005 sinceTime(iConfig.getUntrackedParameter<unsigned>("IOVRun",0)) 00006 {} 00007 00008 RPCDBHandler::~RPCDBHandler(){} 00009 00010 void RPCDBHandler::getNewObjects() 00011 { 00012 00013 00014 cond::Time_t myTime = sinceTime; 00015 00016 // std::cout << "sinceTime= " << myTime << std::endl; 00017 00018 size_t n_empty_run = 0; 00019 if(tagInfo().size > 0 && (tagInfo().lastInterval.first+1) < myTime) { 00020 n_empty_run = myTime - tagInfo().lastInterval.first - 1; 00021 } 00022 00023 if (n_empty_run != 0) { 00024 RPCDQMObject * r = new RPCDQMObject(); 00025 m_to_transfer.push_back(std::make_pair((RPCDQMObject*) (r->Fake_RPCDQMObject()),tagInfo().lastInterval.first + 1)); 00026 } 00027 00028 m_to_transfer.push_back(std::make_pair(rpcDQMObject,myTime)); 00029 00030 } 00031 00032 void RPCDBHandler::initObject(RPCDQMObject* fObject){ 00033 rpcDQMObject = fObject; 00034 }