Fix for #85461: Destructor of AliReconstructor implementations not called anymore
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Aug 2011 13:09:25 +0000 (13:09 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Aug 2011 13:09:25 +0000 (13:09 +0000)
STEER/STEER/AliReconstruction.cxx

index 0909ac2..4a7cb87 100644 (file)
@@ -2295,6 +2295,10 @@ void AliReconstruction::SlaveTerminate()
    AliWarning("Finish PlaneEff evaluation failed");
   }
 
+  for (Int_t iDet = 0; iDet < kNDetectors; iDet++) {
+    AliReconstructor *reconstructor = GetReconstructor(iDet);
+    if (reconstructor) reconstructor->Terminate();
+  }
   // End of cycle for the in-loop  
 
   if (fRunQA || fRunGlobalQA) {