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