]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
adjusting the statistics printout to the new evaluation scheme of the HLTGlobalTrigge...
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 9 Oct 2009 10:22:58 +0000 (10:22 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 9 Oct 2009 10:22:58 +0000 (10:22 +0000)
HLT/trigger/AliHLTGlobalTriggerComponent.cxx

index 0cade4ac626099989227238b4ce4ab6f97c91296..70af59dded3065ffc5b6b4dc416e59a26626b741 100644 (file)
@@ -882,14 +882,13 @@ int AliHLTGlobalTriggerComponent::BuildSymbolList(const AliHLTTriggerMenu* menu,
 int AliHLTGlobalTriggerComponent::PrintStatistics(const AliHLTGlobalTrigger* pTrigger, AliHLTComponentLogSeverity level, int offset) const
 {
   // print some statistics
-  ULong64_t count=0;
+  int totalEvents=GetEventCount()+offset;
   for (int i=0; i<pTrigger->Counters().GetSize(); i++) {
-    count+=pTrigger->Counters()[i];
+    ULong64_t count=pTrigger->Counters()[i];
+    float ratio=0;
+    if (totalEvents>0) ratio=100*(float)count/totalEvents;
+    HLTLog(level, "Item %d: total events: %d - triggered events: %llu (%.1f%%)", i, totalEvents, count, ratio);
   }
-  int totalEvents=GetEventCount()+offset;
-  float ratio=0;
-  if (totalEvents>0) ratio=100*(float)count/totalEvents;
-  HLTLog(level, "total events: %d - triggered events: %llu (%.1f%%)", totalEvents, count, ratio);
   return 0;
 }