CMS 3D CMS Logo

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