Fix for printing statistics for both online and offline.
authoraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 29 Nov 2010 13:08:31 +0000 (13:08 +0000)
committeraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 29 Nov 2010 13:08:31 +0000 (13:08 +0000)
HLT/trigger/AliHLTGlobalTriggerComponent.cxx

index aa9b11f..6108d2d 100644 (file)
@@ -493,12 +493,9 @@ int AliHLTGlobalTriggerComponent::DoTrigger()
 
   AliHLTUInt32_t eventType=0;
   if (!IsDataEvent(&eventType)) {
-    if (eventType==gkAliEventTypeEndOfRun)
-    {
-      PrintStatistics(fTrigger, kHLTLogImportant);
-    }
     if (fDataEventsOnly)
     {
+      if (eventType == gkAliEventTypeEndOfRun) PrintStatistics(fTrigger, kHLTLogImportant);
       IgnoreEvent();  // dont generate any trigger decision.
       return 0;
     }
@@ -617,6 +614,10 @@ int AliHLTGlobalTriggerComponent::DoTrigger()
     lastTime=time.Get();
     PrintStatistics(fTrigger, kHLTLogImportant);
   }
+  else if (eventType==gkAliEventTypeEndOfRun)
+  {
+    PrintStatistics(fTrigger, kHLTLogImportant);
+  }
   
   // add readout filter to event done data
   CreateEventDoneReadoutFilter(decision.TriggerDomain(), 3);