CMS 3D CMS Logo

RPCDBHandler.cc
Go to the documentation of this file.
3 
5  m_name(iConfig.getUntrackedParameter<std::string>("name","RPCDBHandler")),
6  sinceTime(iConfig.getUntrackedParameter<unsigned>("IOVRun",0))
7 {}
8 
10 
12 {
13 
14 
15  cond::Time_t myTime = sinceTime;
16 
17  // std::cout << "sinceTime= " << myTime << std::endl;
18 
19  size_t n_empty_run = 0;
20  if(tagInfo().size > 0 && (tagInfo().lastInterval.first+1) < myTime) {
21  n_empty_run = myTime - tagInfo().lastInterval.first - 1;
22  }
23 
24  if (n_empty_run != 0) {
25  RPCDQMObject * r = new RPCDQMObject();
26  m_to_transfer.push_back(std::make_pair((RPCDQMObject*) (r->Fake_RPCDQMObject()),tagInfo().lastInterval.first + 1));
27  }
28 
29  m_to_transfer.push_back(std::make_pair(rpcDQMObject,myTime));
30 
31 }
32 
34  rpcDQMObject = fObject;
35 }
size
Write out results.
~RPCDBHandler() override
Definition: RPCDBHandler.cc:9
cond::ValidityInterval lastInterval
Definition: Types.h:76
RPCDQMObject * Fake_RPCDQMObject()
Definition: RPCDQMObject.cc:4
unsigned long long Time_t
Definition: Time.h:16
RPCDBHandler(const edm::ParameterSet &pset)
Definition: RPCDBHandler.cc:4
void getNewObjects() override
Definition: RPCDBHandler.cc:11
unsigned int sinceTime
Definition: RPCDBHandler.h:39
void initObject(RPCDQMObject *)
Definition: RPCDBHandler.cc:33
RPCDQMObject * rpcDQMObject
Definition: RPCDBHandler.h:40
cond::TagInfo_t const & tagInfo() const