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; }
size
Write out results.
Iov_t lastInterval
Definition: Types.h:73
Time_t since
Definition: Types.h:53
cond::TagInfo_t const & tagInfo() const
unsigned long long Time_t
Definition: Time.h:14
RPCDBHandler(const edm::ParameterSet &pset)
Definition: RPCDBHandler.cc:5
std::vector< std::pair< RPCDQMObject *, Time_t > > m_to_transfer
void getNewObjects() override
Definition: RPCDBHandler.cc:9
unsigned int sinceTime
Definition: RPCDBHandler.h:21
void initObject(RPCDQMObject *)
Definition: RPCDBHandler.cc:27
RPCDQMObject * rpcDQMObject
Definition: RPCDBHandler.h:22