Using default task names. Cleaning the task in the destructor if it was posted
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALDigitizer.cxx
index 653ee3ba8b630b3f5357a04976e484a4190bcea4..66a1bd04cb07390d71485f038e1db44036cefce0 100644 (file)
@@ -139,7 +139,7 @@ AliEMCALDigitizer::AliEMCALDigitizer(AliRunDigitizer * rd):
 {
   // ctor
   fManager = rd ; 
 {
   // ctor
   fManager = rd ; 
-  SetName(fManager->GetInputFolderName(0)) ;
+  //  SetName(fManager->GetInputFolderName(0)) ;
   // take title as name of stream 0
   SetTitle(dynamic_cast<AliStream*>(fManager->GetInputStream(0))->GetFileName(0));
   InitParameters() ; 
   // take title as name of stream 0
   SetTitle(dynamic_cast<AliStream*>(fManager->GetInputStream(0))->GetFileName(0));
   InitParameters() ; 
@@ -151,6 +151,8 @@ AliEMCALDigitizer::AliEMCALDigitizer(AliRunDigitizer * rd):
   AliEMCALDigitizer::~AliEMCALDigitizer()
 {
   // dtor
   AliEMCALDigitizer::~AliEMCALDigitizer()
 {
   // dtor
+  AliEMCALGetter * gime =AliEMCALGetter::Instance(GetTitle(),fEventFolderName);
+  gime->EmcalLoader()->CleanDigitizer();
   delete [] fInputFileNames ; 
   delete [] fEventNames ; 
 
   delete [] fInputFileNames ; 
   delete [] fEventNames ;