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