Fixing a warning
[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;
8b067dfe 16class AliMUONDigitStoreV1;
905654c2 17class TGTransientFrame;
18class TObjArray;
19class TRootEmbeddedCanvas;
20class TPave;
21class TH1F;
22class TGWindow;
23class TPad;
24
bae1aa70 25class AliMUONTriggerGUIdimap : public TGFrame
905654c2 26{
905654c2 27
28public:
29
f9eb4448 30 AliMUONTriggerGUIdimap(TObjArray *boards,
905654c2 31 const TGWindow *p, const TGWindow *main,
32 UInt_t w, UInt_t h);
33 virtual ~AliMUONTriggerGUIdimap();
34
905654c2 35 /// set the current muon loader
e1ac4804 36 void SetLoader(AliLoader * const loader) { fLoader = loader; };
f9eb4448 37 /// set the MC data interface
e1ac4804 38 void SetMCDataInterface(AliMUONMCDataInterface * const mc) { fMCDataInterface = mc; };
8b067dfe 39 /// set the digit store from raw data
e1ac4804 40 void SetRawDigitStore(AliMUONDigitStoreV1 * const ds) { fRawDigitStore = ds; };
905654c2 41
f9eb4448 42 /// return info if the map is open
43 Bool_t IsOn() const { return fIsOn; };
905654c2 44 void DoClose();
45 void DoUpdate();
46 void DoTab(Int_t id) const;
47 void DoReset();
48 void CloseWindow();
49 void DrawMaps(Int_t chamber);
50 void SelectBoard(Int_t ib);
f9eb4448 51 void DrawAllMaps();
905654c2 52
53private:
bae1aa70 54 /// Not implemented
55 AliMUONTriggerGUIdimap (const AliMUONTriggerGUIdimap& dimap);
56 /// Not implemented
57 AliMUONTriggerGUIdimap& operator=(const AliMUONTriggerGUIdimap& dimap);
58
59private:
905654c2 60
61 enum { kNBoards = 234 }; ///< number of boards
62 enum { kGood = 0x0001, kWithProblems = 0x0002, kNotWorking = 0x0004, kUnknown = 0x0008 }; ///< working status flags
63 enum { kNSide = 2, kNCol = 7, kNLine = 9, kNMT = 4, kNBoardType = 3 }; ///< other constants
64
65 TGTransientFrame *fMain; ///< Main frame
66
67 AliLoader *fLoader; ///< The MUON loader
f9eb4448 68 AliMUONMCDataInterface *fMCDataInterface; ///< MC data interface
8b067dfe 69 AliMUONDigitStoreV1 *fRawDigitStore; ///< Raw data digit store
905654c2 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
8b067dfe 78 ClassDef(AliMUONTriggerGUIdimap,2) //Trigger GUI utility class: digits maps of the trigger chambers
905654c2 79
80};
81
82#endif