// --- AliRoot header files ---
-#include "AliRun.h"
#include "AliEMCALClusterizer.h"
+#include "AliRunLoader.h"
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 ;
AliEMCALClusterizer::~AliEMCALClusterizer()
{
// dtor
+ //Remove this from the parental task before destroying
+ AliRunLoader::GetRunLoader()->GetDetectorLoader("EMCAL")->CleanReconstructioner();
}