]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONTriggerGUIboard.cxx
- Reshape the architecture of the Kalman tracking to make it more modular
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerGUIboard.cxx
CommitLineData
905654c2 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
37391c63 16// $Id$
17
18/// \class AliMUONTriggerGUIboard
19///
20/// Single trigger board object with geometry information, strips and digits
21///
22/// \author Bogdan Vulpescu, LPC Clermont-Ferrand
905654c2 23
24#include <TBox.h>
25
26#include "AliMUONTriggerGUIboard.h"
27
28/// \cond CLASSIMP
29ClassImp(AliMUONTriggerGUIboard)
30/// \endcond
31
32//__________________________________________________________________________
33AliMUONTriggerGUIboard::AliMUONTriggerGUIboard(Int_t id, Char_t *name)
34 : TObject(),
35 fName(0),
36 fID(-1),
37 fStatus(0),
38 fPosition(0),
39 fYOver(0),
40 fXSix(0),
41 fXSiy1(0),
42 fXSiy2(0),
43 fYSix1(0),
44 fYSix2(0),
45 fYSiy(0),
46 fDetElemId(0),
47 fIdCircuit(-1),
48 fIsOpen(0)
49{
50 /// board main constructor
51
52 fName = new TString(name);
53 fID = id;
54
55 for (Int_t i = 0; i < kNMT; i++) {
56 fXCenter[i] = 0.;
57 fYCenter[i] = 0.;
58 fZCenter[i] = 0.;
59 fXWidth[i] = 0.;
60 fYWidth[i] = 0.;
61 for (Int_t is = 0; is < kNS; is++) {
62 fXDig[i][is] = 0;
63 fYDig[i][is] = 0;
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);
72 }
73 }
74
75 fXSix = -1;
76 fXSiy1 = -1;
77 fXSiy2 = -1;
78
79 fYSix1 = -1;
80 fYSix2 = -1;
81 fYSiy = -1;
82
83 fDetElemId = -1;
84 fIdCircuit = -1;
85
86 fIsOpen = kFALSE;
87
88 fYOver = 0;
89 fPosition = 0;
90
91}
92
93//__________________________________________________________________________
94AliMUONTriggerGUIboard::~AliMUONTriggerGUIboard()
95{
96 /// board destructor
97
98 delete fName;
99
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];
104 }
105 }
106
107}
108
905654c2 109//__________________________________________________________________________
110void AliMUONTriggerGUIboard::SetXDigBox(Int_t imt, Int_t is, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
111{
112 /// set coordinates of "is" x-strip box in chamber "imt"
113
114 fXDigBox[imt][is]->SetX1(x1);
115 fXDigBox[imt][is]->SetY1(y1);
116 fXDigBox[imt][is]->SetX2(x2);
117 fXDigBox[imt][is]->SetY2(y2);
118
119}
120
121//__________________________________________________________________________
122void AliMUONTriggerGUIboard::SetYDigBox(Int_t imt, Int_t is, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
123{
124 /// set coordinates of "is" y-strip box in chamber "imt"
125
126 fYDigBox[imt][is]->SetX1(x1);
127 fYDigBox[imt][is]->SetY1(y1);
128 fYDigBox[imt][is]->SetX2(x2);
129 fYDigBox[imt][is]->SetY2(y2);
130
131}
132
133//__________________________________________________________________________
134void AliMUONTriggerGUIboard::ClearXDigits()
135{
136 /// delete the set x-digits
137
138 for (Int_t imt = 0; imt < kNMT; imt++) {
139 for (Int_t is = 0; is < kNS; is++) {
140 fXDig[imt][is] = 0;
141 }
142 }
143
144}
145
146//__________________________________________________________________________
147void AliMUONTriggerGUIboard::ClearYDigits()
148{
149 /// delete the set y-digits
150
151 for (Int_t imt = 0; imt < kNMT; imt++) {
152 for (Int_t is = 0; is < kNS; is++) {
153 fYDig[imt][is] = 0;
154 }
155 }
156
157}