Cleaning the task in the destructor if it was posted
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Jan 2004 18:33:07 +0000 (18:33 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Jan 2004 18:33:07 +0000 (18:33 +0000)
FMD/AliFMDReconstruction.cxx
FMD/AliFMDSDigitizer.cxx

index e34b887..711b403 100644 (file)
@@ -88,6 +88,8 @@ AliFMDReconstruction::AliFMDReconstruction(AliRunLoader* rl):TTask("AliFMDRecons
 
 AliFMDReconstruction::~AliFMDReconstruction()
 {
+  AliLoader* gime = fRunLoader->GetLoader("FMDLoader");
+  gime->CleanReconstructioner();
 }
 
 //____________________________________________________________________________
index f3c6491..74e056e 100644 (file)
@@ -86,6 +86,8 @@ AliFMDSDigitizer::AliFMDSDigitizer(const char* HeaderFile,char *SdigitsFile ):TT
   AliFMDSDigitizer::~AliFMDSDigitizer()
 {
   // dtor
+  AliLoader* gime = fRunLoader->GetLoader("FMDLoader");
+  gime->CleanSDigitizer();
 }
 
 //---------------------------------------------------------------------