]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSRecPoint.h
Set of modifications:
[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 // --- ROOT system ---
11
12 //#include "TMarker.h"
13 //#include "TGraph.h"
14 //#include "TPaveText.h"
15   class TClonesArray ;
16 // --- Standard library ---
17
18 // --- AliRoot header files ---
19
20 #include "AliRecPoint.h"
21 class AliPHOSDigit ; 
22
23 class AliPHOSRecPoint : public AliRecPoint {
24
25  public:
26   
27   typedef TObjArray RecPointsList ; 
28
29   AliPHOSRecPoint() ;                   // ctor         
30   AliPHOSRecPoint(const char * opt) ;   // ctor 
31   AliPHOSRecPoint(const AliPHOSRecPoint & rp) : AliRecPoint(rp) {
32     Fatal("Cpy ctor", "not implemented") ; } 
33   
34   virtual ~AliPHOSRecPoint(){
35     // dtor
36   }
37   virtual  void   AddDigit(AliDigitNew &){
38    Fatal("AddDigit", "use AddDigit(AliPHOSDigit & digit, Float_t Energy)") ; 
39   }
40   virtual  void   AddDigit(AliPHOSDigit & digit, Float_t Energy) = 0 ; 
41   virtual Int_t   Compare(const TObject * obj) const = 0 ;   
42   virtual Int_t   DistancetoPrimitive(Int_t px, Int_t py);
43   virtual void    Draw(Option_t * option="") ;
44   virtual void    ExecuteEvent(Int_t event, Int_t px, Int_t py) ;
45   void    EvalAll(TClonesArray * digits) ;  
46   virtual void    EvalPHOSMod(AliPHOSDigit * digit) ;  
47   virtual void    EvalPrimaries(TClonesArray * digits) ;  
48   virtual void    GetGlobalPosition(TVector3 & gpos, TMatrixF & gmat) const ; // return global position in ALICE
49   virtual Int_t   GetPHOSMod(void) const {return fPHOSMod ; }
50   virtual Int_t * GetPrimaries(Int_t & number) const {number = fMulTrack ; 
51                                                       return fTracksList ; }
52   virtual Bool_t  IsEmc(void)const { return kTRUE ;  } 
53   virtual Bool_t  IsSortable() const { 
54     // tells that this is a sortable object
55     return kTRUE ; 
56   }  
57   virtual void    Paint(Option_t * option="");
58   virtual void    Print(Option_t *) const {
59     // Print prototype
60   } 
61
62   AliPHOSRecPoint & operator = (const AliPHOSRecPoint & )  {
63     Fatal("operator = ", "not implemented") ;  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