1. The QA-manager is deleted within the SlaveTerminate method in order to prevent...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 9 Jun 2009 10:33:11 +0000 (10:33 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 9 Jun 2009 10:33:11 +0000 (10:33 +0000)
STEER/AliReconstruction.cxx

index 32d28f2..171705f 100644 (file)
@@ -520,7 +520,7 @@ AliReconstruction::~AliReconstruction()
     delete fAlignObjArray;
   }
   fSpecCDBUri.Delete();
-  delete fQAManager;
+
   AliCodeTimer::Instance()->Print();
 }
 
@@ -1977,8 +1977,11 @@ void AliReconstruction::Terminate()
   // In case of empty events the tags will contain dummy values
   AliCodeTimerAuto("");
 
-  AliESDTagCreator *esdtagCreator = new AliESDTagCreator();
-  esdtagCreator->CreateESDTags(fFirstEvent,fLastEvent,fGRPData, AliQAv1::Instance()->GetQA(), AliQAv1::Instance()->GetEventSpecies(), AliQAv1::kNDET, AliRecoParam::kNSpecies);
+  // Do not call the ESD tag creator in case of PROOF-based reconstruction
+  if (!fInput) {
+    AliESDTagCreator *esdtagCreator = new AliESDTagCreator();
+    esdtagCreator->CreateESDTags(fFirstEvent,fLastEvent,fGRPData, AliQAv1::Instance()->GetQA(), AliQAv1::Instance()->GetEventSpecies(), AliQAv1::kNDET, AliRecoParam::kNSpecies);
+  }
 
   // Cleanup of CDB manager: cache and active storages!
   AliCDBManager::Instance()->ClearCache();
@@ -2828,6 +2831,9 @@ void AliReconstruction::CleanUp()
     ffile = NULL;
   }
 
+  delete fQAManager;
+  fQAManager = NULL;
+
   TGeoGlobalMagField::Instance()->SetField(NULL);
 }