15 #include "CoralBase/TimeStamp.h"
32 :
since(iConfig.getUntrackedParameter<unsigned long long>(
"since", 0)),
33 till(iConfig.getUntrackedParameter<unsigned long long>(
"till", 0)) {}
42 edm::LogInfo(
"CondReader") <<
"[CondReader::analyze] End Reading Cond" << std::endl;
47 coral::TimeStamp sTime =
time.UTtoT(
since);
48 coral::TimeStamp tTime =
time.UTtoT(
till);
49 int ndateS = (sTime.day() * 10000) + (sTime.month() * 100) + (sTime.year() - 2000);
50 int ntimeS = (sTime.hour() * 10000) + (sTime.minute() * 100) + sTime.second();
51 int ndateT = (tTime.day() * 10000) + (tTime.month() * 100) + (tTime.year() - 2000);
52 int ntimeT = (tTime.hour() * 10000) + (tTime.minute() * 100) + tTime.second();
53 std::cout <<
"Run start: " << ndateS <<
" " << ntimeS <<
" - Run stop: " << ndateT <<
" " << ntimeT << std::endl;
56 std::vector<RPCObImon::I_Item> mycond =
cond->ObImon_rpc;
57 std::vector<RPCObImon::I_Item>::iterator icond;
59 std::cout <<
"************************************" << std::endl;
60 for (icond = mycond.begin(); icond < mycond.end(); ++icond) {
61 if (icond->day >= ndateS && icond->time >= ntimeS && icond->day <= ndateT && icond->time <= ntimeT)
62 std::cout <<
"dpid = " << icond->dpid <<
" - value = " << icond->value <<
" - day = " << icond->day
63 <<
" - time = " << icond->time << std::endl;