]>
Commit | Line | Data |
---|---|---|
a9e2aefa | 1 | #ifndef ALIMUONDISPLAY_H |
2 | #define ALIMUONDISPLAY_H | |
3 | ||
3da30618 | 4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /* $Id$ */ | |
30178c30 | 8 | // Revision of includes 07/05/2004 |
fe4da5cc | 9 | |
10 | ////////////////////////////////////////////////////////////////////////// | |
11 | // // | |
12 | // AliDisplay // | |
13 | // // | |
14 | // Utility class to display ALice outline, tracks, hits,.. // | |
15 | // // | |
16 | ////////////////////////////////////////////////////////////////////////// | |
17 | ||
fe4da5cc | 18 | #include "AliDisplay.h" |
19 | ||
307d9d04 | 20 | class AliLoader; |
d226f81b | 21 | class AliMUONData; |
572d5bb2 | 22 | class AliMUONTrack; |
fe4da5cc | 23 | class TCanvas; |
24 | class TPad; | |
25 | class TList; | |
26 | class TSlider; | |
27 | class TButton; | |
28 | class TArc; | |
29 | ||
30178c30 | 30 | class AliMUONDisplay : public AliDisplay |
31 | { | |
fe4da5cc | 32 | public: |
a9e2aefa | 33 | AliMUONDisplay(); |
307d9d04 | 34 | AliMUONDisplay(Int_t size, AliLoader * loader=0x0); |
a9e2aefa | 35 | |
36 | virtual ~AliMUONDisplay(); | |
fe4da5cc | 37 | virtual void Clear(Option_t *option=""); |
38 | virtual void DisplayButtons(); | |
30178c30 | 39 | virtual void CreateColors() const; |
fe4da5cc | 40 | virtual void DisplayColorScale(); |
41 | virtual Int_t DistancetoPrimitive(Int_t px, Int_t py); | |
572d5bb2 | 42 | virtual void DrawReco(Option_t *option=""); |
43 | virtual void PrintTrack(Int_t iRecTracks, AliMUONTrack *recTrack); | |
44 | virtual void PrintKinematics(); | |
fe4da5cc | 45 | virtual void Draw(Option_t *option=""); |
572d5bb2 | 46 | virtual void DrawChamber(); |
fe4da5cc | 47 | virtual void DrawClusters(); |
48 | virtual void DrawHits(); | |
a897a37a | 49 | virtual void DrawCoG(); |
572d5bb2 | 50 | virtual void DrawTracks(); |
a9e2aefa | 51 | virtual void DrawSegmentation(); |
fe4da5cc | 52 | virtual void DrawTitle(Option_t *option=""); |
53 | virtual void DrawView(Float_t theta, Float_t phi, Float_t psi=0); | |
572d5bb2 | 54 | virtual void DrawGlobalView(Float_t theta, Float_t phi, Float_t psi=0); |
a9e2aefa | 55 | virtual void DrawP(Float_t,Float_t,Float_t,Float_t,Float_t,Int_t){} |
fe4da5cc | 56 | virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py); |
30178c30 | 57 | Int_t GetZoomMode() const {return fZoomMode;} |
58 | Int_t GetChamber() const {return fChamber;} | |
59 | Int_t GetCathode() const {return fCathode;} | |
d226f81b | 60 | |
61 | AliMUONData* GetMUONData() {return fMUONData;} | |
307d9d04 | 62 | AliLoader* GetLoader() {return fLoader;} |
d226f81b | 63 | |
fe4da5cc | 64 | virtual void LoadDigits(Int_t chamber, Int_t cathode); |
65 | virtual void LoadHits(Int_t chamber); | |
a897a37a | 66 | virtual void LoadCoG(Int_t chamber, Int_t cathode); |
572d5bb2 | 67 | virtual void LoadTracks(); |
fe4da5cc | 68 | TPad *Pad() {return fPad;} |
69 | TObjArray *Points() {return fPoints;} | |
70 | TObjArray *Phits() {return fPhits;} | |
a897a37a | 71 | TObjArray *Rpoints() {return fRpoints;} |
fe4da5cc | 72 | virtual void Paint(Option_t *option=""); |
73 | virtual void SetDrawClusters(Bool_t draw=kTRUE) {fDrawClusters=draw;} // *MENU* | |
a9e2aefa | 74 | virtual void SetChamberAndCathode(Int_t chamber=1, Int_t cathode=1); // *MENU* |
75 | virtual void SetDrawCoG(Bool_t draw=kTRUE) {fDrawCoG=draw;} // *MENU* | |
572d5bb2 | 76 | virtual void SetDrawTracks(Bool_t draw=kTRUE) {fDrawTracks=draw;} // *MENU* |
a9e2aefa | 77 | virtual void SetRange(Float_t rrange=250., Float_t zrange=1050.); // *MENU* |
78 | virtual void SetEvent(Int_t newevent=0); // *MENU* | |
a897a37a | 79 | virtual void SetView(Float_t theta=0, Float_t phi=-90, Float_t psi=0); |
fe4da5cc | 80 | virtual void SetPickMode(); |
81 | virtual void SetZoomMode(); | |
82 | virtual void ShowNextEvent(Int_t delta=1); | |
a9e2aefa | 83 | virtual void UnZoom(); // *MENU* |
fe4da5cc | 84 | virtual void ResetPoints(); |
85 | virtual void ResetPhits(); | |
a897a37a | 86 | virtual void ResetRpoints(); |
a9e2aefa | 87 | virtual void NextChamber(Int_t delta=1); |
88 | virtual void NextCathode(); | |
89 | void Trigger(); | |
30178c30 | 90 | |
91 | protected: | |
92 | AliMUONDisplay(const AliMUONDisplay& display); | |
93 | AliMUONDisplay& operator = (const AliMUONDisplay& rhs); | |
a9e2aefa | 94 | |
95 | ||
96 | private: | |
97 | Int_t fEvent; // Current event | |
98 | Int_t fChamber; // Current Chamber | |
99 | Int_t fCathode; // Current cathode plane | |
a9e2aefa | 100 | Bool_t fDrawClusters; //Flag True if Clusters to be drawn |
101 | Bool_t fDrawCoG; //Flag True if CoG to be drawn | |
572d5bb2 | 102 | Bool_t fDrawTracks; //Flag True if tracks to be drawn |
103 | ||
a9e2aefa | 104 | Int_t fClustersCuts; //Number of clusters surviving cuts |
a9e2aefa | 105 | TPad *fColPad; //Pointer to the colors pad |
a9e2aefa | 106 | TObjArray *fPoints; //Array of points for each cathode |
107 | TObjArray *fPhits; //Array of hit points for each chamber | |
108 | TObjArray *fRpoints; //Array of cog points for each cathode | |
a9e2aefa | 109 | Int_t fNextCathode; //Flagging next cathode |
307d9d04 | 110 | |
d226f81b | 111 | AliLoader* fLoader; //! MUON loader to get data |
112 | AliMUONData* fMUONData; //! Data container for MUON subsystem | |
307d9d04 | 113 | |
a1001283 | 114 | ClassDef(AliMUONDisplay, 0) //Utility class to display MUON events |
fe4da5cc | 115 | }; |
116 | ||
117 | #endif | |
a9e2aefa | 118 | |
119 | ||
120 | ||
121 | ||
122 | ||
123 | ||
124 | ||
125 |