CMS 3D CMS Logo

RPCDBHandler.cc
Go to the documentation of this file.
4 
6  : m_name(iConfig.getUntrackedParameter<std::string>("name", "RPCDBHandler")),
7  sinceTime(iConfig.getUntrackedParameter<unsigned>("IOVRun", 0)) {}
8 
10  cond::Time_t myTime = sinceTime;
11 
12  // std::cout << "sinceTime= " << myTime << std::endl;
13 
14  size_t n_empty_run = 0;
15  if (tagInfo().size > 0 && (tagInfo().lastInterval.since + 1) < myTime) {
16  n_empty_run = myTime - tagInfo().lastInterval.since - 1;
17  }
18 
19  if (n_empty_run != 0) {
20  RPCDQMObject* r = new RPCDQMObject();
21  m_to_transfer.push_back(std::make_pair((RPCDQMObject*)(r->Fake_RPCDQMObject()), tagInfo().lastInterval.since + 1));
22  }
23 
24  m_to_transfer.push_back(std::make_pair(rpcDQMObject, myTime));
25 }
26 
27 void RPCDBHandler::initObject(RPCDQMObject* fObject) { rpcDQMObject = fObject; }
popcon::PopConSourceHandler< RPCDQMObject >::m_to_transfer
OldContainer m_to_transfer
Definition: PopConSourceHandler.h:162
RPCDQMObjectRcd.h
RPCDBHandler.h
RPCDBHandler::getNewObjects
void getNewObjects() override
Definition: RPCDBHandler.cc:9
RPCDBHandler::initObject
void initObject(RPCDQMObject *)
Definition: RPCDBHandler.cc:27
RPCDBHandler::RPCDBHandler
RPCDBHandler(const edm::ParameterSet &pset)
Definition: RPCDBHandler.cc:5
edm::ParameterSet
Definition: ParameterSet.h:47
popcon::PopConSourceHandler< RPCDQMObject >::tagInfo
cond::TagInfo_t const & tagInfo() const
Definition: PopConSourceHandler.h:78
RPCDQMObject
Definition: RPCDQMObject.h:10
cond::Iov_t::since
Time_t since
Definition: Types.h:53
cond::Time_t
unsigned long long Time_t
Definition: Time.h:14
RPCDBHandler::rpcDQMObject
RPCDQMObject * rpcDQMObject
Definition: RPCDBHandler.h:22
RPCDBHandler::sinceTime
unsigned int sinceTime
Definition: RPCDBHandler.h:21
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
alignCSCRings.r
r
Definition: alignCSCRings.py:93
cond::TagInfo_t::lastInterval
Iov_t lastInterval
Definition: Types.h:73
std
Definition: JetResolutionObject.h:76
Types.h
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443