1 #ifndef ALIEMCALRECPOINT_H
2 #define ALIEMCALRECPOINT_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 EMCAL Reconstructed Points
7 // A recpoint being equivalent to a cluster in encal terminology
8 //*-- Author: Gines Martinez (SUBATECH)
12 // --- ROOT system ---
16 #include "TPaveText.h"
18 // --- Standard library ---
20 // --- AliRoot header files ---
22 #include "AliRecPoint.h"
23 #include "AliEMCALDigit.h"
25 class AliEMCALRecPoint : public AliRecPoint {
29 typedef TObjArray RecPointsList ;
31 AliEMCALRecPoint() ; // ctor
32 AliEMCALRecPoint(const char * opt) ; // ctor
33 AliEMCALRecPoint(const AliEMCALRecPoint & rp) {
34 // cpy ctor requested by Coding Convention
39 virtual ~AliEMCALRecPoint(){
42 virtual void AddDigit(AliDigitNew &){
43 // do not use this definition but the one below
46 virtual void AddDigit(AliEMCALDigit & digit, Float_t Energy) = 0 ;
47 virtual Int_t Compare(const TObject * obj) const = 0 ;
48 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
49 virtual void Draw(Option_t * option="") ;
50 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ;
51 virtual void EvalAll(Float_t logWeight,TClonesArray * digits) ;
52 virtual void EvalEMCALArm(AliEMCALDigit * digit) ;
53 virtual void EvalPrimaries(TClonesArray * digits) ;
54 virtual Int_t GetEMCALArm(void) const {return fEMCALArm ; }
55 virtual void GetGlobalPosition(TVector3 & gpos, TMatrix & gmat) const {;} // return global position in ALICE
56 virtual void GetGlobalPosition(TVector3 & gpos) const ; // return global position (r, theta, phi) in ALICE
57 // virtual Int_t GetEMCALMod(void) const {return fEMCALMod ; }
58 virtual Int_t * GetPrimaries(Int_t & number) const {number = fMulTrack ;
59 return fTracksList ; }
60 virtual Bool_t IsEmc(void)const { return kTRUE ; }
61 virtual Bool_t IsSortable() const {
62 // tells that this is a sortable object
65 virtual void Paint(Option_t * option="");
66 virtual void Print(Option_t * opt = "void") const {
70 AliEMCALRecPoint & operator = (const AliEMCALRecPoint & ) {
71 // assignement operator requested by coding convention but not needed
78 Int_t fEMCALArm ; // EMCAM Arm number
79 Float_t fTheta ; // theta angle in Alice
80 Float_t fPhi ; // phi angle in Alice
83 ClassDef(AliEMCALRecPoint,1) // RecPoint for EMCAL (Base Class)
87 #endif // AliEMCALRECPOINT_H