]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSPID.h
D.P.: Produce EMCTrackSegments using TPC/ITS tracks (no CPV)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSPID.h
1 #ifndef ALIPHOSPID_H
2 #define ALIPHOSPID_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5                             
6 /* $Id$ */
7
8 /* History of cvs commits:
9  *
10  * $Log$
11  * Revision 1.37  2006/08/29 11:41:19  kharlov
12  * Missing implementation of ctors and = operator are added
13  *
14  * Revision 1.36  2006/08/25 16:00:53  kharlov
15  * Compliance with Effective C++AliPHOSHit.cxx
16  *
17  * Revision 1.35  2005/05/28 14:19:04  schutz
18  * Compilation warnings fixed by T.P.
19  *
20  */
21
22 //_________________________________________________________________________
23 //  Algorithm class for the identification of particles detected in PHOS        
24 //  base  class                             
25 //  of identified particles                
26 //*-- Author: Yves Schutz (SUBATECH)
27
28 // --- ROOT system ---
29
30 #include "TTask.h"
31 #include "AliConfig.h"
32
33 class TFormula ;
34 class TClonesArray ;
35
36 // --- Standard library ---
37
38 // --- AliRoot header files ---
39 class AliESD ;
40 class AliPHOSGeometry ;
41 class AliPHOSClusterizer ;
42 class AliPHOSTrackSegmentMaker ;
43
44 class AliPHOSPID : public TTask {
45
46  public:
47
48   AliPHOSPID() ;          // ctor            
49   AliPHOSPID (const TString alirunFileName, const TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ;
50   AliPHOSPID(const AliPHOSPID & pid) ;
51   virtual ~AliPHOSPID() ; // dtor
52   AliPHOSPID & operator = (const AliPHOSPID & /*rvalue*/)  {
53     Fatal("operator =", "not implemented") ; return *this ; }
54
55   virtual Int_t GetRecParticlesInRun()  const { Warning("GetRecParticlesInRun", "not defined" ) ; return 0 ;} 
56   virtual void Print(const Option_t * = "") const { Warning("Print", "not defined" ) ;}
57
58   void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
59   void SetEventFolderName(TString name) { fEventFolderName = name ; }
60
61   TString GetEventFolderName() const {return fEventFolderName;}
62   Int_t   GetFirstEvent()      const {return fFirstEvent;     }
63   Int_t   GetLastEvent()       const {return fLastEvent;      }
64
65   void SetESD(AliESD *esd) { fESD = esd; }
66
67   virtual const char * Version() const { Warning("Version", "not defined" ) ; return 0 ; }  
68   virtual void WriteRecParticles() = 0;
69
70 protected:
71   TString fEventFolderName ;  // event folder name
72   Int_t   fFirstEvent;        // first event to process
73   Int_t   fLastEvent;         // last  event to process
74   AliESD * fESD;              //! ESD object
75
76 private: 
77   virtual void Init() { Warning("Init", "not defined" ) ; } 
78
79   ClassDef(AliPHOSPID,4)  // Particle Identifier algorithm (base class)
80
81 } ;
82
83 #endif // ALIPHOSPID_H