]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSPID.h
New class AliESDEvent, backward compatibility with the old AliESD (Christian)
[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.38  2007/04/01 15:40:15  kharlov
12  * Correction for actual vertex position implemented
13  *
14  * Revision 1.37  2006/08/29 11:41:19  kharlov
15  * Missing implementation of ctors and = operator are added
16  *
17  * Revision 1.36  2006/08/25 16:00:53  kharlov
18  * Compliance with Effective C++AliPHOSHit.cxx
19  *
20  * Revision 1.35  2005/05/28 14:19:04  schutz
21  * Compilation warnings fixed by T.P.
22  *
23  */
24
25 //_________________________________________________________________________
26 //  Algorithm class for the identification of particles detected in PHOS        
27 //  base  class                             
28 //  of identified particles                
29 //*-- Author: Yves Schutz (SUBATECH)
30
31 // --- ROOT system ---
32
33 #include "TTask.h"
34 #include "AliConfig.h"
35
36 class TFormula ;
37 class TClonesArray ;
38
39 // --- Standard library ---
40
41 // --- AliRoot header files ---
42 class AliESDEvent ;
43 class AliPHOSGeometry ;
44 class AliPHOSClusterizer ;
45 class AliPHOSTrackSegmentMaker ;
46
47 class AliPHOSPID : public TTask {
48
49  public:
50
51   AliPHOSPID() ;          // ctor            
52   AliPHOSPID (const TString alirunFileName, const TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ;
53   AliPHOSPID(const AliPHOSPID & pid) ;
54   virtual ~AliPHOSPID() ; // dtor
55   AliPHOSPID & operator = (const AliPHOSPID & /*rvalue*/)  {
56     Fatal("operator =", "not implemented") ; return *this ; }
57
58   virtual Int_t GetRecParticlesInRun()  const { Warning("GetRecParticlesInRun", "not defined" ) ; return 0 ;} 
59   virtual void Print(const Option_t * = "") const { Warning("Print", "not defined" ) ;}
60
61   void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
62   void SetEventFolderName(TString name) { fEventFolderName = name ; }
63
64   TString GetEventFolderName() const {return fEventFolderName;}
65   Int_t   GetFirstEvent()      const {return fFirstEvent;     }
66   Int_t   GetLastEvent()       const {return fLastEvent;      }
67
68   void SetESD(AliESDEvent *esd) { fESD = esd; }
69
70   virtual const char * Version() const { Warning("Version", "not defined" ) ; return 0 ; }  
71   virtual void WriteRecParticles() = 0;
72
73 protected:
74   TString fEventFolderName ;  // event folder name
75   Int_t   fFirstEvent;        // first event to process
76   Int_t   fLastEvent;         // last  event to process
77   AliESDEvent * fESD;              //! ESD object
78
79 private: 
80   virtual void Init() { Warning("Init", "not defined" ) ; } 
81
82   ClassDef(AliPHOSPID,5)  // Particle Identifier algorithm (base class)
83
84 } ;
85
86 #endif // ALIPHOSPID_H