]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSPID.cxx
Additional protection. The call to RecWithStack has to be removed in case of raw...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSPID.cxx
index b0b73aad4564b1b4645a194a207aa0ff175d1f55..4d64c1d1109b67ac416a6a3a6a8901d93891da61 100644 (file)
 
 // --- ROOT system ---
 
-
 // --- Standard library ---
-#include <iostream.h>
-#include <stdlib.h>
-
 
 // --- AliRoot header files ---
-
+#include "AliConfig.h"
 #include "AliPHOSPID.h"
+#include "AliPHOSGetter.h"
 
 ClassImp(AliPHOSPID)
 
 //____________________________________________________________________________
-  AliPHOSPID::AliPHOSPID():TTask()
+  AliPHOSPID::AliPHOSPID():TTask("","")
 {
   // ctor
+  fEventFolderName = "" ; 
+  fFirstEvent = 0 ; 
+  fLastEvent  = -1 ; 
 }
+
+
 //____________________________________________________________________________
-AliPHOSPID::AliPHOSPID(const char* header,const char * branch ):TTask()
+AliPHOSPID::AliPHOSPID(const TString alirunFileName, const TString eventFolderName):
+  TTask("PHOS"+AliConfig::Instance()->GetPIDTaskName(), alirunFileName), 
+  fEventFolderName(eventFolderName)
 {
   // ctor
-  cout << "AliPHOSPID: This constructor should be overwritten! "<< endl ;
-  abort() ;
-
+  fFirstEvent = 0 ; 
+  fLastEvent  = -1 ;
 }
+
 //____________________________________________________________________________
 AliPHOSPID::~AliPHOSPID()
 {
   // dtor
+ //Remove this from the parental task before destroying
+  if(AliPHOSGetter::Instance()->PhosLoader())
+    AliPHOSGetter::Instance()->PhosLoader()->CleanPIDTask();
 }
+