bugfix: skip file name prefix if concatenating events
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Nov 2009 09:45:11 +0000 (09:45 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Nov 2009 09:45:11 +0000 (09:45 +0000)
https://savannah.cern.ch/bugs/?58454

HLT/BASE/util/AliHLTFileWriter.cxx

index c377625..320b736 100644 (file)
@@ -394,8 +394,10 @@ int AliHLTFileWriter::BuildFileName(const AliHLTEventID_t eventID, const int blo
   }
 
   IsDataEvent(&eventType);
-  if (eventType==gkAliEventTypeStartOfRun && CheckMode(kWriteAllEvents)) filename+="SOR_";
-  else if (eventType==gkAliEventTypeEndOfRun && CheckMode(kWriteAllEvents)) filename+="EOR_";
+  if (CheckMode(kWriteAllEvents) && !CheckMode(kConcatenateEvents)) {
+    if (eventType==gkAliEventTypeStartOfRun) filename+="SOR_";
+    else if (eventType==gkAliEventTypeEndOfRun) filename+="EOR_";
+  }
 
   if (!fBaseName.IsNull())
     filename+=fBaseName;