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 */
8 // Revision of includes 07/05/2004
11 /// \class AliMUONDisplay
12 /// \brief Utility class to display MUON events
14 #include "AliDisplay.h"
26 class AliMUONDisplay : public AliDisplay
30 AliMUONDisplay(Int_t size, AliLoader * loader=0x0);
32 virtual ~AliMUONDisplay();
33 virtual void Clear(Option_t *option="");
34 virtual void DisplayButtons();
35 virtual void CreateColors() const;
36 virtual void DisplayColorScale();
37 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
38 virtual void DrawReco(Option_t *option="");
39 virtual void PrintTrack(Int_t iRecTracks, AliMUONTrack *recTrack);
40 virtual void PrintKinematics();
41 virtual void Draw(Option_t *option="");
42 virtual void DrawChamber();
43 virtual void DrawClusters();
44 virtual void DrawHits();
45 virtual void DrawCoG();
46 virtual void DrawTracks();
47 virtual void DrawSegmentation();
48 virtual void DrawTitle(Option_t *option="");
49 virtual void DrawView(Float_t theta, Float_t phi, Float_t psi=0);
50 virtual void DrawGlobalView(Float_t theta, Float_t phi, Float_t psi=0);
51 /// Not implemented function
52 virtual void DrawP(Float_t,Float_t,Float_t,Float_t,Float_t,Int_t){}
53 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
54 Int_t GetZoomMode() const {return fZoomMode;} ///< Return zoom mode
55 Int_t GetChamber() const {return fChamber;} ///< Return current chamber
56 Int_t GetCathode() const {return fCathode;} ///< Return current cathode
58 AliMUONData* GetMUONData() {return fMUONData;} ///< Return MUON data
59 AliLoader* GetLoader() {return fLoader;} ///< Return loader
61 virtual void LoadDigits(Int_t chamber, Int_t cathode);
62 virtual void LoadHits(Int_t chamber);
63 virtual void LoadCoG(Int_t chamber, Int_t cathode);
64 virtual void LoadTracks();
65 TPad *Pad() {return fPad;} ///< Return pad
66 TObjArray *Points() {return fPoints;} ///< Return points for each cathode
67 TObjArray *Phits() {return fPhits;} ///< Return hit points for each chamber
68 TObjArray *Rpoints() {return fRpoints;} ///< Return cog points for each cathode
69 virtual void Paint(Option_t *option="");
70 virtual void SetDrawClusters(Bool_t draw=kTRUE) {fDrawClusters=draw;} // *MENU*
71 virtual void SetChamberAndCathode(Int_t chamber=1, Int_t cathode=1); // *MENU*
72 virtual void SetDrawCoG(Bool_t draw=kTRUE) {fDrawCoG=draw;} // *MENU*
73 virtual void SetDrawTracks(Bool_t draw=kTRUE) {fDrawTracks=draw;} // *MENU*
74 virtual void SetRange(Float_t rrange=250., Float_t zrange=1050.); // *MENU*
75 virtual void SetEvent(Int_t newevent=0); // *MENU*
76 virtual void SetView(Float_t theta=0, Float_t phi=-90, Float_t psi=0);
77 virtual void SetPickMode();
78 virtual void SetZoomMode();
79 virtual void ShowNextEvent(Int_t delta=1);
80 virtual void UnZoom(); // *MENU*
81 virtual void ResetPoints();
82 virtual void ResetPhits();
83 virtual void ResetRpoints();
84 virtual void NextChamber(Int_t delta=1);
85 virtual void NextCathode();
89 AliMUONDisplay(const AliMUONDisplay& display);
90 AliMUONDisplay& operator = (const AliMUONDisplay& rhs);
94 Int_t fEvent; ///< Current event
95 Int_t fChamber; ///< Current Chamber
96 Int_t fCathode; ///< Current cathode plane
97 Bool_t fDrawClusters; ///< Flag True if Clusters to be drawn
98 Bool_t fDrawCoG; ///< Flag True if CoG to be drawn
99 Bool_t fDrawTracks; ///< Flag True if tracks to be drawn
101 Int_t fClustersCuts; ///< Number of clusters surviving cuts
102 TPad *fColPad; ///< Pointer to the colors pad
103 TObjArray *fPoints; ///< Array of points for each cathode
104 TObjArray *fPhits; ///< Array of hit points for each chamber
105 TObjArray *fRpoints; ///< Array of cog points for each cathode
106 Int_t fNextCathode; ///< Flagging next cathode
108 AliLoader* fLoader; //!< MUON loader to get data
109 AliMUONData* fMUONData; //!< Data container for MUON subsystem
111 ClassDef(AliMUONDisplay, 0) //Utility class to display MUON events