]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONTriggerGUIdimap.h
Changes to use VTriggerStore (Laurent)
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerGUIdimap.h
CommitLineData
905654c2 1#ifndef ALIMUONTRIGGERGUIDIMAP_H
2#define ALIMUONTRIGGERGUIDIMAP_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/// \ingroup evaluation
8/// \class AliMUONTriggerGUIdimap
9/// \brief Trigger GUI utility class: digits maps of the trigger chambers
10
11//////////////////////////////////////////////////////////////////////////
12// //
13// Graphical User Interface utility class for the MUON trigger //
14// - digits maps of the trigger chambers //
15// //
16//////////////////////////////////////////////////////////////////////////
17
18#include <TObject.h>
19#include <RQ_OBJECT.h>
20
21class AliLoader;
22class AliMUONData;
23class TGTransientFrame;
24class TObjArray;
25class TRootEmbeddedCanvas;
26class TPave;
27class TH1F;
28class TGWindow;
29class TPad;
30
31class AliMUONTriggerGUIdimap : public TObject
32{
33
34RQ_OBJECT("AliMUONTriggerGUIdimap")
35
36public:
37
38 AliMUONTriggerGUIdimap(AliLoader *loader,
39 TObjArray *boards,
40 const TGWindow *p, const TGWindow *main,
41 UInt_t w, UInt_t h);
42 virtual ~AliMUONTriggerGUIdimap();
43
44 AliMUONTriggerGUIdimap (const AliMUONTriggerGUIdimap& dimap);
45 AliMUONTriggerGUIdimap& operator=(const AliMUONTriggerGUIdimap& dimap);
46
47 /// set the current muon loader
48 void SetLoader(AliLoader *loader) { fLoader = loader; };
49 /// true if the gui is active
50 Bool_t IsOn() const { return fIsOn; };
51
52 void DoClose();
53 void DoUpdate();
54 void DoTab(Int_t id) const;
55 void DoReset();
56 void CloseWindow();
57 void DrawMaps(Int_t chamber);
58 void SelectBoard(Int_t ib);
59
60private:
61
62 enum { kNBoards = 234 }; ///< number of boards
63 enum { kGood = 0x0001, kWithProblems = 0x0002, kNotWorking = 0x0004, kUnknown = 0x0008 }; ///< working status flags
64 enum { kNSide = 2, kNCol = 7, kNLine = 9, kNMT = 4, kNBoardType = 3 }; ///< other constants
65
66 TGTransientFrame *fMain; ///< Main frame
67
68 AliLoader *fLoader; ///< The MUON loader
69 AliMUONData *fMUONData; ///< MUON data manager
70
71 TRootEmbeddedCanvas *fEc[kNMT]; ///< Canvases for drawing the digits
72
73 TPave *fPaveBoard[kNMT][kNBoards]; ///< Drawing of the board
74 TObjArray *fBoards; ///< Array of boards
75
76 Bool_t fIsOn; ///< True if the map is open
77
78 ClassDef(AliMUONTriggerGUIdimap,1)
79
80};
81
82#endif