1 #ifndef ALIMUONDISPLAY_H
2 #define ALIMUONDISPLAY_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
9 //////////////////////////////////////////////////////////////////////////
13 // Utility class to display ALice outline, tracks, hits,.. //
15 //////////////////////////////////////////////////////////////////////////
17 //#ifndef ROOT_TObject
20 #include "AliDisplay.h"
30 class AliMUONDisplay : /*splaypublic TObject,*/ public AliDisplay {
33 AliMUONDisplay(Int_t size, AliLoader * loader=0x0);
34 AliMUONDisplay(const AliMUONDisplay& display);
36 virtual ~AliMUONDisplay();
37 virtual void Clear(Option_t *option="");
38 virtual void DisplayButtons();
39 virtual void CreateColors();
40 virtual void DisplayColorScale();
41 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
42 virtual void Draw(Option_t *option="");
43 virtual void DrawClusters();
44 virtual void DrawHits();
45 virtual void DrawCoG();
46 virtual void DrawSegmentation();
47 virtual void DrawTitle(Option_t *option="");
48 virtual void DrawView(Float_t theta, Float_t phi, Float_t psi=0);
49 virtual void DrawP(Float_t,Float_t,Float_t,Float_t,Float_t,Int_t){}
50 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
51 Int_t GetZoomMode() {return fZoomMode;}
52 Int_t GetChamber() {return fChamber;}
53 Int_t GetCathode() {return fCathode;}
54 AliLoader* GetLoader() {return fLoader;}
55 virtual void LoadDigits(Int_t chamber, Int_t cathode);
56 virtual void LoadHits(Int_t chamber);
57 virtual void LoadCoG(Int_t chamber, Int_t cathode);
58 TPad *Pad() {return fPad;}
59 TObjArray *Points() {return fPoints;}
60 TObjArray *Phits() {return fPhits;}
61 TObjArray *Rpoints() {return fRpoints;}
62 virtual void Paint(Option_t *option="");
63 virtual void SetDrawClusters(Bool_t draw=kTRUE) {fDrawClusters=draw;} // *MENU*
64 virtual void SetChamberAndCathode(Int_t chamber=1, Int_t cathode=1); // *MENU*
65 virtual void SetDrawCoG(Bool_t draw=kTRUE) {fDrawCoG=draw;} // *MENU*
66 virtual void SetRange(Float_t rrange=250., Float_t zrange=1050.); // *MENU*
67 virtual void SetEvent(Int_t newevent=0); // *MENU*
68 virtual void SetView(Float_t theta=0, Float_t phi=-90, Float_t psi=0);
69 virtual void SetPickMode();
70 virtual void SetZoomMode();
71 virtual void ShowNextEvent(Int_t delta=1);
72 virtual void UnZoom(); // *MENU*
73 virtual void ResetPoints();
74 virtual void ResetPhits();
75 virtual void ResetRpoints();
76 virtual void NextChamber(Int_t delta=1);
77 virtual void NextCathode();
79 AliMUONDisplay& operator = (const AliMUONDisplay& rhs);
83 Int_t fEvent; // Current event
84 Int_t fChamber; // Current Chamber
85 Int_t fCathode; // Current cathode plane
86 Bool_t fDrawClusters; //Flag True if Clusters to be drawn
87 Bool_t fDrawCoG; //Flag True if CoG to be drawn
89 Int_t fClustersCuts; //Number of clusters surviving cuts
90 TPad *fColPad; //Pointer to the colors pad
91 TObjArray *fPoints; //Array of points for each cathode
92 TObjArray *fPhits; //Array of hit points for each chamber
93 TObjArray *fRpoints; //Array of cog points for each cathode
94 Int_t fNextCathode; //Flagging next cathode
95 AliLoader* fLoader; //! MUON loader to get data
98 ClassDef(AliMUONDisplay, 0) //Utility class to display MUON events