]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONTriggerConstants.cxx
AliMUONHitMap and AliMUONSegmentation moved to STEER as AliHitMap and AliSegmentation
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerConstants.cxx
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 /*
17 $Log$
18 */
19
20 #include "AliMUONTriggerConstants.h"
21
22 ClassImp(AliMUONTriggerConstants)
23
24 //----------------------------------------------------------------------
25 AliMUONTriggerConstants::AliMUONTriggerConstants()
26 {
27 // constructor
28     ;
29 }
30 //----------------------------------------------------------------------
31 AliMUONTriggerConstants::~AliMUONTriggerConstants()
32 {
33 // destructor
34     ;
35 }
36
37 //----------------------------------------------------------------------
38 const Int_t AliMUONTriggerConstants::fgNmodule = 126;
39
40 //----------------------------------------------------------------------
41 // conv : line-column (line : from top to bottom, column : from left to right)
42 const Int_t AliMUONTriggerConstants::fgModuleId[126] = 
43 {11,12,13,14,15,16,17,         // right side of the chamber
44  21,22,23,24,25,26,27,
45  31,32,33,34,35,36,37,
46  41,42,43,44,45,46,47,
47  51,52,53,54,55,56,57,
48  61,62,63,64,65,66,67,
49  71,72,73,74,75,76,77,
50  81,82,83,84,85,86,87,
51  91,92,93,94,95,96,97,   
52  -11,-12,-13,-14,-15,-16,-17,  // right side of chamber
53  -21,-22,-23,-24,-25,-26,-27,
54  -31,-32,-33,-34,-35,-36,-37,
55  -41,-42,-43,-44,-45,-46,-47,
56  -51,-52,-53,-54,-55,-56,-57,
57  -61,-62,-63,-64,-65,-66,-67,
58  -71,-72,-73,-74,-75,-76,-77,
59  -81,-82,-83,-84,-85,-86,-87,
60  -91,-92,-93,-94,-95,-96,-97};
61
62 //----------------------------------------------------------------------
63 const Int_t AliMUONTriggerConstants::fgNstripX[126]=
64 {16,16,16,16,16,16,16,  // right side of the chamber 
65  32,32,32,32,32,32,16,
66  32,32,32,32,32,32,16,
67  48,64,64,32,32,32,16,
68  0,64,64,32,32,32,16,
69  48,64,64,32,32,32,16,
70  32,32,32,32,32,32,16,
71  32,32,32,32,32,32,16,
72  16,16,16,16,16,16,16,  // left side of the chamber
73  16,16,16,16,16,16,16,
74  32,32,32,32,32,32,16,
75  32,32,32,32,32,32,16,
76  48,64,64,32,32,32,16,
77  0,64,64,32,32,32,16,
78  48,64,64,32,32,32,16,
79  32,32,32,32,32,32,16,
80  32,32,32,32,32,32,16,
81  16,16,16,16,16,16,16};
82
83 //----------------------------------------------------------------------  
84 const Int_t AliMUONTriggerConstants::fgNstripY[126]=
85 { 8, 8, 8, 8, 8, 8,16,  // right side of the chamber
86   8, 8, 8, 8, 8, 8,16,
87   16,16,16,16,16, 8,16,
88   16,16,16,16,16, 8,16,
89   0, 8,16,16,16, 8,16,
90   16,16,16,16,16, 8,16,
91   16,16,16,16,16, 8,16,
92   8, 8, 8, 8, 8, 8,16,
93   8, 8, 8, 8, 8, 8,16,  
94   8, 8, 8, 8, 8, 8,16,  // left side of the chamber
95   8, 8, 8, 8, 8, 8,16,
96   16,16,16,16,16, 8,16,
97   16,16,16,16,16, 8,16,
98   0, 8,16,16,16, 8,16,
99   16,16,16,16,16, 8,16,
100   16,16,16,16,16, 8,16,
101   8, 8, 8, 8, 8, 8,16,
102   8, 8, 8, 8, 8, 8,16};
103
104 //----------------------------------------------------------------------  
105 const Float_t AliMUONTriggerConstants::fgXcMin[126]=
106 {0.,34.,68.,102.,136.,170.,204., // right
107  0.,34.,68.,102.,136.,170.,204.,
108  0.,34.,68.,102.,136.,170.,204.,
109  0.,34.,68.,102.,136.,170.,204.,
110  0.,51.,68.,102.,136.,170.,204.,
111  0.,34.,68.,102.,136.,170.,204.,
112  0.,34.,68.,102.,136.,170.,204.,
113  0.,34.,68.,102.,136.,170.,204.,
114  0.,34.,68.,102.,136.,170.,204.,
115  -34.,-68.,-102.,-136.,-170.,-204.,-272., //left
116  -34.,-68.,-102.,-136.,-170.,-204.,-272.,
117  -34.,-68.,-102.,-136.,-170.,-204.,-272.,
118  -34.,-68.,-102.,-136.,-170.,-204.,-272.,
119  0.,-68.,-102.,-136.,-170.,-204.,-272.,
120  -34.,-68.,-102.,-136.,-170.,-204.,-272.,
121  -34.,-68.,-102.,-136.,-170.,-204.,-272.,
122  -34.,-68.,-102.,-136.,-170.,-204.,-272.,
123  -34.,-68.,-102.,-136.,-170.,-204.,-272.};
124
125 //----------------------------------------------------------------------  
126 const Float_t AliMUONTriggerConstants::fgXcMax[126]=
127 {34.,68.,102.,136.,170.,204.,272., //right
128  34.,68.,102.,136.,170.,204.,272.,
129  34.,68.,102.,136.,170.,204.,272.,
130  34.,68.,102.,136.,170.,204.,272.,
131  0.,68.,102.,136.,170.,204.,272.,
132  34.,68.,102.,136.,170.,204.,272.,
133  34.,68.,102.,136.,170.,204.,272.,
134  34.,68.,102.,136.,170.,204.,272.,
135  34.,68.,102.,136.,170.,204.,272., 
136  0.,-34.,-68.,-102.,-136.,-170.,-204., // left
137  0.,-34.,-68.,-102.,-136.,-170.,-204.,
138  0.,-34.,-68.,-102.,-136.,-170.,-204.,
139  0.,-34.,-68.,-102.,-136.,-170.,-204.,
140  0.,-51.,-68.,-102.,-136.,-170.,-204.,
141  0.,-34.,-68.,-102.,-136.,-170.,-204.,
142  0.,-34.,-68.,-102.,-136.,-170.,-204.,
143  0.,-34.,-68.,-102.,-136.,-170.,-204.,
144  0.,-34.,-68.,-102.,-136.,-170.,-204.};
145
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};
170
171
172
173 //----------------------------------------------------------------------
174 // methods which returns public static const data
175 //----------------------------------------------------------------------
176 Int_t AliMUONTriggerConstants::Nmodule()
177 {
178 // returns fgNmodule
179     return fgNmodule;    
180 }
181 //----------------------------------------------------------------------
182 Int_t AliMUONTriggerConstants::ModuleId(Int_t imodule)
183 {
184 // returns fgModuleId
185     return fgModuleId[imodule];
186 }
187 //----------------------------------------------------------------------
188 Int_t AliMUONTriggerConstants::NstripX(Int_t imodule) 
189 {
190 // returns fgNstripX
191     return fgNstripX[imodule];
192 }
193 //----------------------------------------------------------------------
194 Int_t AliMUONTriggerConstants::NstripY(Int_t imodule)
195 {
196 // return fgNstripY
197     return fgNstripY[imodule];
198 }
199 //----------------------------------------------------------------------
200 Float_t AliMUONTriggerConstants::XcMin(Int_t imodule)
201 {
202 // returns fgXcMin
203     return fgXcMin[imodule];
204 }
205 //----------------------------------------------------------------------
206 Float_t AliMUONTriggerConstants::XcMax(Int_t imodule)
207 {
208 // returns fgXcMax
209     return fgXcMax[imodule];
210 }
211 //----------------------------------------------------------------------
212 Int_t AliMUONTriggerConstants::CircuitId(Int_t icircuit)
213 {
214 // returns fgCircuitId
215     return fgCircuitId[icircuit];
216 }
217
218
219
220
221
222
223
224
225
226
227