14 #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;
46 RPCFw time(
"",
"",
"");
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;
55 std::vector<RPCObImon::I_Item> mycond = cond->
ObImon_rpc;
56 std::vector<RPCObImon::I_Item>::iterator icond;
58 std::cout <<
"************************************" << std::endl;
59 for (icond = mycond.begin(); icond < mycond.end(); ++icond) {
60 if (icond->day >= ndateS && icond->time >= ntimeS && icond->day <= ndateT && icond->time <= ntimeT)
61 std::cout <<
"dpid = " << icond->dpid <<
" - value = " << icond->value <<
" - day = " << icond->day
62 <<
" - time = " << icond->time << std::endl;
#define DEFINE_FWK_MODULE(type)
CondReader(const edm::ParameterSet &iConfig)
edm::ESGetToken< RPCObImon, RPCObImonRcd > condRcd_token_
bool getData(T &iHolder) const
coral::TimeStamp UTtoT(long long utime)
Log< level::Info, false > LogInfo
std::vector< I_Item > ObImon_rpc
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override