]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONTriggerConstants.cxx
Transition to NewIO
[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 /* $Id$ */
17
18 #include "AliMUONTriggerConstants.h"
19
20 ClassImp(AliMUONTriggerConstants)
21
22 //----------------------------------------------------------------------
23 AliMUONTriggerConstants::AliMUONTriggerConstants()
24 {
25 // constructor
26     ;
27 }
28 //----------------------------------------------------------------------
29 AliMUONTriggerConstants::~AliMUONTriggerConstants()
30 {
31 // destructor
32     ;
33 }
34
35 //----------------------------------------------------------------------
36 const Int_t AliMUONTriggerConstants::fgNmodule = 126;
37
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
42  21,22,23,24,25,26,27,
43  31,32,33,34,35,36,37,
44  41,42,43,44,45,46,47,
45  51,52,53,54,55,56,57,
46  61,62,63,64,65,66,67,
47  71,72,73,74,75,76,77,
48  81,82,83,84,85,86,87,
49  91,92,93,94,95,96,97,   
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};
59
60 //----------------------------------------------------------------------
61 const Int_t AliMUONTriggerConstants::fgNstripX[126]=
62 {16,16,16,16,16,16,16,  // right side of the chamber 
63  32,32,32,32,32,32,16,
64  32,32,32,32,32,32,16,
65  48,64,64,32,32,32,16,
66  0,64,64,32,32,32,16,
67  48,64,64,32,32,32,16,
68  32,32,32,32,32,32,16,
69  32,32,32,32,32,32,16,
70  16,16,16,16,16,16,16,  // left side of the chamber
71  16,16,16,16,16,16,16,
72  32,32,32,32,32,32,16,
73  32,32,32,32,32,32,16,
74  48,64,64,32,32,32,16,
75  0,64,64,32,32,32,16,
76  48,64,64,32,32,32,16,
77  32,32,32,32,32,32,16,
78  32,32,32,32,32,32,16,
79  16,16,16,16,16,16,16};
80
81 //----------------------------------------------------------------------  
82 const Int_t AliMUONTriggerConstants::fgNstripY[126]=
83 { 8, 8, 8, 8, 8, 8,16,  // right side of the chamber
84   8, 8, 8, 8, 8, 8,16,
85   16,16,16,16,16, 8,16,
86   16,16,16,16,16, 8,16,
87   0, 8,16,16,16, 8,16,
88   16,16,16,16,16, 8,16,
89   16,16,16,16,16, 8,16,
90   8, 8, 8, 8, 8, 8,16,
91   8, 8, 8, 8, 8, 8,16,  
92   8, 8, 8, 8, 8, 8,16,  // left side of the chamber
93   8, 8, 8, 8, 8, 8,16,
94   16,16,16,16,16, 8,16,
95   16,16,16,16,16, 8,16,
96   0, 8,16,16,16, 8,16,
97   16,16,16,16,16, 8,16,
98   16,16,16,16,16, 8,16,
99   8, 8, 8, 8, 8, 8,16,
100   8, 8, 8, 8, 8, 8,16};
101
102 //----------------------------------------------------------------------  
103 const Float_t AliMUONTriggerConstants::fgXcMin[126]=
104 {2.,36.,70.,104.,138.,172.,206., // right
105  2.,36.,70.,104.,138.,172.,206.,
106  2.,36.,70.,104.,138.,172.,206.,
107  2.,36.,70.,104.,138.,172.,206.,
108  0.,53.,70.,104.,138.,172.,206.,
109  2.,36.,70.,104.,138.,172.,206.,
110  2.,36.,70.,104.,138.,172.,206.,
111  2.,36.,70.,104.,138.,172.,206.,
112  2.,36.,70.,104.,138.,172.,206.,
113  -36.,-70.,-104.,-138.,-172.,-206.,-274., //left
114  -36.,-70.,-104.,-138.,-172.,-206.,-274.,
115  -36.,-70.,-104.,-138.,-172.,-206.,-274.,
116  -36.,-70.,-104.,-138.,-172.,-206.,-274.,
117    0.,-70.,-104.,-138.,-172.,-206.,-274.,
118  -36.,-70.,-104.,-138.,-172.,-206.,-274.,
119  -36.,-70.,-104.,-138.,-172.,-206.,-274.,
120  -36.,-70.,-104.,-138.,-172.,-206.,-274.,
121  -36.,-70.,-104.,-138.,-172.,-206.,-274.};
122
123 //----------------------------------------------------------------------  
124 const Float_t AliMUONTriggerConstants::fgXcMax[126]=
125 {36.,70.,104.,138.,172.,206.,274., //right
126  36.,70.,104.,138.,172.,206.,274.,
127  36.,70.,104.,138.,172.,206.,274.,
128  36.,70.,104.,138.,172.,206.,274.,
129   0.,70.,104.,138.,172.,206.,274.,
130  36.,70.,104.,138.,172.,206.,274.,
131  36.,70.,104.,138.,172.,206.,274.,
132  36.,70.,104.,138.,172.,206.,274.,
133  36.,70.,104.,138.,172.,206.,274., 
134  -2.,-36.,-70.,-104.,-138.,-172.,-206., // left
135  -2.,-36.,-70.,-104.,-138.,-172.,-206.,
136  -2.,-36.,-70.,-104.,-138.,-172.,-206.,
137  -2.,-36.,-70.,-104.,-138.,-172.,-206.,
138   0.,-53.,-70.,-104.,-138.,-172.,-206.,
139  -2.,-36.,-70.,-104.,-138.,-172.,-206.,
140  -2.,-36.,-70.,-104.,-138.,-172.,-206.,
141  -2.,-36.,-70.,-104.,-138.,-172.,-206.,
142  -2.,-36.,-70.,-104.,-138.,-172.,-206.};
143
144 //----------------------------------------------------------------------  
145 const Int_t AliMUONTriggerConstants::fgCircuitId[234]=
146 {111, 121, 131, 141, 151, 161, 171,
147  211, 212, 221, 222, 231, 232, 241, 242, 251, 252, 261, 262, 271,
148  311, 312, 321, 322, 331, 332, 341, 342, 351, 352, 361, 362, 371,
149  411, 412, 413, 421, 422, 423, 424, 431, 432, 433, 434, 441, 442, 
150  451, 452, 461, 462, 471,
151  521, 522, 523, 524, 531, 532, 533, 534, 541, 542, 551, 552, 561, 562, 571, 
152  611, 612, 613, 621, 622, 623, 624, 631, 632, 633, 634, 641, 642,
153  651, 652, 661, 662, 671,
154  711, 712, 721, 722, 731, 732, 741, 742, 751, 752, 761, 762, 771,
155  811, 812, 821, 822, 831, 832, 841, 842, 851, 852, 861, 862, 871,
156  911, 921, 931, 941, 951, 961, 971,
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
169
170
171 //----------------------------------------------------------------------
172 // methods which returns public static const data
173 //----------------------------------------------------------------------
174 Int_t AliMUONTriggerConstants::Nmodule()
175 {
176 // returns fgNmodule
177     return fgNmodule;    
178 }
179 //----------------------------------------------------------------------
180 Int_t AliMUONTriggerConstants::ModuleId(Int_t imodule)
181 {
182 // returns fgModuleId
183     return fgModuleId[imodule];
184 }
185 //----------------------------------------------------------------------
186 Int_t AliMUONTriggerConstants::NstripX(Int_t imodule) 
187 {
188 // returns fgNstripX
189     return fgNstripX[imodule];
190 }
191 //----------------------------------------------------------------------
192 Int_t AliMUONTriggerConstants::NstripY(Int_t imodule)
193 {
194 // return fgNstripY
195     return fgNstripY[imodule];
196 }
197 //----------------------------------------------------------------------
198 Float_t AliMUONTriggerConstants::XcMin(Int_t imodule)
199 {
200 // returns fgXcMin
201     return fgXcMin[imodule];
202 }
203 //----------------------------------------------------------------------
204 Float_t AliMUONTriggerConstants::XcMax(Int_t imodule)
205 {
206 // returns fgXcMax
207     return fgXcMax[imodule];
208 }
209 //----------------------------------------------------------------------
210 Int_t AliMUONTriggerConstants::CircuitId(Int_t icircuit)
211 {
212 // returns fgCircuitId
213     return fgCircuitId[icircuit];
214 }
215
216
217
218
219
220
221
222
223
224
225