New detector numbering scheme (common for DAQ/HLT/Offline). All the subdetectors...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSPID.cxx
index 26f413a..4d64c1d 100644 (file)
 
 // --- ROOT system ---
 
-
 // --- Standard library ---
-#include <iostream.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();
 }
+