15 #include "CoralBase/TimeStamp.h"
33 since(iConfig.getUntrackedParameter<unsigned long long>(
"since",0)),
34 till(iConfig.getUntrackedParameter<unsigned long long>(
"till",0))
46 edm::LogInfo(
"CondReader") <<
"[CondReader::analyze] End Reading Cond" << std::endl;
52 coral::TimeStamp tTime = time.
UTtoT(
till);
53 int ndateS = (sTime.day() * 10000) + (sTime.month() * 100) + (sTime.year()-2000);
54 int ntimeS = (sTime.hour() * 10000) + (sTime.minute() * 100) + sTime.second();
55 int ndateT = (tTime.day() * 10000) + (tTime.month() * 100) + (tTime.year()-2000);
56 int ntimeT = (tTime.hour() * 10000) + (tTime.minute() * 100) + tTime.second();
57 std::cout <<
"Run start: " << ndateS <<
" " << ntimeS <<
" - Run stop: " << ndateT <<
" " << ntimeT << std::endl;
60 std::vector<RPCObImon::I_Item> mycond = cond->
ObImon_rpc;
61 std::vector<RPCObImon::I_Item>::iterator icond;
63 std::cout <<
"************************************" << std::endl;
64 for(icond = mycond.begin(); icond < mycond.end(); ++icond){
66 if (icond->day >= ndateS && icond->time >= ntimeS && icond->day <= ndateT && icond->time <= ntimeT)
67 std::cout<<
"dpid = " << icond->dpid <<
" - value = " << icond->value <<
" - day = " << icond->day <<
" - time = " << icond->time << std::endl;
#define DEFINE_FWK_MODULE(type)
CondReader(const edm::ParameterSet &iConfig)
coral::TimeStamp UTtoT(long long utime)
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup)
T const * product() const
std::vector< I_Item > ObImon_rpc