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)
12 // --- ROOT system ---
16 #include "TPaveText.h"
18 // --- Standard library ---
20 // --- AliRoot header files ---
22 #include "AliRecPoint.h"
23 #include "AliPHOSDigit.h"
25 class AliPHOSRecPoint : public AliRecPoint {
29 typedef TObjArray RecPointsList ;
31 AliPHOSRecPoint() ; // ctor
32 AliPHOSRecPoint(const AliPHOSRecPoint & rp) {
33 // cpy ctor requested by Coding Convention
38 virtual ~AliPHOSRecPoint(){
41 virtual void AddDigit(AliDigitNew &){
42 // do not use this definition but the one below
45 virtual void AddDigit(AliPHOSDigit & digit, Float_t Energy) = 0 ;
46 virtual Int_t Compare(const TObject * obj) const = 0 ;
47 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
48 virtual void Draw(Option_t * option="") ;
49 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ;
50 virtual void EvalAll(Float_t logWeight,TClonesArray * digits) ;
51 virtual void EvalPHOSMod(AliPHOSDigit * digit) ;
52 virtual void EvalPrimaries(TClonesArray * digits) ;
53 virtual void GetGlobalPosition(TVector3 & gpos, TMatrix & gmat) const ; // return global position in ALICE
54 virtual Int_t GetPHOSMod(void) const {return fPHOSMod ; }
55 virtual Int_t * GetPrimaries(Int_t & number) const {number = fMulTrack ;
56 return fTracksList ; }
57 virtual Bool_t IsEmc(void)const { return kTRUE ; }
58 virtual Bool_t IsSortable() const {
59 // tells that this is a sortable object
62 virtual void Paint(Option_t * option="");
63 virtual void Print(Option_t * opt = "void") const {
67 AliPHOSRecPoint & operator = (const AliPHOSRecPoint & ) {
68 // assignement operator requested by coding convention but not needed
75 Int_t fPHOSMod ; // PHOS Module number in which the RecPoint is found
77 ClassDef(AliPHOSRecPoint,1) // RecPoint for PHOS (Base Class)
81 #endif // AliPHOSRECPOINT_H