AliRoot Core  edcc906 (edcc906)
AliMUONTriggerGUIbdmap.h
Go to the documentation of this file.
1 #ifndef ALIMUONTRIGGERGUIBDMAP_H
2 #define ALIMUONTRIGGERGUIBDMAP_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
10 // Author Bogdan Vulpescu, LPC Clermont-Ferrand
11 
12 #include <TGFrame.h>
13 #include <TObjArray.h>
14 
15 class TCanvas;
16 class TGCheckButton;
17 class TGTextEdit;
18 class TPolyLine;
19 class TBox;
20 class TPaveText;
21 class TH1F;
22 class TLatex;
23 class TGTableLayout;
24 class TGLabel;
25 
27 class AliMUONTriggerGUI;
34 class AliLoader;
35 
36 class AliMUONTriggerGUIbdmap : public TGFrame
37 {
38 
39 public:
40 
41  AliMUONTriggerGUIbdmap(const TGWindow *p, const TGWindow *mainWindow, UInt_t w, UInt_t h);
42  virtual ~AliMUONTriggerGUIbdmap();
43 
45  void SetName(const Char_t *name) { fMain->SetWindowName(name); };
47  void SetBoard(AliMUONTriggerGUIboard * const b) { fBoard = b; };
49  void SetBoard(TObjArray * const boards, Int_t id) {
50  fBoards = boards;
51  fBoard = (AliMUONTriggerGUIboard*)boards->UncheckedAt(id); }
53  void SetLoader(AliLoader * const loader) { fLoader = loader; };
60 
62  void SetCrateManager(AliMUONTriggerCrateStore * const crates) { fCrateManager = crates; };
63 
64  void Show();
65 
66  void DrawStrips(Bool_t bx, Bool_t by);
67  void DrawDigits(Bool_t bx, Bool_t by);
68  void DrawClear();
69  void EditStrips(Int_t event, Int_t x, Int_t y, TObject *sel);
70 
71  void Init();
72  void HandleButtons(Int_t id = -1);
73  void HandleEditButton();
74  void CloseWindow() const;
75  void DoClose();
76  void DoDigits();
77  void ResetDigits();
78  void LocalTriggerInfo();
79 
80 private:
85 
86 
87  enum { kNBoards = 234, kNMT = 4, kNS = 16 };
88 
89  TGTransientFrame *fMain;
90  TCanvas *fCanvas[kNMT];
91  TGTextEdit *fLocTrigE;
92 
98 
99  TGCheckButton *fXStrips;
100  TGCheckButton *fYStrips;
101  TGCheckButton *fEditStrips;
102 
103  TPolyLine *fXDigPL[kNMT][kNS];
104  TPolyLine *fYDigPL[kNMT][kNS];
105  TBox *fXDigBox[kNMT][kNS];
106  TBox *fYDigBox[kNMT][kNS];
107  TPaveText *fXLabelL[kNMT][kNS];
108  TPaveText *fXLabelR[kNMT][kNS];
109  TPaveText *fYLabelL[kNMT][kNS];
110  TPaveText *fYLabelR[kNMT][kNS];
111 
112  Float_t fXWidth[kNMT];
113  Float_t fYWidth[kNMT];
114  Float_t fXCenter[kNMT];
115  Float_t fYCenter[kNMT];
116 
117  Bool_t fXOn;
118  Bool_t fYOn;
119  Bool_t fLabelX;
120  Bool_t fLabelY;
121  Bool_t fIsEditable;
122 
123  UInt_t fCanvasSize;
124  Int_t fNStripX;
125  Int_t fNStripY;
126 
128 
131 
132  ClassDef(AliMUONTriggerGUIbdmap,2) // board gui class
133 
134 };
135 
136 #endif
AliMUONTriggerCrateStore * fCrateManager
trigger boards manager
TBrowser b
Definition: RunAnaESD.C:12
void SetName(const Char_t *name)
set the name of the board gui window
TPaveText * fXLabelL[kNMT][kNS]
X-strip labels left.
TCanvas * fCanvas[kNMT]
MT canvases.
Implementation of AliMUONVTriggerStore.
TPolyLine * fXDigPL[kNMT][kNS]
X-strip polyline.
#define TObjArray
Int_t fNStripX
Number of x-strips on board.
void SetLoader(AliLoader *const loader)
set the current muon loader
void DrawDigits(Bool_t bx, Bool_t by)
Float_t fYCenter[kNMT]
Board y-center.
Float_t p[]
Definition: kNNTest.C:133
TGCheckButton * fYStrips
Draw y-strips and digits.
void SetRawDigitStore(AliMUONDigitStoreV1 *const ds)
set the digit store from raw data
Float_t fXCenter[kNMT]
Board x-center.
void SetRawTriggerStore(AliMUONTriggerStoreV1 *const ts)
set the trigger store from raw data
Graphical User Interface utility class for the MUON trigger detector.
Bool_t fIsEditable
allows set/unset the strips
AliMUONTriggerGUIboard * fBoard
Current board object.
TPolyLine * fYDigPL[kNMT][kNS]
Y-strip polyline.
AliMUONTriggerStoreV1 * fRawTriggerStore
Raw data trigger store.
(Legacy) implementation of AliMUONVDigitStore
A container for AliMUONTriggerCrate objects.
TBox * fXDigBox[kNMT][kNS]
X-digit box.
TBox * fYDigBox[kNMT][kNS]
Y-digit box.
void SetMCDataInterface(AliMUONMCDataInterface *const mc)
set the MC data interface
void SetBoard(AliMUONTriggerGUIboard *const b)
set the board associated to this instance
Bool_t fLabelX
x-labels exist
AliMUONTriggerGUIbdmap(const TGWindow *p, const TGWindow *mainWindow, UInt_t w, UInt_t h)
TPaveText * fYLabelR[kNMT][kNS]
Y-strip labels right.
MUON Trigger circuit.
TPaveText * fYLabelL[kNMT][kNS]
Y-strip labels left.
void SetCrateManager(AliMUONTriggerCrateStore *const crates)
set the trigger boards manager
TPaveText * fXLabelR[kNMT][kNS]
X-strip labels right.
AliMUONMCDataInterface * fMCDataInterface
MC data interface.
Float_t fYWidth[kNMT]
Board y-width.
TObjArray * fBoards
Array with all boards.
TGTextEdit * fLocTrigE
Window local trigger info.
TGTransientFrame * fMain
Main board frame.
Float_t fXWidth[kNMT]
Board x-width.
AliLoader * fLoader
The MUON loader.
Trigger GUI utility class: single board object.
Bool_t fXOn
x-strips/digits on canvas ?
Bool_t fLabelY
y-labels exist
Int_t fNStripY
Number of y-strips on board.
AliMUONCalibrationData * fCalibrationData
Pointer to calibration data.
void EditStrips(Int_t event, Int_t x, Int_t y, TObject *sel)
Single entry point to access MUON calibration data.
Easy to use data access to MC information.
Bool_t fYOn
y-strips/digits on canvas ?
Trigger GUI utility class: single board map of the strips/digits.
void DrawStrips(Bool_t bx, Bool_t by)
void SetBoard(TObjArray *const boards, Int_t id)
set the board associated to this instance, from boards array and id
AliMUONDigitStoreV1 * fRawDigitStore
Raw data digit store.
TGCheckButton * fEditStrips
Set/unset the strips.
AliMUONTriggerGUIbdmap & operator=(const AliMUONTriggerGUIbdmap &bdmap)
Not implemented.
UInt_t fCanvasSize
Size of the canvas.
TGCheckButton * fXStrips
Draw x-strips and digits.