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)
10 // --- ROOT system ---
12 //#include "TMarker.h"
14 //#include "TPaveText.h"
16 // --- Standard library ---
18 // --- AliRoot header files ---
20 #include "AliRecPoint.h"
23 class AliPHOSRecPoint : public AliRecPoint {
27 typedef TObjArray RecPointsList ;
29 AliPHOSRecPoint() ; // ctor
30 AliPHOSRecPoint(const char * opt) ; // ctor
31 AliPHOSRecPoint(const AliPHOSRecPoint & rp) : AliRecPoint(rp) {
32 Fatal("Cpy ctor", "not implemented") ; }
34 virtual ~AliPHOSRecPoint(){
37 virtual void AddDigit(AliDigitNew &){
38 Fatal("AddDigit", "use AddDigit(AliPHOSDigit & digit, Float_t Energy)") ;
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, TMatrix & 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
57 virtual void Paint(Option_t * option="");
58 virtual void Print(Option_t *) const {
62 AliPHOSRecPoint & operator = (const AliPHOSRecPoint & ) {
63 Fatal("operator = ", "not implemented") ; return *this ;
67 Int_t fPHOSMod ; // PHOS Module number in which the RecPoint is found
69 ClassDef(AliPHOSRecPoint,1) // RecPoint for PHOS (Base Class)
73 #endif // AliPHOSRECPOINT_H