Remove several warnings
[u/mrichter/AliRoot.git] / MUON / AliMUONdisplay.h
fe4da5cc 1#ifndef AliMUONdisplay_H
2#define AliMUONdisplay_H
5// //
6// AliDisplay //
7// //
8// Utility class to display ALice outline, tracks, hits,.. //
9// //
12//#ifndef ROOT_TObject
13#include <TObject.h>
15#include "AliDisplay.h"
17class TCanvas;
18class TPad;
19class TList;
20class TSlider;
21class TButton;
22class TArc;
24const Int_t kMAXZOOM = 20;
26class AliMUONdisplay : /*splaypublic TObject,*/ public AliDisplay {
a897a37a 29 Int_t fEvent;
fe4da5cc 30 Int_t fChamber;
31 Int_t fCathode;
32 Int_t fZoomMode; //=1 if in zoom mode
34 Bool_t fDrawClusters; //Flag True if Clusters to be drawn
a897a37a 35 Bool_t fDrawCoG; //Flag True if CoG to be drawn
36 Bool_t fDrawCathCor; //Flag True if correlated point
37 //to be drawn
fe4da5cc 38 Float_t fTheta; //Viewing angle theta
39 Float_t fPhi; //Viewing angle phi
40 Float_t fPsi; //Viewving angle psi (rotation on display)
41 // Float_t fRzone; //
42 Float_t fRrange; //Size of view in R
43 Float_t fZrange; //Size of view along Z
44 Float_t fZoomX0[20]; //Low x range of zoom number i
45 Float_t fZoomY0[20]; //Low y range of zoom number i
46 Float_t fZoomX1[20]; //High x range of zoom number i
47 Float_t fZoomY1[20]; //High y range of zoom number i
48 Int_t fZooms; //Number of zooms
49 Int_t fHitsCuts; //Number of hits surviving cuts
50 Int_t fClustersCuts; //Number of clusters surviving cuts
51 TCanvas *fCanvas; //Pointer to the display canvas
52 TPad *fTrigPad; //Pointer to the trigger pad
53 TPad *fColPad; //Pointer to the colors pad
54 TPad *fButtons; //Pointer to the buttons pad
55 TPad *fPad; //Pointer to the event display main pad
56 TSlider *fRangeSlider; //Range slider
57 TButton *fPickButton; //Button to activate Pick mode
58 TButton *fZoomButton; //Button to activate Zoom mode
59 TArc *fArcButton; //Gren/Red button to show Pick/Zoom mode
60 TObjArray *fPoints; //Array of points for each cathode
61 TObjArray *fPhits; //Array of hit points for each chamber
a897a37a 62 TObjArray *fRpoints; //Array of cog points for each cathode
63 TObjArray *fR2points; //Array of cog points for each cathode
64 TObjArray *fCpoints; //Array of correlated points for each first cathode
fe4da5cc 65public:
66 AliMUONdisplay();
67 AliMUONdisplay(Int_t size);
68 virtual ~AliMUONdisplay();
69 virtual void Clear(Option_t *option="");
70 virtual void DisplayButtons();
71 virtual void CreateColors();
72 virtual void DisplayColorScale();
73 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
74 virtual void Draw(Option_t *option="");
75 virtual void DrawClusters();
76 virtual void DrawHits();
a897a37a 77 virtual void DrawCoG();
78 virtual void DrawCoG2();
79 virtual void DrawCathCor();
fe4da5cc 81 virtual void DrawTitle(Option_t *option="");
82 virtual void DrawView(Float_t theta, Float_t phi, Float_t psi=0);
83 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
84 Int_t GetZoomMode() {return fZoomMode;}
85 Int_t GetChamber() {return fChamber;}
86 Int_t GetCathode() {return fCathode;}
87 virtual void LoadDigits(Int_t chamber, Int_t cathode);
88 virtual void LoadHits(Int_t chamber);
a897a37a 89 virtual void LoadCoG(Int_t chamber, Int_t cathode);
90 virtual void LoadCoG2(Int_t chamber, Int_t cathode);
91 virtual void LoadCathCor(Int_t chamber);
fe4da5cc 92 TPad *Pad() {return fPad;}
93 TObjArray *Points() {return fPoints;}
94 TObjArray *Phits() {return fPhits;}
a897a37a 95 TObjArray *Rpoints() {return fRpoints;}
96 TObjArray *R2points() {return fR2points;}
97 TObjArray *Cpoints() {return fCpoints;}
fe4da5cc 98 virtual void Paint(Option_t *option="");
99 virtual void SetDrawClusters(Bool_t draw=kTRUE) {fDrawClusters=draw;} // *MENU*
100 virtual void SetChamberAndCathode(Int_t chamber=1, Int_t cathode=1); // *MENU*
a897a37a 101 virtual void SetDrawCoG(Bool_t draw=kTRUE) {fDrawCoG=draw;} // *MENU*
102 virtual void SetDrawCathCor(Bool_t draw=kTRUE) {fDrawCathCor=draw;} // *MENU*
103 virtual void SetRange(Float_t rrange=250., Float_t zrange=1050.); // *MENU*
104 virtual void SetView(Float_t theta=0, Float_t phi=-90, Float_t psi=0);
fe4da5cc 105 virtual void SetPickMode();
106 virtual void SetZoomMode();
107 virtual void ShowNextEvent(Int_t delta=1);
108 virtual void UnZoom(); // *MENU*
109 virtual void ResetPoints();
110 virtual void ResetPhits();
a897a37a 111 virtual void ResetRpoints();
112 virtual void ResetR2points();
113 virtual void ResetCpoints();
fe4da5cc 114
115 ClassDef(AliMUONdisplay, 0) //Utility class to display MUON clusters...