1 #ifndef ALIMUONTRIGGERGUIDIMAP_H
2 #define ALIMUONTRIGGERGUIDIMAP_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 /// \ingroup evaluation
8 /// \class AliMUONTriggerGUIdimap
9 /// \brief Trigger GUI utility class: digits maps of the trigger chambers
10 // Author Bogdan Vulpescu, LPC Clermont-Ferrand
15 class AliMUONMCDataInterface;
16 class AliMUONDigitStoreV1;
17 class TGTransientFrame;
19 class TRootEmbeddedCanvas;
25 class AliMUONTriggerGUIdimap : public TGFrame
30 AliMUONTriggerGUIdimap(TObjArray *boards,
31 const TGWindow *p, const TGWindow *main,
33 virtual ~AliMUONTriggerGUIdimap();
35 /// set the current muon loader
36 void SetLoader(AliLoader * const loader) { fLoader = loader; };
37 /// set the MC data interface
38 void SetMCDataInterface(AliMUONMCDataInterface * const mc) { fMCDataInterface = mc; };
39 /// set the digit store from raw data
40 void SetRawDigitStore(AliMUONDigitStoreV1 * const ds) { fRawDigitStore = ds; };
42 /// return info if the map is open
43 Bool_t IsOn() const { return fIsOn; };
46 void DoTab(Int_t id) const;
49 void DrawMaps(Int_t chamber);
50 void SelectBoard(Int_t ib);
55 AliMUONTriggerGUIdimap (const AliMUONTriggerGUIdimap& dimap);
57 AliMUONTriggerGUIdimap& operator=(const AliMUONTriggerGUIdimap& dimap);
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
65 TGTransientFrame *fMain; ///< Main frame
67 AliLoader *fLoader; ///< The MUON loader
68 AliMUONMCDataInterface *fMCDataInterface; ///< MC data interface
69 AliMUONDigitStoreV1 *fRawDigitStore; ///< Raw data digit store
71 TRootEmbeddedCanvas *fEc[kNMT]; ///< Canvases for drawing the digits
73 TPave *fPaveBoard[kNMT][kNBoards]; ///< Drawing of the board
74 TObjArray *fBoards; ///< Array of boards
76 Bool_t fIsOn; ///< True if the map is open
78 ClassDef(AliMUONTriggerGUIdimap,2) //Trigger GUI utility class: digits maps of the trigger chambers