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 #include "AliMUONTriggerConstants.h"
20 ClassImp(AliMUONTriggerConstants)
22 //----------------------------------------------------------------------
23 AliMUONTriggerConstants::AliMUONTriggerConstants()
28 //----------------------------------------------------------------------
29 AliMUONTriggerConstants::~AliMUONTriggerConstants()
35 //----------------------------------------------------------------------
36 const Int_t AliMUONTriggerConstants::fgNmodule = 126;
38 //----------------------------------------------------------------------
39 // conv : line-column (line : from top to bottom, column : from left to right)
40 const Int_t AliMUONTriggerConstants::fgModuleId[126] =
41 {11,12,13,14,15,16,17, // right side of the chamber
50 -11,-12,-13,-14,-15,-16,-17, // right side of chamber
51 -21,-22,-23,-24,-25,-26,-27,
52 -31,-32,-33,-34,-35,-36,-37,
53 -41,-42,-43,-44,-45,-46,-47,
54 -51,-52,-53,-54,-55,-56,-57,
55 -61,-62,-63,-64,-65,-66,-67,
56 -71,-72,-73,-74,-75,-76,-77,
57 -81,-82,-83,-84,-85,-86,-87,
58 -91,-92,-93,-94,-95,-96,-97};
60 //----------------------------------------------------------------------
61 const Int_t AliMUONTriggerConstants::fgNstripX[126]=
62 {16,16,16,16,16,16,16, // right side of the chamber
70 16,16,16,16,16,16,16, // left side of the chamber
79 16,16,16,16,16,16,16};
81 //----------------------------------------------------------------------
82 const Int_t AliMUONTriggerConstants::fgNstripY[126]=
83 { 8, 8, 8, 8, 8, 8,16, // right side of the chamber
92 8, 8, 8, 8, 8, 8,16, // left side of the chamber
100 8, 8, 8, 8, 8, 8,16};
102 //----------------------------------------------------------------------
103 const Float_t AliMUONTriggerConstants::fgXcMin[126]=
104 {-36.,-70.,-104.,-138.,-172.,-206.,-274., //right
105 -36.,-70.,-104.,-138.,-172.,-206.,-274.,
106 -36.,-70.,-104.,-138.,-172.,-206.,-274.,
107 -36.,-70.,-104.,-138.,-172.,-206.,-274.,
108 0.,-70.,-104.,-138.,-172.,-206.,-274.,
109 -36.,-70.,-104.,-138.,-172.,-206.,-274.,
110 -36.,-70.,-104.,-138.,-172.,-206.,-274.,
111 -36.,-70.,-104.,-138.,-172.,-206.,-274.,
112 -36.,-70.,-104.,-138.,-172.,-206.,-274.,
113 2.,36.,70.,104.,138.,172.,206., // left
114 2.,36.,70.,104.,138.,172.,206.,
115 2.,36.,70.,104.,138.,172.,206.,
116 2.,36.,70.,104.,138.,172.,206.,
117 0.,53.,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 2.,36.,70.,104.,138.,172.,206.,
124 //----------------------------------------------------------------------
125 const Float_t AliMUONTriggerConstants::fgXcMax[126]=
126 {-2.,-36.,-70.,-104.,-138.,-172.,-206., // right
127 -2.,-36.,-70.,-104.,-138.,-172.,-206.,
128 -2.,-36.,-70.,-104.,-138.,-172.,-206.,
129 -2.,-36.,-70.,-104.,-138.,-172.,-206.,
130 0.,-53.,-70.,-104.,-138.,-172.,-206.,
131 -2.,-36.,-70.,-104.,-138.,-172.,-206.,
132 -2.,-36.,-70.,-104.,-138.,-172.,-206.,
133 -2.,-36.,-70.,-104.,-138.,-172.,-206.,
134 -2.,-36.,-70.,-104.,-138.,-172.,-206.,
135 36.,70.,104.,138.,172.,206.,274., //left
136 36.,70.,104.,138.,172.,206.,274.,
137 36.,70.,104.,138.,172.,206.,274.,
138 36.,70.,104.,138.,172.,206.,274.,
139 0.,70.,104.,138.,172.,206.,274.,
140 36.,70.,104.,138.,172.,206.,274.,
141 36.,70.,104.,138.,172.,206.,274.,
142 36.,70.,104.,138.,172.,206.,274.,
143 36.,70.,104.,138.,172.,206.,274.,
146 //----------------------------------------------------------------------
147 const Int_t AliMUONTriggerConstants::fgCircuitId[234]=
148 {111, 121, 131, 141, 151, 161, 171,
149 211, 212, 221, 222, 231, 232, 241, 242, 251, 252, 261, 262, 271,
150 311, 312, 321, 322, 331, 332, 341, 342, 351, 352, 361, 362, 371,
151 411, 412, 413, 421, 422, 423, 424, 431, 432, 433, 434, 441, 442,
152 451, 452, 461, 462, 471,
153 521, 522, 523, 524, 531, 532, 533, 534, 541, 542, 551, 552, 561, 562, 571,
154 611, 612, 613, 621, 622, 623, 624, 631, 632, 633, 634, 641, 642,
155 651, 652, 661, 662, 671,
156 711, 712, 721, 722, 731, 732, 741, 742, 751, 752, 761, 762, 771,
157 811, 812, 821, 822, 831, 832, 841, 842, 851, 852, 861, 862, 871,
158 911, 921, 931, 941, 951, 961, 971,
159 -111, -121, -131, -141, -151, -161, -171,
160 -211, -212, -221, -222, -231, -232, -241, -242, -251, -252, -261, -262, -271,
161 -311, -312, -321, -322, -331, -332, -341, -342, -351, -352, -361, -362, -371,
162 -411, -412, -413, -421, -422, -423, -424, -431, -432, -433, -434, -441, -442,
163 -451, -452, -461, -462, -471,
164 -521, -522, -523, -524, -531, -532, -533, -534, -541, -542, -551, -552, -561, -562, -571,
165 -611, -612, -613, -621, -622, -623, -624, -631, -632, -633, -634, -641, -642,
166 -651, -652, -661, -662, -671,
167 -711, -712, -721, -722, -731, -732, -741, -742, -751, -752, -761, -762, -771,
168 -811, -812, -821, -822, -831, -832, -841, -842, -851, -852, -861, -862, -871,
169 -911, -921, -931, -941, -951, -961, -971};
173 //----------------------------------------------------------------------
174 // methods which returns public static const data
175 //----------------------------------------------------------------------
176 Int_t AliMUONTriggerConstants::Nmodule()
181 //----------------------------------------------------------------------
182 Int_t AliMUONTriggerConstants::ModuleId(Int_t imodule)
184 // returns fgModuleId
185 return fgModuleId[imodule];
187 //----------------------------------------------------------------------
188 Int_t AliMUONTriggerConstants::NstripX(Int_t imodule)
191 return fgNstripX[imodule];
193 //----------------------------------------------------------------------
194 Int_t AliMUONTriggerConstants::NstripY(Int_t imodule)
197 return fgNstripY[imodule];
199 //----------------------------------------------------------------------
200 Float_t AliMUONTriggerConstants::XcMin(Int_t imodule)
203 return fgXcMin[imodule];
205 //----------------------------------------------------------------------
206 Float_t AliMUONTriggerConstants::XcMax(Int_t imodule)
209 return fgXcMax[imodule];
211 //----------------------------------------------------------------------
212 Int_t AliMUONTriggerConstants::CircuitId(Int_t icircuit)
214 // returns fgCircuitId
215 return fgCircuitId[icircuit];