From 9f354b290c5ec322b338770110676fffe8013f5f Mon Sep 17 00:00:00 2001 From: schutz Date: Thu, 6 May 2004 08:13:49 +0000 Subject: [PATCH] Remove the task from the task folder in the dtor --- EMCAL/AliEMCALClusterizer.cxx | 4 +++- EMCAL/AliEMCALPID.cxx | 3 +++ EMCAL/AliEMCALTrackSegmentMaker.cxx | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/EMCAL/AliEMCALClusterizer.cxx b/EMCAL/AliEMCALClusterizer.cxx index dc015462e45..127e476faa7 100644 --- a/EMCAL/AliEMCALClusterizer.cxx +++ b/EMCAL/AliEMCALClusterizer.cxx @@ -30,8 +30,8 @@ // --- AliRoot header files --- -#include "AliRun.h" #include "AliEMCALClusterizer.h" +#include "AliEMCALGetter.h" ClassImp(AliEMCALClusterizer) @@ -59,5 +59,7 @@ AliEMCALClusterizer::AliEMCALClusterizer(const TString alirunFileName, AliEMCALClusterizer::~AliEMCALClusterizer() { // dtor + //Remove this from the parental task before destroying + AliEMCALGetter::Instance()->EmcalLoader()->CleanReconstructioner(); } diff --git a/EMCAL/AliEMCALPID.cxx b/EMCAL/AliEMCALPID.cxx index a28c38a3a2d..fce79999efd 100644 --- a/EMCAL/AliEMCALPID.cxx +++ b/EMCAL/AliEMCALPID.cxx @@ -32,6 +32,7 @@ // --- AliRoot header files --- #include "AliEMCALPID.h" +#include "AliEMCALGetter.h" ClassImp(AliEMCALPID) @@ -59,5 +60,7 @@ AliEMCALPID::AliEMCALPID(const TString alirunFileName, const TString eventFolder AliEMCALPID::~AliEMCALPID() { // dtor + //Remove this from the parental task before destroying + AliEMCALGetter::Instance()->EmcalLoader()->CleanPIDTask(); } diff --git a/EMCAL/AliEMCALTrackSegmentMaker.cxx b/EMCAL/AliEMCALTrackSegmentMaker.cxx index 27523395a83..c497799ecbf 100644 --- a/EMCAL/AliEMCALTrackSegmentMaker.cxx +++ b/EMCAL/AliEMCALTrackSegmentMaker.cxx @@ -28,6 +28,7 @@ // --- AliRoot header files --- #include "AliEMCALTrackSegmentMaker.h" +#include "AliEMCALGetter.h" ClassImp( AliEMCALTrackSegmentMaker) @@ -53,5 +54,7 @@ AliEMCALTrackSegmentMaker::AliEMCALTrackSegmentMaker(const TString alirunFileNam //____________________________________________________________________________ AliEMCALTrackSegmentMaker::~AliEMCALTrackSegmentMaker() { + //Remove this from the parental task before destroying + AliEMCALGetter::Instance()->EmcalLoader()->CleanTracker(); } -- 2.39.3