]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSPID.cxx
Remove the task from the task folder in the dtor
[u/mrichter/AliRoot.git] / PHOS / AliPHOSPID.cxx
index 1504ec659bbcba98ce8810d6ef8ea4571cfe7107..d4e02e75e8f4011cee267d4671ad0380762d29c8 100644 (file)
@@ -33,6 +33,7 @@
 // --- AliRoot header files ---
 #include "AliConfig.h"
 #include "AliPHOSPID.h"
+#include "AliPHOSGetter.h"
 
 ClassImp(AliPHOSPID)
 
@@ -60,5 +61,7 @@ AliPHOSPID::AliPHOSPID(const TString alirunFileName, const TString eventFolderNa
 AliPHOSPID::~AliPHOSPID()
 {
   // dtor
+ //Remove this from the parental task before destroying
+  AliPHOSGetter::Instance()->PhosLoader()->CleanPIDTask();
 }