AliRoot Core  3abf5b4 (3abf5b4)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTriggerGUI.h
Go to the documentation of this file.
1 #ifndef ALIMUONTRIGGERGUI_H
2 #define ALIMUONTRIGGERGUI_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 /* $Id$ */
8 
12 // Author Bogdan Vulpescu, LPC Clermont-Ferrand
13 
14 
15 #include <TObject.h>
16 #include <TObjArray.h>
17 
18 class TString;
19 class TGMainFrame;
20 class TGTransientFrame;
21 class TGImageMap;
22 class TGTextEntry;
23 class TGTextBuffer;
24 class TRootEmbeddedCanvas;
25 class TParticle;
26 class TGTableLayout;
27 
28 class AliStack;
29 class AliLoader;
30 class AliRunLoader;
31 class AliCDBManager;
32 class AliRawReader;
42 
43 class AliMUONTriggerGUI : public TObject
44 {
45 
46 public:
47 
48  AliMUONTriggerGUI(Int_t runNumber = 0);
49  virtual ~AliMUONTriggerGUI() {
51  };
52 
53  void OpenBoard(Int_t id);
54  void HandleMenu(Int_t id);
55 
56  void CreateDigitStore();
57  void PrintDigitStore() const;
58  void ClearDigitStore();
59 
60  void CreateTriggerStore();
61  void PrintTriggerStore() const;
62  void ClearTriggerStore();
63 
64  void WriteTriggerRawData();
65 
66  void FET(Int_t onoff);
67  void FETboard(Int_t ib, Int_t amp);
68 
69  /* Do functions */
70 
71  void DoRunGalApply();
72  void DoRunRawApply();
73  void DoRunCancel();
74  void DoControlClose();
75  void DoCircuitCancel();
76  void DoCircuitOpen();
77  void DoErrorOK();
78  void DoNextEvent();
79  void DoPreviousEvent();
80  void DoSkipToEvent();
81  void DoErrorGUI(const Char_t *wt);
82  void DoFETRegRun(Int_t onoff);
83  void DoFETRegOnCancel();
84  void DoFETRegOffCancel();
85  void DoFETRegOnRun();
86  void DoFETRegOffRun();
87 
88  /* Close functions */
89 
90  void CloseWindow();
91  void CloseRunInput() const;
92  void CloseError() const;
93  void CloseControl() const;
94  void CloseCircuit() const;
95  void CloseFETRegOn() const;
96  void CloseFETRegOff() const;
97 
98 private:
99 
100  AliMUONTriggerGUI (const AliMUONTriggerGUI& board);
102 
103 private:
104 
106  enum { kNBoards = 234, kNMT = 4 };
107 
110 
114 
117 
119 
124 
131 
133 
134  };
135 
136  enum {
137  kGood = 0x0001, kWithProblems = 0x0002, kNotWorking = 0x0004, kUnknown = 0x0008
138  };
139 
140  TGMainFrame *fMain;
141  TGImageMap *fImageMap;
142  TGTextBuffer *fTxtBuffer1;
143  TGTextBuffer *fTxtBuffer2;
144  TGTextBuffer *fTxtCircuit;
145  TGTextBuffer *fTxtFETRegOn;
146  TGTextBuffer *fTxtFETRegOff;
147 
148  TGTransientFrame *fRunInput;
149  TGTransientFrame *fError;
150  TGTransientFrame *fControl;
151  TGTransientFrame *fCircuit;
152  TGTransientFrame *fFETRegOn;
153  TGTransientFrame *fFETRegOff;
154 
155  TGTextEntry *fSkipToEventTxt;
156 
157  TString *fFileName;
158  TString *fPath;
159  TString *fEvString;
160 
161  Int_t fChamber;
162  Int_t fEvent;
164 
165  AliLoader *fLoader;
166  AliRunLoader *fRunLoader;
167 
168  AliCDBManager *fCDBManager;
172 
173  Bool_t fBoardsInit;
174  Bool_t fControlOn;
175 
177 
179 
181 
184  Bool_t fTStoreOn;
185  Bool_t fRUNRAW;
186  AliRawReader *fRawReader;
190 
193  if(!fBoards) fBoards = new TObjArray(kNBoards); return fBoards;
194  };
195  AliMUONTriggerGUIboard *GetBoard(Int_t id) const;
196 
197  virtual void Init();
198  virtual void InitBoards();
199 
201 
202  ClassDef(AliMUONTriggerGUI,2) // Main GUI class for the MUON trigger
203 
204 };
205 
206 #endif
virtual ~AliMUONTriggerGUI()
AliMUONMCDataInterface * fMCDataInterface
MC data interface.
AliMUONTriggerGUI(Int_t runNumber=0)
void FET(Int_t onoff)
Int_t fCurrentRawEvent
Current event for raw data input.
Implementation of AliMUONVTriggerStore.
#define TObjArray
Concrete implementation of AliMUONVDigitStore for real digits.
AliCDBManager * fCDBManager
Calibration DB manager.
TObjArray * Boards()
Access the array of trigger boards.
AliMUONTriggerCrateStore * fCrateManager
trigger boards manager
void CloseControl() const
virtual void InitBoards()
Graphical User Interface utility class for the MUON trigger detector.
Int_t fEvent
Current event number.
AliMUONCalibrationData * fCalibrationData
Calibration data for MUON.
AliMUONTriggerGUI & operator=(const AliMUONTriggerGUI &board)
assignment operator
Int_t fChamber
Current MT chamber.
AliMUONTriggerElectronics * fTriggerProcessor
The GUI trigger processor.
TGTextBuffer * fTxtFETRegOff
Regional crate to FET OFF.
(Legacy) implementation of AliMUONVDigitStore
void CloseFETRegOn() const
A container for AliMUONTriggerCrate objects.
AliLoader * fLoader
The MUON loader.
TGTransientFrame * fControl
Run control window.
Manager class for muon trigger electronics.
TGMainFrame * fMain
The main frame.
AliMUONTriggerStoreV1 * fRawTriggerStore
Trigger store from raw data.
AliMUONDigitStoreV2R * fDigitStore
GUI digit store (DSET)
Bool_t fBoardsInit
Control the InitBoards only once.
TGTransientFrame * fFETRegOn
FET ON for a regional card.
TString * fEvString
Event number string.
void PrintDigitStore() const
TGTextBuffer * fTxtBuffer1
Path to the data (galice.root)
Bool_t fControlOn
If the control frame is open.
void HandleMenu(Int_t id)
void CloseCircuit() const
AliRawReader * fRawReader
Reader for raw data input.
void FETboard(Int_t ib, Int_t amp)
TGTransientFrame * fCircuit
Circuit window.
TGImageMap * fImageMap
The image map of the main frame.
void PrintTriggerStore() const
Trigger GUI utility class: digits maps of the trigger chambers.
Bool_t fRUNRAW
True if run with raw data (root)
TGTextBuffer * fTxtCircuit
Circuit to open.
TGTransientFrame * fError
Error window.
void OpenBoard(Int_t id)
void CloseFETRegOff() const
Trigger GUI utility class: single board object.
TGTextEntry * fSkipToEventTxt
Control field shows current event number.
TObjArray * fBoards
The array of trigger boards.
EMenuIdentifiers
working status flags
Single entry point to access MUON calibration data.
AliRunLoader * fRunLoader
The run loader.
Easy to use data access to MC information.
TGTransientFrame * fRunInput
Run input window.
TString * fPath
Path string to galice.
void SetStripBoxes(AliMUONTriggerGUIboard *board)
void CloseRunInput() const
TGTextBuffer * fTxtBuffer2
Current event number.
TGTransientFrame * fFETRegOff
FET OFF for a regional card.
TString * fFileName
Full galice file name.
Bool_t fTStoreOn
True if DSET trigger store has data.
AliMUONTriggerGUIdimap * fDiMap
Digits map.
void DoFETRegRun(Int_t onoff)
Int_t fEventsPerRun
Number of events per file (run)
AliMUONTriggerGUIboard * GetBoard(Int_t id) const
TGTextBuffer * fTxtFETRegOn
Regional crate to FET ON.
AliMUONTriggerStoreV1 * fTriggerStore
Trigger store with GUI digit store.
void DoErrorGUI(const Char_t *wt)
void CloseError() const
AliMUONDigitStoreV1 * fRawDigitStore
Digit store from raw data.