]>
Commit | Line | Data |
---|---|---|
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 | ||
32 | virtual ~AliPHOSRecPoint(){ | |
33 | // dtor | |
34 | } | |
35 | virtual void AddDigit(AliDigitNew &){ | |
36 | Fatal("AddDigit", "use AddDigit(AliPHOSDigit & digit, Float_t Energy)") ; | |
37 | } | |
38 | virtual void AddDigit(AliPHOSDigit & digit, Float_t Energy) = 0 ; | |
39 | virtual Int_t Compare(const TObject * obj) const = 0 ; | |
40 | virtual Int_t DistancetoPrimitive(Int_t px, Int_t py); | |
41 | virtual void Draw(Option_t * option="") ; | |
42 | virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ; | |
43 | void EvalAll(TClonesArray * digits) ; | |
44 | virtual void EvalPHOSMod(AliPHOSDigit * digit) ; | |
45 | virtual void EvalPrimaries(TClonesArray * digits) ; | |
46 | virtual void GetGlobalPosition(TVector3 & gpos, TMatrixF & gmat) const ; // return global position in ALICE | |
47 | virtual Int_t GetPHOSMod(void) const {return fPHOSMod ; } | |
48 | virtual Int_t * GetPrimaries(Int_t & number) const {number = fMulTrack ; | |
49 | return fTracksList ; } | |
50 | virtual Bool_t IsEmc(void)const { return kTRUE ; } | |
51 | virtual Bool_t IsSortable() const { | |
52 | // tells that this is a sortable object | |
53 | return kTRUE ; | |
54 | } | |
55 | virtual void Paint(Option_t * option=""); | |
56 | virtual void Print(Option_t *) const { | |
57 | // Print prototype | |
58 | } | |
59 | ||
60 | protected: | |
61 | ||
62 | Int_t fPHOSMod ; // PHOS Module number in which the RecPoint is found | |
63 | ||
64 | ClassDef(AliPHOSRecPoint,1) // RecPoint for PHOS (Base Class) | |
65 | ||
66 | }; | |
67 | ||
68 | #endif // AliPHOSRECPOINT_H |