16 : m_name(pset.getUntrackedParameter<std::
string>(
"name",
"RpcData")),
17 host(pset.getUntrackedParameter<std::
string>(
"host",
"source db host")),
18 user(pset.getUntrackedParameter<std::
string>(
"user",
"source username")),
19 passw(pset.getUntrackedParameter<std::
string>(
"passw",
"source password")),
20 m_since(pset.getUntrackedParameter<unsigned long long>(
"since", 5)),
21 m_till(pset.getUntrackedParameter<unsigned long long>(
"till", 0)) {}
26 std::cout <<
"------- " << m_name <<
" - > getNewObjects\n"
27 <<
"got offlineInfo " <<
tagInfo().name <<
", size " <<
tagInfo().size <<
", last object valid since "
28 <<
tagInfo().lastInterval.since <<
" token " <<
tagInfo().lastInterval.payloadId << std::endl;
30 std::cout <<
" ------ last entry info regarding the payload (if existing): " << logDBEntry().usertext
31 <<
"last record with the correct tag has been written in the db: " << logDBEntry().destinationDB
36 std::cout << std::endl <<
"=============================================" << std::endl;
37 std::cout << std::endl <<
"=================== GAS ==================" << std::endl;
38 std::cout << std::endl <<
"=============================================" << std::endl << std::endl;
40 std::cout <<
">> Range mode [" << snc <<
", " << m_till <<
"]" << std::endl;
41 std::cout << std::endl <<
"=============================================" << std::endl << std::endl;
44 std::vector<RPCObGas::Item> Gascheck;
49 std::vector<RPCObGas::Item>::iterator Iit;
50 for (Iit = Gascheck.begin(); Iit != Gascheck.end(); Iit++) {
52 Gasdata->ObGas_rpc.push_back(Ifill);
54 std::cout <<
" >> Final object size: " << Gasdata->ObGas_rpc.size() << std::endl;
56 if (!Gasdata->ObGas_rpc.empty()) {
60 std::cout <<
"NO DATA TO BE STORED" << std::endl;
66 edm::Timestamp tmstamp((
unsigned long long)tv.tv_sec * 1000000 + (
unsigned long long)tv.tv_usec);
71 daqtime = (daqtime << 32) + tv.tv_usec;
74 std::cout <<
"DAQ time = " << dtime << std::endl;
78 std::cout <<
"===> New IOV: since is = " << niov << std::endl;
79 m_to_transfer.push_back(std::make_pair((
RPCObGas*)Gasdata, niov));
RpcObGasData(const edm::ParameterSet &pset)
void getNewObjects() override
std::vector< RPCObGas::Item > createGAS(long long since, long long till)
unsigned long long TimeValue_t
TimeValue_t value() const