1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 //-----------------------------------------------------------------------------
19 /// \class AliMUONTriggerGUIboard
21 /// Single trigger board object with geometry information, strips and digits
23 /// \author Bogdan Vulpescu, LPC Clermont-Ferrand
24 //-----------------------------------------------------------------------------
28 #include "AliMUONTriggerGUIboard.h"
31 ClassImp(AliMUONTriggerGUIboard)
34 //__________________________________________________________________________
35 AliMUONTriggerGUIboard::AliMUONTriggerGUIboard(Int_t id, Char_t *name)
52 /// board main constructor
54 fName = new TString(name);
57 for (Int_t i = 0; i < kNMT; i++) {
63 for (Int_t is = 0; is < kNS; is++) {
66 fXDigBox[i][is] = new TBox(0,0,0,0);
67 fYDigBox[i][is] = new TBox(0,0,0,0);
68 fXDigBox[i][is]->SetBit(kCannotPick);
69 fYDigBox[i][is]->SetBit(kCannotPick);
70 fXDigBox[i][is]->SetFillStyle(1001);
71 fYDigBox[i][is]->SetFillStyle(1001);
72 fXDigBox[i][is]->SetFillColor(4);
73 fYDigBox[i][is]->SetFillColor(4);
95 //__________________________________________________________________________
96 AliMUONTriggerGUIboard::~AliMUONTriggerGUIboard()
102 for (Int_t imt = 0; imt < kNMT; imt++) {
103 for (Int_t is = 0; is < kNS; is++) {
104 delete fXDigBox[imt][is];
105 delete fYDigBox[imt][is];
111 //__________________________________________________________________________
112 void AliMUONTriggerGUIboard::SetXDigBox(Int_t imt, Int_t is, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
114 /// set coordinates of "is" x-strip box in chamber "imt"
116 fXDigBox[imt][is]->SetX1(x1);
117 fXDigBox[imt][is]->SetY1(y1);
118 fXDigBox[imt][is]->SetX2(x2);
119 fXDigBox[imt][is]->SetY2(y2);
123 //__________________________________________________________________________
124 void AliMUONTriggerGUIboard::SetYDigBox(Int_t imt, Int_t is, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
126 /// set coordinates of "is" y-strip box in chamber "imt"
128 fYDigBox[imt][is]->SetX1(x1);
129 fYDigBox[imt][is]->SetY1(y1);
130 fYDigBox[imt][is]->SetX2(x2);
131 fYDigBox[imt][is]->SetY2(y2);
135 //__________________________________________________________________________
136 void AliMUONTriggerGUIboard::ClearXDigits()
138 /// delete the set x-digits
140 for (Int_t imt = 0; imt < kNMT; imt++) {
141 for (Int_t is = 0; is < kNS; is++) {
148 //__________________________________________________________________________
149 void AliMUONTriggerGUIboard::ClearYDigits()
151 /// delete the set y-digits
153 for (Int_t imt = 0; imt < kNMT; imt++) {
154 for (Int_t is = 0; is < kNS; is++) {