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