]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSPID.h
Charged jets (pPb): Improved trackcut analysis
[u/mrichter/AliRoot.git] / PHOS / AliPHOSPID.h
index 938e2a45f28fc6bd45741c61646ee44ecf6a9b53..7588907c77001d133d2b760476c366b3721f8fd9 100644 (file)
@@ -8,6 +8,12 @@
 /* History of cvs commits:
  *
  * $Log$
+ * Revision 1.41  2007/08/28 12:55:08  policheh
+ * Loaders removed from the reconstruction code (C.Cheshkov)
+ *
+ * Revision 1.40  2007/08/07 14:12:03  kharlov
+ * Quality assurance added (Yves Schutz)
+ *
  * Revision 1.39  2007/07/11 13:43:30  hristov
  * New class AliESDEvent, backward compatibility with the old AliESD (Christian)
  *
 //*-- Author: Yves Schutz (SUBATECH)
 
 // --- ROOT system ---
-
-#include "TTask.h"
-#include "AliConfig.h"
-
-class TFormula ;
-class TClonesArray ;
+#include "TObject.h"
+class TTree;
 
 // --- Standard library ---
 
@@ -46,47 +48,43 @@ class AliESDEvent ;
 class AliPHOSGeometry ;
 class AliPHOSClusterizer ;
 class AliPHOSTrackSegmentMaker ;
-class AliPHOSQualAssDataMaker ; 
 
-class AliPHOSPID : public TTask {
+class AliPHOSPID : public TObject {
 
  public:
 
   AliPHOSPID() ;          // ctor            
-  AliPHOSPID (const TString alirunFileName, const TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ;
+  AliPHOSPID (AliPHOSGeometry *geom);
   AliPHOSPID(const AliPHOSPID & pid) ;
   virtual ~AliPHOSPID() ; // dtor
   AliPHOSPID & operator = (const AliPHOSPID & /*rvalue*/)  {
     Fatal("operator =", "not implemented") ; return *this ; }
 
-  virtual Int_t GetRecParticlesInRun()  const { Warning("GetRecParticlesInRun", "not defined" ) ; return 0 ;} 
-  virtual void Print(const Option_t * = "") const { Warning("Print", "not defined" ) ;}
+  virtual void TrackSegments2RecParticles(Option_t * option) = 0;
 
-  void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
-  void SetEventFolderName(TString name) { fEventFolderName = name ; }
+  void SetInput(TTree *clustersTree, TClonesArray *trackSegments);
+  TClonesArray* GetRecParticles() const { return fRecParticles; }
 
-  TString GetEventFolderName() const {return fEventFolderName;}
-  Int_t   GetFirstEvent()      const {return fFirstEvent;     }
-  Int_t   GetLastEvent()       const {return fLastEvent;      }
+  virtual void Print(const Option_t * = "") const = 0;
 
   void SetESD(AliESDEvent *esd) { fESD = esd; }
 
-  virtual const char * Version() const { Warning("Version", "not defined" ) ; return 0 ; }  
-  virtual void WriteRecParticles() = 0;
-  AliPHOSQualAssDataMaker * GetQualAssDataMaker() const { return fQADM ; } 
+  virtual const char * Version() const = 0;
 
 protected:
 
-  TString fEventFolderName ;  // event folder name
-  Int_t   fFirstEvent;        // first event to process
-  Int_t   fLastEvent;         // last  event to process
+  AliPHOSGeometry * fGeom;    //! Pointer to PHOS Geometry
   AliESDEvent * fESD;         //! ESD object
 
+  TObjArray *fEMCRecPoints;      //!Array with EMC clusters
+  TObjArray *fCPVRecPoints;      //!Array with CPV clusters
+
+  TClonesArray *fTrackSegments;     //!Array with found track segments
+  TClonesArray *fRecParticles;      //!Array with reconstructed particles (PID)
+  
 private: 
-  virtual void Init() { Warning("Init", "not defined" ) ; } 
-  AliPHOSQualAssDataMaker * fQADM ; //!Quality Assurance Data Maker
 
-  ClassDef(AliPHOSPID,5)  // Particle Identifier algorithm (base class)
+  ClassDef(AliPHOSPID,8)  // Particle Identifier algorithm (base class)
 
 } ;