]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSPID.cxx
Follow AliAlignObj framework and remove AliPHOSAlignData (Yu.Kharlov)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSPID.cxx
index c369710eac689f40456d30c5d0ed63033e274c8c..4d64c1d1109b67ac416a6a3a6a8901d93891da61 100644 (file)
 
 //_________________________________________________________________________
 //  Algorithm class for the identification of particles detected in PHOS        
-//  base  class                             
+//  base  class  of identified particle  
+//  Why should I put meaningless comments
+//  just to satisfy
+//  the code checker                
+                         
 //                  
-//*-- Author: Yves Schutz (SUBATECH)
+//*-- Author: Yves Schutz (SUBATECH) & Dmitri Peressounko
 
 
 // --- ROOT system ---
 
-
 // --- Standard library ---
 
-
-
 // --- AliRoot header files ---
-
+#include "AliConfig.h"
 #include "AliPHOSPID.h"
+#include "AliPHOSGetter.h"
 
 ClassImp(AliPHOSPID)
 
 //____________________________________________________________________________
-AliPHOSPID::AliPHOSPID()
+  AliPHOSPID::AliPHOSPID():TTask("","")
 {
   // ctor
-  fGeom = AliPHOSGeometry::GetInstance() ;
+  fEventFolderName = "" ; 
+  fFirstEvent = 0 ; 
+  fLastEvent  = -1 ; 
+}
 
+
+//____________________________________________________________________________
+AliPHOSPID::AliPHOSPID(const TString alirunFileName, const TString eventFolderName):
+  TTask("PHOS"+AliConfig::Instance()->GetPIDTaskName(), alirunFileName), 
+  fEventFolderName(eventFolderName)
+{
+  // ctor
+  fFirstEvent = 0 ; 
+  fLastEvent  = -1 ;
 }
 
 //____________________________________________________________________________
 AliPHOSPID::~AliPHOSPID()
 {
   // dtor
+ //Remove this from the parental task before destroying
+  if(AliPHOSGetter::Instance()->PhosLoader())
+    AliPHOSGetter::Instance()->PhosLoader()->CleanPIDTask();
 }
+