test
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.
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 }
cond::ValidityInterval lastInterval
Definition: Types.h:73
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()
Definition: RPCDBHandler.cc:11
unsigned int sinceTime
Definition: RPCDBHandler.h:39
void initObject(RPCDQMObject *)
Definition: RPCDBHandler.cc:33
RPCDQMObject * rpcDQMObject
Definition: RPCDBHandler.h:40
tuple size
Write out results.
cond::TagInfo_t const & tagInfo() const