Fix for #85901: request to commit fix in AliReconstruction.cxx and port to release...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Aug 2011 20:32:19 +0000 (20:32 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Aug 2011 20:32:19 +0000 (20:32 +0000)
STEER/STEER/AliReconstruction.cxx

index 4a7cb87..e4b5de5 100644 (file)
@@ -1953,23 +1953,6 @@ Bool_t AliReconstruction::ProcessEvent(Int_t iEvent)
        if (fStopOnError) {CleanUp(); return kFALSE;}
       }
     }
-
-    // AdC+FN
-    if (fReconstructor[3])
-      GetReconstructor(3)->FillEventTimeWithTOF(fesd,&pid);
-
-    // combined PID
-    pid.MakePID(fesd);
-
-    if (fFillTriggerESD) {
-      if (!FillTriggerESD(fesd)) {
-       if (fStopOnError) {CleanUp(); return kFALSE;}
-      }
-    }
-    // Always fill scalers
-    if (!FillTriggerScalers(fesd)) {
-       if (fStopOnError) {CleanUp(); return kFALSE;}
-    }
     
 
     ffile->cd();
@@ -2129,6 +2112,23 @@ Bool_t AliReconstruction::ProcessEvent(Int_t iEvent)
        }
     }
 
+    // AdC+FN
+    if (fReconstructor[3])
+      GetReconstructor(3)->FillEventTimeWithTOF(fesd,&pid);
+
+    // combined PID
+    pid.MakePID(fesd);
+
+    if (fFillTriggerESD) {
+      if (!FillTriggerESD(fesd)) {
+       if (fStopOnError) {CleanUp(); return kFALSE;}
+      }
+    }
+    // Always fill scalers
+    if (!FillTriggerScalers(fesd)) {
+       if (fStopOnError) {CleanUp(); return kFALSE;}
+    }
+
     // write ESD
     if (fCleanESD) CleanESD(fesd);
     //