--- YodaProfiler/src/R2-D2.cpp 2006/11/20 09:11:59 1.4 +++ YodaProfiler/src/R2-D2.cpp 2006/11/27 14:25:35 1.5 @@ -469,6 +469,7 @@ exit(-4); }; printf("\n Run %u belongs to file %s \n",run,(glroot->PATH+glroot->NAME).Data()); + filename = glroot->NAME; found = true; }; // @@ -521,7 +522,7 @@ } else { myquery.str(""); myquery << "select "; - myquery << " ID,RUNHEADER_TIME,RUNTRAILER_TIME "; + myquery << " ID,RUNHEADER_TIME,RUNTRAILER_TIME,NEVENTS "; myquery << " from GL_RUN where ID_ROOT_L0=" << ID << ";"; pResult = dbc->Query(myquery.str().c_str()); for( r=0; r < 1000; r++){ @@ -529,8 +530,8 @@ if( Row == NULL ) break; found = true; if ( !r ) printf("\n File %s contains the following runs: \n\n",filename.Data()); - TString UTC="UTC"; - printf(" => ID = %i --> the run started at %s UTC ended at %s UTC \n\n",(UInt_t)atoll(Row->GetField(0)),dbtime->ConvertTime(UTC,(UInt_t)atoll(Row->GetField(1))).Data(),dbtime->ConvertTime(UTC,(UInt_t)atoll(Row->GetField(2))).Data()); + TString UTC=tzone.Data(); + printf(" => ID = %i --> the run started at %s %s ended at %s %s NEV = %u \n\n",(UInt_t)atoll(Row->GetField(0)),dbtime->ConvertTime(UTC,(UInt_t)atoll(Row->GetField(1))).Data(),tzone.Data(),dbtime->ConvertTime(UTC,(UInt_t)atoll(Row->GetField(2))).Data(),tzone.Data(),(UInt_t)atoll(Row->GetField(3))); }; delete pResult; myquery.str(""); @@ -542,8 +543,8 @@ Row = pResult->Next(); if( Row == NULL ) break; if ( !r ) printf("\n File %s contains the following DELETED runs: \n\n",filename.Data()); - TString UTC="UTC"; - printf(" => ID = %i --> the run started at %s UTC ended at %s UTC \n\n",(UInt_t)atoll(Row->GetField(0)),dbtime->ConvertTime(UTC,(UInt_t)atoll(Row->GetField(1))).Data(),dbtime->ConvertTime(UTC,(UInt_t)atoll(Row->GetField(2))).Data()); + TString UTC=tzone.Data(); + printf(" => ID = %i --> the run started at %s %s ended at %s %s \n\n",(UInt_t)atoll(Row->GetField(0)),dbtime->ConvertTime(UTC,(UInt_t)atoll(Row->GetField(1))).Data(),tzone.Data(),dbtime->ConvertTime(UTC,(UInt_t)atoll(Row->GetField(2))).Data(),tzone.Data()); }; // if ( !found ){