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