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 e34b88758636082882cd0d6e0d06e717844d7cea..711b403f8ec4841975045239cb8688ae75952c73 100644 (file)
@@ -88,6 +88,8 @@ AliFMDReconstruction::AliFMDReconstruction(AliRunLoader* rl):TTask("AliFMDRecons
 
 AliFMDReconstruction::~AliFMDReconstruction()
 {
+  AliLoader* gime = fRunLoader->GetLoader("FMDLoader");
+  gime->CleanReconstructioner();
 }
 
 //____________________________________________________________________________
index f3c649196fe85b9108384711281548de342e252f..74e056e120bc4dd8998051f20b715ceefec2b530 100644 (file)
@@ -86,6 +86,8 @@ AliFMDSDigitizer::AliFMDSDigitizer(const char* HeaderFile,char *SdigitsFile ):TT
   AliFMDSDigitizer::~AliFMDSDigitizer()
 {
   // dtor
+  AliLoader* gime = fRunLoader->GetLoader("FMDLoader");
+  gime->CleanSDigitizer();
 }
 
 //---------------------------------------------------------------------