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 /// \class AliMUONTriggerGUIboard
20 /// Single trigger board object with geometry information, strips and digits
22 /// \author Bogdan Vulpescu, LPC Clermont-Ferrand
26 #include "AliMUONTriggerGUIboard.h"
29 ClassImp(AliMUONTriggerGUIboard)
32 //__________________________________________________________________________
33 AliMUONTriggerGUIboard::AliMUONTriggerGUIboard(Int_t id, Char_t *name)
50 /// board main constructor
52 fName = new TString(name);
55 for (Int_t i = 0; i < kNMT; i++) {
61 for (Int_t is = 0; is < kNS; is++) {
64 fXDigBox[i][is] = new TBox(0,0,0,0);
65 fYDigBox[i][is] = new TBox(0,0,0,0);
66 fXDigBox[i][is]->SetBit(kCannotPick);
67 fYDigBox[i][is]->SetBit(kCannotPick);
68 fXDigBox[i][is]->SetFillStyle(1001);
69 fYDigBox[i][is]->SetFillStyle(1001);
70 fXDigBox[i][is]->SetFillColor(4);
71 fYDigBox[i][is]->SetFillColor(4);
93 //__________________________________________________________________________
94 AliMUONTriggerGUIboard::~AliMUONTriggerGUIboard()
100 for (Int_t imt = 0; imt < kNMT; imt++) {
101 for (Int_t is = 0; is < kNS; is++) {
102 delete fXDigBox[imt][is];
103 delete fYDigBox[imt][is];
109 //__________________________________________________________________________
110 void AliMUONTriggerGUIboard::SetXDigBox(Int_t imt, Int_t is, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
112 /// set coordinates of "is" x-strip box in chamber "imt"
114 fXDigBox[imt][is]->SetX1(x1);
115 fXDigBox[imt][is]->SetY1(y1);
116 fXDigBox[imt][is]->SetX2(x2);
117 fXDigBox[imt][is]->SetY2(y2);
121 //__________________________________________________________________________
122 void AliMUONTriggerGUIboard::SetYDigBox(Int_t imt, Int_t is, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
124 /// set coordinates of "is" y-strip box in chamber "imt"
126 fYDigBox[imt][is]->SetX1(x1);
127 fYDigBox[imt][is]->SetY1(y1);
128 fYDigBox[imt][is]->SetX2(x2);
129 fYDigBox[imt][is]->SetY2(y2);
133 //__________________________________________________________________________
134 void AliMUONTriggerGUIboard::ClearXDigits()
136 /// delete the set x-digits
138 for (Int_t imt = 0; imt < kNMT; imt++) {
139 for (Int_t is = 0; is < kNS; is++) {
146 //__________________________________________________________________________
147 void AliMUONTriggerGUIboard::ClearYDigits()
149 /// delete the set y-digits
151 for (Int_t imt = 0; imt < kNMT; imt++) {
152 for (Int_t is = 0; is < kNS; is++) {