]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSRecPoint.h
coding conventions corrections
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecPoint.h
1 #ifndef ALIPHOSRECPOINT_H
2 #define ALIPHOSRECPOINT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5 //_________________________________________________________________________
6 //  Base Class for PHOS Reconstructed Points  
7 //  A recpoint being equivalent to a cluster in encal terminology                 
8 //*-- Author: Gines Martinez (SUBATECH)
9
10
11 // --- ROOT system ---
12
13 //#include "TMarker.h"
14 //#include "TGraph.h"
15 //#include "TPaveText.h"
16
17 // --- Standard library ---
18
19 // --- AliRoot header files ---
20
21 #include "AliRecPoint.h"
22   class AliPHOSDigit ;
23
24 class AliPHOSRecPoint : public AliRecPoint {
25
26  public:
27   
28   typedef TObjArray RecPointsList ; 
29
30   AliPHOSRecPoint() ;                   // ctor         
31   AliPHOSRecPoint(const char * opt) ;   // ctor 
32   AliPHOSRecPoint(const AliPHOSRecPoint & rp) ; //cpy ctor
33   
34   virtual ~AliPHOSRecPoint(){
35     // dtor
36   }
37   virtual  void   AddDigit(AliDigitNew &){
38     // do not use this definition but the one below
39     Fatal("AddDigit", "use  AddDigit(AliPHOSDigit & digit, Float_t Energy)") ; 
40   }
41   virtual  void   AddDigit(AliPHOSDigit & digit, Float_t Energy) = 0 ; 
42   virtual Int_t   Compare(const TObject * obj) const = 0 ;   
43   virtual Int_t   DistancetoPrimitive(Int_t px, Int_t py);
44   virtual void    Draw(Option_t * option="") ;
45   virtual void    ExecuteEvent(Int_t event, Int_t px, Int_t py)const ;
46   virtual void    EvalAll(Float_t logWeight,TClonesArray * digits) ;  
47   virtual void    EvalPHOSMod(AliPHOSDigit * digit) ;  
48   virtual void    EvalPrimaries(TClonesArray * digits) ;  
49   virtual void    GetGlobalPosition(TVector3 & gpos, TMatrix & gmat) const ; // return global position in ALICE
50   virtual Int_t   GetPHOSMod(void) const {return fPHOSMod ; }
51   virtual Int_t * GetPrimaries(Int_t & number) const {number = fMulTrack ; 
52                                                       return fTracksList ; }
53   virtual Bool_t  IsEmc(void)const { return kTRUE ;  } 
54   virtual Bool_t  IsSortable() const { 
55     // tells that this is a sortable object
56     return kTRUE ; 
57   }  
58   virtual void    Paint(Option_t * option="");
59   virtual void    Print(Option_t * opt = "void") const {
60     // Print prototype
61   } 
62
63   AliPHOSRecPoint & operator = (const AliPHOSRecPoint & )  { return *this ; }
64
65 protected:
66   
67   Int_t fPHOSMod ;      // PHOS Module number in which the RecPoint is found
68   
69   ClassDef(AliPHOSRecPoint,1) // RecPoint for PHOS (Base Class)
70  
71 };
72
73 #endif // AliPHOSRECPOINT_H