]>
Commit | Line | Data |
---|---|---|
d15a28e7 | 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 */ | |
b2a60966 | 5 | //_________________________________________________________________________ |
6 | // Base Class for PHOS Reconstructed Points | |
2f04ed65 | 7 | // A recpoint being equivalent to a cluster in encal terminology |
b2a60966 | 8 | //*-- Author: Gines Martinez (SUBATECH) |
d15a28e7 | 9 | |
ed4205d8 | 10 | |
d15a28e7 | 11 | // --- ROOT system --- |
12 | ||
55fe9d13 | 13 | //#include "TMarker.h" |
14 | //#include "TGraph.h" | |
15 | //#include "TPaveText.h" | |
9f616d61 | 16 | |
d15a28e7 | 17 | // --- Standard library --- |
18 | ||
d15a28e7 | 19 | // --- AliRoot header files --- |
20 | ||
21 | #include "AliRecPoint.h" | |
55fe9d13 | 22 | class AliPHOSDigit ; |
83974468 | 23 | |
d15a28e7 | 24 | class AliPHOSRecPoint : public AliRecPoint { |
25 | ||
88714635 | 26 | public: |
7609878c | 27 | |
28 | typedef TObjArray RecPointsList ; | |
d15a28e7 | 29 | |
30 | AliPHOSRecPoint() ; // ctor | |
73a68ccb | 31 | AliPHOSRecPoint(const char * opt) ; // ctor |
55fe9d13 | 32 | AliPHOSRecPoint(const AliPHOSRecPoint & rp) ; //cpy ctor |
6c370def | 33 | |
88714635 | 34 | virtual ~AliPHOSRecPoint(){ |
35 | // dtor | |
36 | } | |
0a6d52e3 | 37 | virtual void AddDigit(AliDigitNew &){ |
38 | // do not use this definition but the one below | |
55fe9d13 | 39 | Fatal("AddDigit", "use AddDigit(AliPHOSDigit & digit, Float_t Energy)") ; |
0a6d52e3 | 40 | } |
83974468 | 41 | virtual void AddDigit(AliPHOSDigit & digit, Float_t Energy) = 0 ; |
2731cd1e | 42 | virtual Int_t Compare(const TObject * obj) const = 0 ; |
cf239357 | 43 | virtual Int_t DistancetoPrimitive(Int_t px, Int_t py); |
44 | virtual void Draw(Option_t * option="") ; | |
cde7e5dc | 45 | virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)const ; |
2731cd1e | 46 | virtual void EvalAll(Float_t logWeight,TClonesArray * digits) ; |
47 | virtual void EvalPHOSMod(AliPHOSDigit * digit) ; | |
48 | virtual void EvalPrimaries(TClonesArray * digits) ; | |
4b45b217 | 49 | virtual void GetGlobalPosition(TVector3 & gpos, TMatrix & gmat) const ; // return global position in ALICE |
ad8cfaf4 | 50 | virtual Int_t GetPHOSMod(void) const {return fPHOSMod ; } |
2731cd1e | 51 | virtual Int_t * GetPrimaries(Int_t & number) const {number = fMulTrack ; |
52 | return fTracksList ; } | |
ad8cfaf4 | 53 | virtual Bool_t IsEmc(void)const { return kTRUE ; } |
88714635 | 54 | virtual Bool_t IsSortable() const { |
55 | // tells that this is a sortable object | |
56 | return kTRUE ; | |
57 | } | |
15605d3c | 58 | virtual void Paint(Option_t * option=""); |
baef0810 | 59 | virtual void Print(Option_t * opt = "void") const { |
88714635 | 60 | // Print prototype |
61 | } | |
d15a28e7 | 62 | |
55fe9d13 | 63 | AliPHOSRecPoint & operator = (const AliPHOSRecPoint & ) { return *this ; } |
6c370def | 64 | |
ed4205d8 | 65 | protected: |
9f616d61 | 66 | |
83974468 | 67 | Int_t fPHOSMod ; // PHOS Module number in which the RecPoint is found |
ed4205d8 | 68 | |
b2a60966 | 69 | ClassDef(AliPHOSRecPoint,1) // RecPoint for PHOS (Base Class) |
d15a28e7 | 70 | |
71 | }; | |
72 | ||
73 | #endif // AliPHOSRECPOINT_H |