]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALClusterizer.cxx
Coding conventions (Gustavo)
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALClusterizer.cxx
index 7a6a4b3fa74d65e526f3f7d8888f7e2f1f32f674..09beb9077a1764d9318a525c55e5af3a7f69df05 100644 (file)
@@ -30,8 +30,8 @@
 
 
 // --- AliRoot header files ---
-#include "AliRun.h" 
 #include "AliEMCALClusterizer.h"
+#include "AliRunLoader.h"
 
 ClassImp(AliEMCALClusterizer)
 
@@ -45,8 +45,10 @@ ClassImp(AliEMCALClusterizer)
 }
 
 //____________________________________________________________________________
-AliEMCALClusterizer::AliEMCALClusterizer(const TString alirunFileName, const TString eventFolderName):
-  TTask("EMCAL"+AliConfig::fgkReconstructionerTaskName, alirunFileName), fEventFolderName(eventFolderName)
+AliEMCALClusterizer::AliEMCALClusterizer(const TString alirunFileName, 
+                                        const TString eventFolderName):
+  TTask("EMCAL"+AliConfig::Instance()->GetReconstructionerTaskName(), alirunFileName),
+ fEventFolderName(eventFolderName)
 {
   // ctor
   fFirstEvent = 0 ; 
@@ -57,5 +59,7 @@ AliEMCALClusterizer::AliEMCALClusterizer(const TString alirunFileName, const TSt
 AliEMCALClusterizer::~AliEMCALClusterizer()
 {
   // dtor
+ //Remove this from the parental task before destroying
+  AliRunLoader::GetRunLoader()->GetDetectorLoader("EMCAL")->CleanReconstructioner();
 }