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