]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - MUON/AliMUONTriggerConstants.cxx
New version of the trigger code (E.Lopez)
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerConstants.cxx
... / ...
CommitLineData
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
16/* $Id$ */
17
18// ------------------
19// Class AliMUONTriggerConstants
20// ------------------
21// constants for building the trigger segmentation
22// to be removed soon (the next version is based on mapping only)
23
24#include "AliMUONTriggerConstants.h"
25
26ClassImp(AliMUONTriggerConstants)
27
28//----------------------------------------------------------------------
29AliMUONTriggerConstants::AliMUONTriggerConstants()
30 : TNamed()
31{
32// constructor
33 ;
34}
35//----------------------------------------------------------------------
36AliMUONTriggerConstants::~AliMUONTriggerConstants()
37{
38// destructor
39 ;
40}
41
42//----------------------------------------------------------------------
43const Int_t AliMUONTriggerConstants::fgkNmodule = 126;
44
45//----------------------------------------------------------------------
46// conv : line-column (line : from top to bottom, column : from left to right)
47const Int_t AliMUONTriggerConstants::fgkModuleId[126] =
48{11,12,13,14,15,16,17, // right side of the chamber
49 21,22,23,24,25,26,27,
50 31,32,33,34,35,36,37,
51 41,42,43,44,45,46,47,
52 51,52,53,54,55,56,57,
53 61,62,63,64,65,66,67,
54 71,72,73,74,75,76,77,
55 81,82,83,84,85,86,87,
56 91,92,93,94,95,96,97,
57 -11,-12,-13,-14,-15,-16,-17, // right side of chamber
58 -21,-22,-23,-24,-25,-26,-27,
59 -31,-32,-33,-34,-35,-36,-37,
60 -41,-42,-43,-44,-45,-46,-47,
61 -51,-52,-53,-54,-55,-56,-57,
62 -61,-62,-63,-64,-65,-66,-67,
63 -71,-72,-73,-74,-75,-76,-77,
64 -81,-82,-83,-84,-85,-86,-87,
65 -91,-92,-93,-94,-95,-96,-97};
66
67//----------------------------------------------------------------------
68const Int_t AliMUONTriggerConstants::fgkNstripX[126]=
69{16,16,16,16,16,16,16, // right side of the chamber
70 32,32,32,32,32,32,16,
71 32,32,32,32,32,32,16,
72 48,64,64,32,32,32,16,
73 0,64,64,32,32,32,16,
74 48,64,64,32,32,32,16,
75 32,32,32,32,32,32,16,
76 32,32,32,32,32,32,16,
77 16,16,16,16,16,16,16, // left side of the chamber
78 16,16,16,16,16,16,16,
79 32,32,32,32,32,32,16,
80 32,32,32,32,32,32,16,
81 48,64,64,32,32,32,16,
82 0,64,64,32,32,32,16,
83 48,64,64,32,32,32,16,
84 32,32,32,32,32,32,16,
85 32,32,32,32,32,32,16,
86 16,16,16,16,16,16,16};
87
88//----------------------------------------------------------------------
89const Int_t AliMUONTriggerConstants::fgkNstripY[126]=
90{ 8, 8, 8, 8, 8, 8,16, // right side of the chamber
91 8, 8, 8, 8, 8, 8,16,
92 16,16,16,16,16, 8,16,
93 16,16,16,16,16, 8,16,
94 0, 8,16,16,16, 8,16,
95 16,16,16,16,16, 8,16,
96 16,16,16,16,16, 8,16,
97 8, 8, 8, 8, 8, 8,16,
98 8, 8, 8, 8, 8, 8,16,
99 8, 8, 8, 8, 8, 8,16, // left side of the chamber
100 8, 8, 8, 8, 8, 8,16,
101 16,16,16,16,16, 8,16,
102 16,16,16,16,16, 8,16,
103 0, 8,16,16,16, 8,16,
104 16,16,16,16,16, 8,16,
105 16,16,16,16,16, 8,16,
106 8, 8, 8, 8, 8, 8,16,
107 8, 8, 8, 8, 8, 8,16};
108
109//----------------------------------------------------------------------
110const Float_t AliMUONTriggerConstants::fgkXcMin[126]=
111{
112 2.,36.,70.,104.,138.,172.,206., // left
113 2.,36.,70.,104.,138.,172.,206.,
114 2.,36.,70.,104.,138.,172.,206.,
115 2.,36.,70.,104.,138.,172.,206.,
116 0.,53.,70.,104.,138.,172.,206.,
117 2.,36.,70.,104.,138.,172.,206.,
118 2.,36.,70.,104.,138.,172.,206.,
119 2.,36.,70.,104.,138.,172.,206.,
120 2.,36.,70.,104.,138.,172.,206.,
121 -36.,-70.,-104.,-138.,-172.,-206.,-257., //right
122 -36.,-70.,-104.,-138.,-172.,-206.,-257.,
123 -36.,-70.,-104.,-138.,-172.,-206.,-257.,
124 -36.,-70.,-104.,-138.,-172.,-206.,-257.,
125 0.,-70.,-104.,-138.,-172.,-206.,-257.,
126 -36.,-70.,-104.,-138.,-172.,-206.,-257.,
127 -36.,-70.,-104.,-138.,-172.,-206.,-257.,
128 -36.,-70.,-104.,-138.,-172.,-206.,-257.,
129 -36.,-70.,-104.,-138.,-172.,-206.,-257.,
130 };
131
132//----------------------------------------------------------------------
133const Float_t AliMUONTriggerConstants::fgkXcMax[126]=
134{
135 36.,70.,104.,138.,172.,206.,257., //left
136 36.,70.,104.,138.,172.,206.,257.,
137 36.,70.,104.,138.,172.,206.,257.,
138 36.,70.,104.,138.,172.,206.,257.,
139 0.,70.,104.,138.,172.,206.,257.,
140 36.,70.,104.,138.,172.,206.,257.,
141 36.,70.,104.,138.,172.,206.,257.,
142 36.,70.,104.,138.,172.,206.,257.,
143 36.,70.,104.,138.,172.,206.,257.,
144 -2.,-36.,-70.,-104.,-138.,-172.,-206., // right
145 -2.,-36.,-70.,-104.,-138.,-172.,-206.,
146 -2.,-36.,-70.,-104.,-138.,-172.,-206.,
147 -2.,-36.,-70.,-104.,-138.,-172.,-206.,
148 0.,-53.,-70.,-104.,-138.,-172.,-206.,
149 -2.,-36.,-70.,-104.,-138.,-172.,-206.,
150 -2.,-36.,-70.,-104.,-138.,-172.,-206.,
151 -2.,-36.,-70.,-104.,-138.,-172.,-206.,
152 -2.,-36.,-70.,-104.,-138.,-172.,-206.,
153};
154
155//----------------------------------------------------------------------
156const Int_t AliMUONTriggerConstants::fgkCircuitId[234]=
157{111, 121, 131, 141, 151, 161, 171,
158 211, 212, 221, 222, 231, 232, 241, 242, 251, 252, 261, 262, 271,
159 311, 312, 321, 322, 331, 332, 341, 342, 351, 352, 361, 362, 371,
160 411, 412, 413, 421, 422, 423, 424, 431, 432, 433, 434, 441, 442,
161 451, 452, 461, 462, 471,
162 521, 522, 523, 524, 531, 532, 533, 534, 541, 542, 551, 552, 561, 562, 571,
163 611, 612, 613, 621, 622, 623, 624, 631, 632, 633, 634, 641, 642,
164 651, 652, 661, 662, 671,
165 711, 712, 721, 722, 731, 732, 741, 742, 751, 752, 761, 762, 771,
166 811, 812, 821, 822, 831, 832, 841, 842, 851, 852, 861, 862, 871,
167 911, 921, 931, 941, 951, 961, 971,
168 -111, -121, -131, -141, -151, -161, -171,
169 -211, -212, -221, -222, -231, -232, -241, -242, -251, -252, -261, -262, -271,
170 -311, -312, -321, -322, -331, -332, -341, -342, -351, -352, -361, -362, -371,
171 -411, -412, -413, -421, -422, -423, -424, -431, -432, -433, -434, -441, -442,
172 -451, -452, -461, -462, -471,
173 -521, -522, -523, -524, -531, -532, -533, -534, -541, -542, -551, -552, -561, -562, -571,
174 -611, -612, -613, -621, -622, -623, -624, -631, -632, -633, -634, -641, -642,
175 -651, -652, -661, -662, -671,
176 -711, -712, -721, -722, -731, -732, -741, -742, -751, -752, -761, -762, -771,
177 -811, -812, -821, -822, -831, -832, -841, -842, -851, -852, -861, -862, -871,
178 -911, -921, -931, -941, -951, -961, -971};
179
180//----------------------------------------------------------------------
181const Float_t AliMUONTriggerConstants::fgkStripWidth[3]={1.0625, 2.125, 4.25};
182
183//----------------------------------------------------------------------
184const Float_t AliMUONTriggerConstants::fgkStripLength[4]={17., 34., 51., 68.};
185
186//----------------------------------------------------------------------
187// methods which returns public static const data
188//----------------------------------------------------------------------
189Int_t AliMUONTriggerConstants::Nmodule()
190{
191// returns fgkNmodule
192 return fgkNmodule;
193}
194//----------------------------------------------------------------------
195Int_t AliMUONTriggerConstants::ModuleId(Int_t imodule)
196{
197// returns fgkModuleId
198 return fgkModuleId[imodule];
199}
200//----------------------------------------------------------------------
201Int_t AliMUONTriggerConstants::NstripX(Int_t imodule)
202{
203// returns fgkNstripX
204 return fgkNstripX[imodule];
205}
206//----------------------------------------------------------------------
207Int_t AliMUONTriggerConstants::NstripY(Int_t imodule)
208{
209// return fgkNstripY
210 return fgkNstripY[imodule];
211}
212//----------------------------------------------------------------------
213Float_t AliMUONTriggerConstants::XcMin(Int_t imodule)
214{
215// returns fgkXcMin
216 return fgkXcMin[imodule];
217}
218//----------------------------------------------------------------------
219Float_t AliMUONTriggerConstants::XcMax(Int_t imodule)
220{
221// returns fgkXcMax
222 return fgkXcMax[imodule];
223}
224//----------------------------------------------------------------------
225Int_t AliMUONTriggerConstants::CircuitId(Int_t icircuit)
226{
227// returns fgkCircuitId
228 return fgkCircuitId[icircuit];
229}
230//----------------------------------------------------------------------
231Float_t AliMUONTriggerConstants::StripWidth(Int_t istrip)
232{
233// returns fgkStripWidth
234 return fgkStripWidth[istrip];
235}
236//----------------------------------------------------------------------
237Float_t AliMUONTriggerConstants::StripLength(Int_t istrip)
238{
239// returns fgkStripLength
240 return fgkStripLength[istrip];
241}
242
243
244
245
246
247
248
249
250