]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONTriggerGUIdimap.h
AliEveTrackCounter, AliEveTrackCounterEditor
[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
bae1aa70 10// Author Bogdan Vulpescu, LPC Clermont-Ferrand
905654c2 11
bae1aa70 12#include <TGFrame.h>
905654c2 13
14class AliLoader;
f9eb4448 15class AliMUONMCDataInterface;
905654c2 16class TGTransientFrame;
17class TObjArray;
18class TRootEmbeddedCanvas;
19class TPave;
20class TH1F;
21class TGWindow;
22class TPad;
23
bae1aa70 24class AliMUONTriggerGUIdimap : public TGFrame
905654c2 25{
905654c2 26
27public:
28
f9eb4448 29 AliMUONTriggerGUIdimap(TObjArray *boards,
905654c2 30 const TGWindow *p, const TGWindow *main,
31 UInt_t w, UInt_t h);
32 virtual ~AliMUONTriggerGUIdimap();
33
905654c2 34 /// set the current muon loader
35 void SetLoader(AliLoader *loader) { fLoader = loader; };
f9eb4448 36 /// set the MC data interface
37 void SetMCDataInterface(AliMUONMCDataInterface *mc) { fMCDataInterface = mc; };
905654c2 38
f9eb4448 39 /// return info if the map is open
40 Bool_t IsOn() const { return fIsOn; };
905654c2 41 void DoClose();
42 void DoUpdate();
43 void DoTab(Int_t id) const;
44 void DoReset();
45 void CloseWindow();
46 void DrawMaps(Int_t chamber);
47 void SelectBoard(Int_t ib);
f9eb4448 48 void DrawAllMaps();
905654c2 49
bae1aa70 50private:
51 /// Not implemented
52 AliMUONTriggerGUIdimap (const AliMUONTriggerGUIdimap& dimap);
53 /// Not implemented
54 AliMUONTriggerGUIdimap& operator=(const AliMUONTriggerGUIdimap& dimap);
55
905654c2 56private:
57
58 enum { kNBoards = 234 }; ///< number of boards
59 enum { kGood = 0x0001, kWithProblems = 0x0002, kNotWorking = 0x0004, kUnknown = 0x0008 }; ///< working status flags
60 enum { kNSide = 2, kNCol = 7, kNLine = 9, kNMT = 4, kNBoardType = 3 }; ///< other constants
61
62 TGTransientFrame *fMain; ///< Main frame
63
64 AliLoader *fLoader; ///< The MUON loader
f9eb4448 65 AliMUONMCDataInterface *fMCDataInterface; ///< MC data interface
905654c2 66
67 TRootEmbeddedCanvas *fEc[kNMT]; ///< Canvases for drawing the digits
68
69 TPave *fPaveBoard[kNMT][kNBoards]; ///< Drawing of the board
70 TObjArray *fBoards; ///< Array of boards
71
72 Bool_t fIsOn; ///< True if the map is open
73
69d7ac2e 74 ClassDef(AliMUONTriggerGUIdimap,1) //Trigger GUI utility class: digits maps of the trigger chambers
905654c2 75
76};
77
78#endif