StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EEmcSmdMap.cxx
1 #include "EEmcSmdMap.h"
2 #include "EEmcSmd2SmdMapItem.h"
3 
5 
6 ClassImp(EEmcSmdMap);
7 
8 EEmcSmdMap *EEmcSmdMap::sInstance = 0;
9 
10 // Returns the one and only instance of this class
11 EEmcSmdMap *EEmcSmdMap::instance() {
12  sInstance = (sInstance != 0) ? sInstance : new EEmcSmdMap();
13  return sInstance;
14 }
15 
16 // Constructor
17 EEmcSmdMap::EEmcSmdMap()
18  : TObject()
19 {
20 
21  Init();
22 
23 }
24 
26 
27 void EEmcSmdMap::getRangeSmd2Smd( Int_t isector, Int_t iuv, Int_t istrip,
28  Int_t &juv, Int_t &jMin, Int_t &jMax ) const {
29 
30  // printf(" asking for isec=%d , plane=%c, istrip=%d\n",isector, 'U'+iuv,istrip);
31  //printf("p=%p\n",eemcStrip2StripMapItem[iuv]);
32 
33  assert(isector>=0 && isector<kEEmcNumSectors);
34  assert(iuv>=0 && iuv<kEEmcNumSmdUVs);
35  assert(istrip>=0 && istrip<kEEmcNumStrips);
36  jMin = mSmd2SmdMap[isector][iuv][istrip].iMin;
37  jMax = mSmd2SmdMap[isector][iuv][istrip].iMax;
38  juv=1-iuv;
39 }
40 
42 
43 void EEmcSmdMap::Init() {
44  InitStrip2Strip();
45 
46  EEmcStripMapItem stripData[720] = {
47 
48  { "01TA01", 0, 17, 45, 67 },
49  { "01TA02", 4, 27, 58, 82 },
50  { "01TA03", 12, 38, 72, 98 },
51  { "01TA04", 22, 50, 88, 115 },
52  { "01TA05", 31, 62, 104, 133 },
53  { "01TA06", 42, 75, 121, 152 },
54  { "01TA07", 53, 88, 138, 171 },
55  { "01TA08", 64, 102, 156, 192 },
56  { "01TA09", 76, 117, 176, 214 },
57  { "01TA10", 89, 132, 196, 237 },
58  { "01TA11", 102, 148, 217, 260 },
59  { "01TA12", 115, 165, 239, 285 },
60 
61  { "01TB01", 9, 30, 35, 57 },
62  { "01TB02", 18, 42, 47, 71 },
63  { "01TB03", 29, 55, 60, 86 },
64  { "01TB04", 39, 68, 74, 102 },
65  { "01TB05", 51, 82, 89, 119 },
66  { "01TB06", 63, 96, 104, 136 },
67  { "01TB07", 76, 111, 120, 155 },
68  { "01TB08", 90, 128, 137, 174 },
69  { "01TB09", 103, 145, 155, 195 },
70  { "01TB10", 119, 162, 174, 216 },
71  { "01TB11", 134, 180, 193, 238 },
72  { "01TB12", 150, 200, 213, 261 },
73 
74  { "01TC01", 21, 43, 24, 46 },
75  { "01TC02", 32, 56, 35, 59 },
76  { "01TC03", 44, 70, 46, 73 },
77  { "01TC04", 57, 85, 59, 87 },
78  { "01TC05", 69, 100, 72, 103 },
79  { "01TC06", 84, 116, 86, 119 },
80  { "01TC07", 98, 133, 100, 136 },
81  { "01TC08", 113, 151, 116, 153 },
82  { "01TC09", 129, 170, 132, 172 },
83  { "01TC10", 146, 189, 149, 192 },
84  { "01TC11", 164, 209, 166, 212 },
85  { "01TC12", 182, 231, 184, 233 },
86 
87  { "01TD01", 32, 54, 11, 33 },
88  { "01TD02", 44, 68, 21, 45 },
89  { "01TD03", 58, 83, 31, 57 },
90  { "01TD04", 71, 100, 42, 70 },
91  { "01TD05", 86, 116, 54, 84 },
92  { "01TD06", 101, 134, 66, 99 },
93  { "01TD07", 118, 152, 79, 114 },
94  { "01TD08", 134, 172, 92, 130 },
95  { "01TD09", 152, 192, 106, 147 },
96  { "01TD10", 171, 213, 121, 165 },
97  { "01TD11", 191, 235, 136, 183 },
98  { "01TD12", 211, 259, 152, 202 },
99 
100  { "01TE01", 42, 64, 0, 20 },
101  { "01TE02", 56, 79, 6, 30 },
102  { "01TE03", 70, 95, 15, 41 },
103  { "01TE04", 85, 112, 24, 52 },
104  { "01TE05", 101, 130, 34, 65 },
105  { "01TE06", 118, 149, 44, 77 },
106  { "01TE07", 135, 169, 55, 91 },
107  { "01TE08", 154, 190, 67, 105 },
108  { "01TE09", 173, 211, 79, 119 },
109  { "01TE10", 193, 234, 91, 135 },
110  { "01TE11", 215, 258, 104, 151 },
111  { "01TE12", 237, 283, 118, 168 },
112 
113  { "02TA01", 0, 19, 43, 65 },
114  { "02TA02", 6, 30, 57, 80 },
115  { "02TA03", 14, 41, 71, 96 },
116  { "02TA04", 24, 52, 86, 113 },
117  { "02TA05", 34, 64, 102, 131 },
118  { "02TA06", 44, 77, 119, 150 },
119  { "02TA07", 55, 90, 136, 170 },
120  { "02TA08", 66, 104, 154, 190 },
121  { "02TA09", 78, 119, 174, 212 },
122  { "02TA10", 91, 134, 194, 235 },
123  { "02TA11", 104, 150, 215, 258 },
124  { "02TA12", 117, 167, 237, 283 },
125 
126  { "02TB01", 11, 33, 34, 55 },
127  { "02TB02", 20, 45, 46, 69 },
128  { "02TB03", 31, 57, 59, 84 },
129  { "02TB04", 42, 70, 72, 100 },
130  { "02TB05", 53, 84, 87, 117 },
131  { "02TB06", 65, 99, 102, 135 },
132  { "02TB07", 79, 114, 119, 153 },
133  { "02TB08", 92, 130, 136, 173 },
134  { "02TB09", 106, 147, 153, 193 },
135  { "02TB10", 121, 164, 172, 214 },
136  { "02TB11", 136, 183, 191, 236 },
137  { "02TB12", 152, 202, 212, 259 },
138 
139  { "02TC01", 23, 45, 22, 44 },
140  { "02TC02", 34, 59, 33, 57 },
141  { "02TC03", 46, 72, 45, 71 },
142  { "02TC04", 59, 87, 57, 86 },
143  { "02TC05", 72, 102, 71, 101 },
144  { "02TC06", 86, 119, 84, 117 },
145  { "02TC07", 100, 135, 99, 134 },
146  { "02TC08", 115, 153, 114, 152 },
147  { "02TC09", 132, 172, 130, 170 },
148  { "02TC10", 148, 191, 147, 190 },
149  { "02TC11", 166, 212, 164, 210 },
150  { "02TC12", 184, 233, 183, 231 },
151 
152  { "02TD01", 35, 57, 9, 32 },
153  { "02TD02", 47, 71, 20, 43 },
154  { "02TD03", 60, 86, 30, 56 },
155  { "02TD04", 74, 102, 41, 69 },
156  { "02TD05", 88, 118, 52, 83 },
157  { "02TD06", 104, 136, 64, 97 },
158  { "02TD07", 120, 154, 77, 113 },
159  { "02TD08", 137, 174, 90, 129 },
160  { "02TD09", 155, 194, 105, 145 },
161  { "02TD10", 173, 215, 119, 163 },
162  { "02TD11", 193, 237, 134, 181 },
163  { "02TD12", 213, 260, 150, 200 },
164 
165  { "02TE01", 45, 66, 0, 18 },
166  { "02TE02", 58, 81, 4, 28 },
167  { "02TE03", 72, 98, 13, 39 },
168  { "02TE04", 87, 115, 23, 51 },
169  { "02TE05", 103, 133, 33, 63 },
170  { "02TE06", 120, 151, 43, 75 },
171  { "02TE07", 137, 171, 53, 89 },
172  { "02TE08", 156, 191, 65, 103 },
173  { "02TE09", 175, 213, 77, 118 },
174  { "02TE10", 196, 236, 89, 133 },
175  { "02TE11", 217, 260, 103, 149 },
176  { "02TE12", 239, 285, 116, 166 },
177 
178  { "03TA01", 0, 18, 43, 64 },
179  { "03TA02", 5, 29, 56, 80 },
180  { "03TA03", 14, 40, 70, 96 },
181  { "03TA04", 23, 51, 86, 113 },
182  { "03TA05", 33, 63, 101, 131 },
183  { "03TA06", 43, 76, 118, 150 },
184  { "03TA07", 54, 90, 136, 170 },
185  { "03TA08", 66, 104, 154, 190 },
186  { "03TA09", 77, 119, 174, 212 },
187  { "03TA10", 90, 134, 194, 235 },
188  { "03TA11", 103, 150, 215, 258 },
189  { "03TA12", 117, 167, 237, 283 },
190 
191  { "03TB01", 10, 32, 33, 55 },
192  { "03TB02", 20, 44, 45, 69 },
193  { "03TB03", 30, 57, 58, 84 },
194  { "03TB04", 41, 70, 72, 100 },
195  { "03TB05", 53, 84, 87, 117 },
196  { "03TB06", 65, 98, 102, 135 },
197  { "03TB07", 78, 113, 118, 153 },
198  { "03TB08", 91, 129, 135, 172 },
199  { "03TB09", 105, 146, 153, 192 },
200  { "03TB10", 120, 164, 171, 214 },
201  { "03TB11", 136, 182, 191, 236 },
202  { "03TB12", 152, 202, 211, 259 },
203 
204  { "03TC01", 22, 45, 21, 44 },
205  { "03TC02", 34, 58, 33, 56 },
206  { "03TC03", 45, 72, 44, 70 },
207  { "03TC04", 58, 86, 57, 85 },
208  { "03TC05", 71, 102, 70, 100 },
209  { "03TC06", 85, 118, 84, 117 },
210  { "03TC07", 100, 135, 98, 134 },
211  { "03TC08", 115, 153, 114, 152 },
212  { "03TC09", 131, 171, 130, 170 },
213  { "03TC10", 148, 191, 146, 190 },
214  { "03TC11", 166, 211, 164, 210 },
215  { "03TC12", 184, 233, 182, 231 },
216 
217  { "03TD01", 34, 56, 9, 31 },
218  { "03TD02", 46, 70, 19, 42 },
219  { "03TD03", 59, 85, 29, 55 },
220  { "03TD04", 73, 101, 40, 69 },
221  { "03TD05", 88, 118, 51, 82 },
222  { "03TD06", 103, 136, 64, 97 },
223  { "03TD07", 120, 154, 77, 112 },
224  { "03TD08", 136, 173, 90, 128 },
225  { "03TD09", 154, 194, 104, 145 },
226  { "03TD10", 173, 215, 119, 163 },
227  { "03TD11", 193, 237, 134, 181 },
228  { "03TD12", 213, 261, 150, 200 },
229 
230  { "03TE01", 44, 66, 0, 17 },
231  { "03TE02", 57, 81, 4, 27 },
232  { "03TE03", 71, 97, 12, 39 },
233  { "03TE04", 87, 114, 22, 50 },
234  { "03TE05", 103, 132, 32, 62 },
235  { "03TE06", 119, 151, 42, 75 },
236  { "03TE07", 137, 171, 53, 89 },
237  { "03TE08", 156, 192, 64, 103 },
238  { "03TE09", 175, 213, 77, 117 },
239  { "03TE10", 195, 236, 89, 133 },
240  { "03TE11", 217, 260, 102, 149 },
241  { "03TE12", 239, 282, 116, 166 },
242 
243  { "04TA01", 0, 17, 45, 67 },
244  { "04TA02", 4, 27, 58, 82 },
245  { "04TA03", 12, 38, 72, 98 },
246  { "04TA04", 22, 50, 88, 115 },
247  { "04TA05", 31, 62, 104, 133 },
248  { "04TA06", 42, 75, 121, 152 },
249  { "04TA07", 53, 88, 138, 171 },
250  { "04TA08", 64, 102, 156, 192 },
251  { "04TA09", 76, 117, 176, 214 },
252  { "04TA10", 89, 132, 196, 237 },
253  { "04TA11", 102, 148, 217, 260 },
254  { "04TA12", 115, 165, 239, 282 },
255 
256  { "04TB01", 9, 30, 35, 57 },
257  { "04TB02", 18, 42, 47, 71 },
258  { "04TB03", 29, 55, 60, 86 },
259  { "04TB04", 39, 68, 74, 102 },
260  { "04TB05", 51, 82, 89, 119 },
261  { "04TB06", 63, 96, 104, 136 },
262  { "04TB07", 76, 111, 120, 155 },
263  { "04TB08", 90, 128, 137, 174 },
264  { "04TB09", 103, 145, 155, 195 },
265  { "04TB10", 119, 162, 174, 216 },
266  { "04TB11", 134, 180, 193, 238 },
267  { "04TB12", 150, 200, 213, 261 },
268 
269  { "04TC01", 21, 43, 24, 46 },
270  { "04TC02", 32, 56, 35, 59 },
271  { "04TC03", 44, 70, 46, 73 },
272  { "04TC04", 57, 85, 59, 87 },
273  { "04TC05", 69, 100, 72, 103 },
274  { "04TC06", 84, 116, 86, 119 },
275  { "04TC07", 98, 133, 100, 136 },
276  { "04TC08", 113, 151, 116, 153 },
277  { "04TC09", 129, 170, 132, 172 },
278  { "04TC10", 146, 189, 149, 192 },
279  { "04TC11", 164, 209, 166, 212 },
280  { "04TC12", 182, 231, 184, 233 },
281 
282  { "04TD01", 32, 54, 11, 33 },
283  { "04TD02", 44, 68, 21, 45 },
284  { "04TD03", 58, 83, 31, 57 },
285  { "04TD04", 71, 100, 42, 70 },
286  { "04TD05", 86, 116, 54, 84 },
287  { "04TD06", 101, 134, 66, 99 },
288  { "04TD07", 118, 152, 79, 114 },
289  { "04TD08", 134, 172, 92, 130 },
290  { "04TD09", 152, 192, 106, 147 },
291  { "04TD10", 171, 213, 121, 165 },
292  { "04TD11", 191, 235, 136, 183 },
293  { "04TD12", 211, 259, 152, 202 },
294 
295  { "04TE01", 42, 64, 0, 20 },
296  { "04TE02", 56, 79, 6, 30 },
297  { "04TE03", 70, 95, 15, 41 },
298  { "04TE04", 85, 112, 24, 52 },
299  { "04TE05", 101, 130, 34, 65 },
300  { "04TE06", 118, 149, 44, 77 },
301  { "04TE07", 135, 169, 55, 91 },
302  { "04TE08", 154, 190, 67, 105 },
303  { "04TE09", 173, 211, 79, 119 },
304  { "04TE10", 193, 234, 91, 135 },
305  { "04TE11", 215, 258, 104, 151 },
306  { "04TE12", 237, 283, 118, 168 },
307 
308  { "05TA01", 0, 19, 43, 65 },
309  { "05TA02", 6, 30, 57, 80 },
310  { "05TA03", 14, 41, 71, 96 },
311  { "05TA04", 24, 52, 86, 113 },
312  { "05TA05", 34, 64, 102, 131 },
313  { "05TA06", 44, 77, 119, 150 },
314  { "05TA07", 55, 90, 136, 170 },
315  { "05TA08", 66, 104, 154, 190 },
316  { "05TA09", 78, 119, 174, 212 },
317  { "05TA10", 91, 134, 194, 235 },
318  { "05TA11", 104, 150, 215, 258 },
319  { "05TA12", 117, 167, 237, 283 },
320 
321  { "05TB01", 11, 33, 34, 55 },
322  { "05TB02", 20, 45, 46, 69 },
323  { "05TB03", 31, 57, 59, 84 },
324  { "05TB04", 42, 70, 72, 100 },
325  { "05TB05", 53, 84, 87, 117 },
326  { "05TB06", 65, 99, 102, 135 },
327  { "05TB07", 79, 114, 119, 153 },
328  { "05TB08", 92, 130, 136, 173 },
329  { "05TB09", 106, 147, 153, 193 },
330  { "05TB10", 121, 164, 172, 214 },
331  { "05TB11", 136, 183, 191, 236 },
332  { "05TB12", 152, 202, 212, 259 },
333 
334  { "05TC01", 23, 45, 22, 44 },
335  { "05TC02", 34, 59, 33, 57 },
336  { "05TC03", 46, 72, 45, 71 },
337  { "05TC04", 59, 87, 57, 86 },
338  { "05TC05", 72, 102, 71, 101 },
339  { "05TC06", 86, 119, 84, 117 },
340  { "05TC07", 100, 135, 99, 134 },
341  { "05TC08", 115, 153, 114, 152 },
342  { "05TC09", 132, 172, 130, 170 },
343  { "05TC10", 148, 191, 147, 190 },
344  { "05TC11", 166, 212, 164, 210 },
345  { "05TC12", 184, 233, 183, 231 },
346 
347  { "05TD01", 35, 57, 9, 32 },
348  { "05TD02", 47, 71, 20, 43 },
349  { "05TD03", 60, 86, 30, 56 },
350  { "05TD04", 74, 102, 41, 69 },
351  { "05TD05", 88, 118, 52, 83 },
352  { "05TD06", 104, 136, 64, 97 },
353  { "05TD07", 120, 154, 77, 113 },
354  { "05TD08", 137, 174, 90, 129 },
355  { "05TD09", 155, 194, 105, 145 },
356  { "05TD10", 173, 215, 119, 163 },
357  { "05TD11", 193, 237, 134, 181 },
358  { "05TD12", 213, 260, 150, 200 },
359 
360  { "05TE01", 45, 66, 0, 18 },
361  { "05TE02", 58, 81, 4, 28 },
362  { "05TE03", 72, 98, 13, 39 },
363  { "05TE04", 87, 115, 23, 51 },
364  { "05TE05", 103, 133, 33, 63 },
365  { "05TE06", 120, 151, 43, 75 },
366  { "05TE07", 137, 171, 53, 89 },
367  { "05TE08", 156, 191, 65, 103 },
368  { "05TE09", 175, 213, 77, 118 },
369  { "05TE10", 196, 236, 89, 133 },
370  { "05TE11", 217, 260, 103, 149 },
371  { "05TE12", 239, 285, 116, 166 },
372 
373  { "06TA01", 0, 18, 43, 64 },
374  { "06TA02", 5, 29, 56, 80 },
375  { "06TA03", 14, 40, 70, 96 },
376  { "06TA04", 23, 51, 86, 113 },
377  { "06TA05", 33, 63, 101, 131 },
378  { "06TA06", 43, 76, 118, 150 },
379  { "06TA07", 54, 90, 136, 170 },
380  { "06TA08", 66, 104, 154, 190 },
381  { "06TA09", 77, 119, 174, 212 },
382  { "06TA10", 90, 134, 194, 235 },
383  { "06TA11", 103, 150, 215, 258 },
384  { "06TA12", 117, 167, 237, 283 },
385 
386  { "06TB01", 10, 32, 33, 55 },
387  { "06TB02", 20, 44, 45, 69 },
388  { "06TB03", 30, 57, 58, 84 },
389  { "06TB04", 41, 70, 72, 100 },
390  { "06TB05", 53, 84, 87, 117 },
391  { "06TB06", 65, 98, 102, 135 },
392  { "06TB07", 78, 113, 118, 153 },
393  { "06TB08", 91, 129, 135, 172 },
394  { "06TB09", 105, 146, 153, 192 },
395  { "06TB10", 120, 164, 171, 214 },
396  { "06TB11", 136, 182, 191, 236 },
397  { "06TB12", 152, 202, 211, 259 },
398 
399  { "06TC01", 22, 45, 21, 44 },
400  { "06TC02", 34, 58, 33, 56 },
401  { "06TC03", 45, 72, 44, 70 },
402  { "06TC04", 58, 86, 57, 85 },
403  { "06TC05", 71, 102, 70, 100 },
404  { "06TC06", 85, 118, 84, 117 },
405  { "06TC07", 100, 135, 98, 134 },
406  { "06TC08", 115, 153, 114, 152 },
407  { "06TC09", 131, 171, 130, 170 },
408  { "06TC10", 148, 191, 146, 190 },
409  { "06TC11", 166, 211, 164, 210 },
410  { "06TC12", 184, 233, 182, 231 },
411 
412  { "06TD01", 34, 56, 9, 31 },
413  { "06TD02", 46, 70, 19, 42 },
414  { "06TD03", 59, 85, 29, 55 },
415  { "06TD04", 73, 101, 40, 69 },
416  { "06TD05", 88, 118, 51, 82 },
417  { "06TD06", 103, 136, 64, 97 },
418  { "06TD07", 120, 154, 77, 112 },
419  { "06TD08", 136, 173, 90, 128 },
420  { "06TD09", 154, 194, 104, 145 },
421  { "06TD10", 173, 215, 119, 163 },
422  { "06TD11", 193, 237, 134, 181 },
423  { "06TD12", 213, 261, 150, 200 },
424 
425  { "06TE01", 44, 66, 0, 17 },
426  { "06TE02", 57, 81, 4, 27 },
427  { "06TE03", 71, 97, 12, 39 },
428  { "06TE04", 87, 114, 22, 50 },
429  { "06TE05", 103, 132, 32, 62 },
430  { "06TE06", 119, 151, 42, 75 },
431  { "06TE07", 137, 171, 53, 89 },
432  { "06TE08", 156, 192, 64, 103 },
433  { "06TE09", 175, 213, 77, 117 },
434  { "06TE10", 195, 236, 89, 133 },
435  { "06TE11", 217, 260, 102, 149 },
436  { "06TE12", 239, 285, 116, 166 },
437 
438  { "07TA01", 0, 17, 45, 67 },
439  { "07TA02", 4, 27, 58, 82 },
440  { "07TA03", 12, 38, 72, 98 },
441  { "07TA04", 22, 50, 88, 115 },
442  { "07TA05", 31, 62, 104, 133 },
443  { "07TA06", 42, 75, 121, 152 },
444  { "07TA07", 53, 88, 138, 171 },
445  { "07TA08", 64, 102, 156, 192 },
446  { "07TA09", 76, 117, 176, 214 },
447  { "07TA10", 89, 132, 196, 237 },
448  { "07TA11", 102, 148, 217, 260 },
449  { "07TA12", 115, 165, 239, 285 },
450 
451  { "07TB01", 9, 30, 35, 57 },
452  { "07TB02", 18, 42, 47, 71 },
453  { "07TB03", 29, 55, 60, 86 },
454  { "07TB04", 39, 68, 74, 102 },
455  { "07TB05", 51, 82, 89, 119 },
456  { "07TB06", 63, 96, 104, 136 },
457  { "07TB07", 76, 111, 120, 155 },
458  { "07TB08", 90, 128, 137, 174 },
459  { "07TB09", 103, 145, 155, 195 },
460  { "07TB10", 119, 162, 174, 216 },
461  { "07TB11", 134, 180, 193, 238 },
462  { "07TB12", 150, 200, 213, 261 },
463 
464  { "07TC01", 21, 43, 24, 46 },
465  { "07TC02", 32, 56, 35, 59 },
466  { "07TC03", 44, 70, 46, 73 },
467  { "07TC04", 57, 85, 59, 87 },
468  { "07TC05", 69, 100, 72, 103 },
469  { "07TC06", 84, 116, 86, 119 },
470  { "07TC07", 98, 133, 100, 136 },
471  { "07TC08", 113, 151, 116, 153 },
472  { "07TC09", 129, 170, 132, 172 },
473  { "07TC10", 146, 189, 149, 192 },
474  { "07TC11", 164, 209, 166, 212 },
475  { "07TC12", 182, 231, 184, 233 },
476 
477  { "07TD01", 32, 54, 11, 33 },
478  { "07TD02", 44, 68, 21, 45 },
479  { "07TD03", 58, 83, 31, 57 },
480  { "07TD04", 71, 100, 42, 70 },
481  { "07TD05", 86, 116, 54, 84 },
482  { "07TD06", 101, 134, 66, 99 },
483  { "07TD07", 118, 152, 79, 114 },
484  { "07TD08", 134, 172, 92, 130 },
485  { "07TD09", 152, 192, 106, 147 },
486  { "07TD10", 171, 213, 121, 165 },
487  { "07TD11", 191, 235, 136, 183 },
488  { "07TD12", 211, 259, 152, 202 },
489 
490  { "07TE01", 42, 64, 0, 20 },
491  { "07TE02", 56, 79, 6, 30 },
492  { "07TE03", 70, 95, 15, 41 },
493  { "07TE04", 85, 112, 24, 52 },
494  { "07TE05", 101, 130, 34, 65 },
495  { "07TE06", 118, 149, 44, 77 },
496  { "07TE07", 135, 169, 55, 91 },
497  { "07TE08", 154, 190, 67, 105 },
498  { "07TE09", 173, 211, 79, 119 },
499  { "07TE10", 193, 234, 91, 135 },
500  { "07TE11", 215, 258, 104, 151 },
501  { "07TE12", 237, 283, 118, 168 },
502 
503  { "08TA01", 0, 19, 43, 65 },
504  { "08TA02", 6, 30, 57, 80 },
505  { "08TA03", 14, 41, 71, 96 },
506  { "08TA04", 24, 52, 86, 113 },
507  { "08TA05", 34, 64, 102, 131 },
508  { "08TA06", 44, 77, 119, 150 },
509  { "08TA07", 55, 90, 136, 170 },
510  { "08TA08", 66, 104, 154, 190 },
511  { "08TA09", 78, 119, 174, 212 },
512  { "08TA10", 91, 134, 194, 235 },
513  { "08TA11", 104, 150, 215, 258 },
514  { "08TA12", 117, 167, 237, 283 },
515 
516  { "08TB01", 11, 33, 34, 55 },
517  { "08TB02", 20, 45, 46, 69 },
518  { "08TB03", 31, 57, 59, 84 },
519  { "08TB04", 42, 70, 72, 100 },
520  { "08TB05", 53, 84, 87, 117 },
521  { "08TB06", 65, 99, 102, 135 },
522  { "08TB07", 79, 114, 119, 153 },
523  { "08TB08", 92, 130, 136, 173 },
524  { "08TB09", 106, 147, 153, 193 },
525  { "08TB10", 121, 164, 172, 214 },
526  { "08TB11", 136, 183, 191, 236 },
527  { "08TB12", 152, 202, 212, 259 },
528 
529  { "08TC01", 23, 45, 22, 44 },
530  { "08TC02", 34, 59, 33, 57 },
531  { "08TC03", 46, 72, 45, 71 },
532  { "08TC04", 59, 87, 57, 86 },
533  { "08TC05", 72, 102, 71, 101 },
534  { "08TC06", 86, 119, 84, 117 },
535  { "08TC07", 100, 135, 99, 134 },
536  { "08TC08", 115, 153, 114, 152 },
537  { "08TC09", 132, 172, 130, 170 },
538  { "08TC10", 148, 191, 147, 190 },
539  { "08TC11", 166, 212, 164, 210 },
540  { "08TC12", 184, 233, 183, 231 },
541 
542  { "08TD01", 35, 57, 9, 32 },
543  { "08TD02", 47, 71, 20, 43 },
544  { "08TD03", 60, 86, 30, 56 },
545  { "08TD04", 74, 102, 41, 69 },
546  { "08TD05", 88, 118, 52, 83 },
547  { "08TD06", 104, 136, 64, 97 },
548  { "08TD07", 120, 154, 77, 113 },
549  { "08TD08", 137, 174, 90, 129 },
550  { "08TD09", 155, 194, 105, 145 },
551  { "08TD10", 173, 215, 119, 163 },
552  { "08TD11", 193, 237, 134, 181 },
553  { "08TD12", 213, 260, 150, 200 },
554 
555  { "08TE01", 45, 66, 0, 18 },
556  { "08TE02", 58, 81, 4, 28 },
557  { "08TE03", 72, 98, 13, 39 },
558  { "08TE04", 87, 115, 23, 51 },
559  { "08TE05", 103, 133, 33, 63 },
560  { "08TE06", 120, 151, 43, 75 },
561  { "08TE07", 137, 171, 53, 89 },
562  { "08TE08", 156, 191, 65, 103 },
563  { "08TE09", 175, 213, 77, 118 },
564  { "08TE10", 196, 236, 89, 133 },
565  { "08TE11", 217, 260, 103, 149 },
566  { "08TE12", 239, 285, 116, 166 },
567 
568  { "09TA01", 0, 18, 43, 64 },
569  { "09TA02", 5, 29, 56, 80 },
570  { "09TA03", 14, 40, 70, 96 },
571  { "09TA04", 23, 51, 86, 113 },
572  { "09TA05", 33, 63, 101, 131 },
573  { "09TA06", 43, 76, 118, 150 },
574  { "09TA07", 54, 90, 136, 170 },
575  { "09TA08", 66, 104, 154, 190 },
576  { "09TA09", 77, 119, 174, 212 },
577  { "09TA10", 90, 134, 194, 235 },
578  { "09TA11", 103, 150, 215, 258 },
579  { "09TA12", 117, 167, 237, 283 },
580 
581  { "09TB01", 10, 32, 33, 55 },
582  { "09TB02", 20, 44, 45, 69 },
583  { "09TB03", 30, 57, 58, 84 },
584  { "09TB04", 41, 70, 72, 100 },
585  { "09TB05", 53, 84, 87, 117 },
586  { "09TB06", 65, 98, 102, 135 },
587  { "09TB07", 78, 113, 118, 153 },
588  { "09TB08", 91, 129, 135, 172 },
589  { "09TB09", 105, 146, 153, 192 },
590  { "09TB10", 120, 164, 171, 214 },
591  { "09TB11", 136, 182, 191, 236 },
592  { "09TB12", 152, 202, 211, 259 },
593 
594  { "09TC01", 22, 45, 21, 44 },
595  { "09TC02", 34, 58, 33, 56 },
596  { "09TC03", 45, 72, 44, 70 },
597  { "09TC04", 58, 86, 57, 85 },
598  { "09TC05", 71, 102, 70, 100 },
599  { "09TC06", 85, 118, 84, 117 },
600  { "09TC07", 100, 135, 98, 134 },
601  { "09TC08", 115, 153, 114, 152 },
602  { "09TC09", 131, 171, 130, 170 },
603  { "09TC10", 148, 191, 146, 190 },
604  { "09TC11", 166, 211, 164, 210 },
605  { "09TC12", 184, 233, 182, 231 },
606 
607  { "09TD01", 34, 56, 9, 31 },
608  { "09TD02", 46, 70, 19, 42 },
609  { "09TD03", 59, 85, 29, 55 },
610  { "09TD04", 73, 101, 40, 69 },
611  { "09TD05", 88, 118, 51, 82 },
612  { "09TD06", 103, 136, 64, 97 },
613  { "09TD07", 120, 154, 77, 112 },
614  { "09TD08", 136, 173, 90, 128 },
615  { "09TD09", 154, 194, 104, 145 },
616  { "09TD10", 173, 215, 119, 163 },
617  { "09TD11", 193, 237, 134, 181 },
618  { "09TD12", 213, 261, 150, 200 },
619 
620  { "09TE01", 44, 66, 0, 17 },
621  { "09TE02", 57, 81, 4, 27 },
622  { "09TE03", 71, 97, 12, 39 },
623  { "09TE04", 87, 114, 22, 50 },
624  { "09TE05", 103, 132, 32, 62 },
625  { "09TE06", 119, 151, 42, 75 },
626  { "09TE07", 137, 171, 53, 89 },
627  { "09TE08", 156, 192, 64, 103 },
628  { "09TE09", 175, 213, 77, 117 },
629  { "09TE10", 195, 236, 89, 133 },
630  { "09TE11", 217, 260, 102, 149 },
631  { "09TE12", 239, 282, 116, 166 },
632 
633  { "10TA01", 0, 17, 45, 67 },
634  { "10TA02", 4, 27, 58, 82 },
635  { "10TA03", 12, 38, 72, 98 },
636  { "10TA04", 22, 50, 88, 115 },
637  { "10TA05", 31, 62, 104, 133 },
638  { "10TA06", 42, 75, 121, 152 },
639  { "10TA07", 53, 88, 138, 171 },
640  { "10TA08", 64, 102, 156, 192 },
641  { "10TA09", 76, 117, 176, 214 },
642  { "10TA10", 89, 132, 196, 237 },
643  { "10TA11", 102, 148, 217, 260 },
644  { "10TA12", 115, 165, 239, 282 },
645 
646  { "10TB01", 9, 30, 35, 57 },
647  { "10TB02", 18, 42, 47, 71 },
648  { "10TB03", 29, 55, 60, 86 },
649  { "10TB04", 39, 68, 74, 102 },
650  { "10TB05", 51, 82, 89, 119 },
651  { "10TB06", 63, 96, 104, 136 },
652  { "10TB07", 76, 111, 120, 155 },
653  { "10TB08", 90, 128, 137, 174 },
654  { "10TB09", 103, 145, 155, 195 },
655  { "10TB10", 119, 162, 174, 216 },
656  { "10TB11", 134, 180, 193, 238 },
657  { "10TB12", 150, 200, 213, 261 },
658 
659  { "10TC01", 21, 43, 24, 46 },
660  { "10TC02", 32, 56, 35, 59 },
661  { "10TC03", 44, 70, 46, 73 },
662  { "10TC04", 57, 85, 59, 87 },
663  { "10TC05", 69, 100, 72, 103 },
664  { "10TC06", 84, 116, 86, 119 },
665  { "10TC07", 98, 133, 100, 136 },
666  { "10TC08", 113, 151, 116, 153 },
667  { "10TC09", 129, 170, 132, 172 },
668  { "10TC10", 146, 189, 149, 192 },
669  { "10TC11", 164, 209, 166, 212 },
670  { "10TC12", 182, 231, 184, 233 },
671 
672  { "10TD01", 32, 54, 11, 33 },
673  { "10TD02", 44, 68, 21, 45 },
674  { "10TD03", 58, 83, 31, 57 },
675  { "10TD04", 71, 100, 42, 70 },
676  { "10TD05", 86, 116, 54, 84 },
677  { "10TD06", 101, 134, 66, 99 },
678  { "10TD07", 118, 152, 79, 114 },
679  { "10TD08", 134, 172, 92, 130 },
680  { "10TD09", 152, 192, 106, 147 },
681  { "10TD10", 171, 213, 121, 165 },
682  { "10TD11", 191, 235, 136, 183 },
683  { "10TD12", 211, 259, 152, 202 },
684 
685  { "10TE01", 42, 64, 0, 20 },
686  { "10TE02", 56, 79, 6, 30 },
687  { "10TE03", 70, 95, 15, 41 },
688  { "10TE04", 85, 112, 24, 52 },
689  { "10TE05", 101, 130, 34, 65 },
690  { "10TE06", 118, 149, 44, 77 },
691  { "10TE07", 135, 169, 55, 91 },
692  { "10TE08", 154, 190, 67, 105 },
693  { "10TE09", 173, 211, 79, 119 },
694  { "10TE10", 193, 234, 91, 135 },
695  { "10TE11", 215, 258, 104, 151 },
696  { "10TE12", 237, 283, 118, 168 },
697 
698  { "11TA01", 0, 19, 43, 65 },
699  { "11TA02", 6, 30, 57, 80 },
700  { "11TA03", 14, 41, 71, 96 },
701  { "11TA04", 24, 52, 86, 113 },
702  { "11TA05", 34, 64, 102, 131 },
703  { "11TA06", 44, 77, 119, 150 },
704  { "11TA07", 55, 90, 136, 170 },
705  { "11TA08", 66, 104, 154, 190 },
706  { "11TA09", 78, 119, 174, 212 },
707  { "11TA10", 91, 134, 194, 235 },
708  { "11TA11", 104, 150, 215, 258 },
709  { "11TA12", 117, 167, 237, 283 },
710 
711  { "11TB01", 11, 33, 34, 55 },
712  { "11TB02", 20, 45, 46, 69 },
713  { "11TB03", 31, 57, 59, 84 },
714  { "11TB04", 42, 70, 72, 100 },
715  { "11TB05", 53, 84, 87, 117 },
716  { "11TB06", 65, 99, 102, 135 },
717  { "11TB07", 79, 114, 119, 153 },
718  { "11TB08", 92, 130, 136, 173 },
719  { "11TB09", 106, 147, 153, 193 },
720  { "11TB10", 121, 164, 172, 214 },
721  { "11TB11", 136, 183, 191, 236 },
722  { "11TB12", 152, 202, 212, 259 },
723 
724  { "11TC01", 23, 45, 22, 44 },
725  { "11TC02", 34, 59, 33, 57 },
726  { "11TC03", 46, 72, 45, 71 },
727  { "11TC04", 59, 87, 57, 86 },
728  { "11TC05", 72, 102, 71, 101 },
729  { "11TC06", 86, 119, 84, 117 },
730  { "11TC07", 100, 135, 99, 134 },
731  { "11TC08", 115, 153, 114, 152 },
732  { "11TC09", 132, 172, 130, 170 },
733  { "11TC10", 148, 191, 147, 190 },
734  { "11TC11", 166, 212, 164, 210 },
735  { "11TC12", 184, 233, 183, 231 },
736 
737  { "11TD01", 35, 57, 9, 32 },
738  { "11TD02", 47, 71, 20, 43 },
739  { "11TD03", 60, 86, 30, 56 },
740  { "11TD04", 74, 102, 41, 69 },
741  { "11TD05", 88, 118, 52, 83 },
742  { "11TD06", 104, 136, 64, 97 },
743  { "11TD07", 120, 154, 77, 113 },
744  { "11TD08", 137, 174, 90, 129 },
745  { "11TD09", 155, 194, 105, 145 },
746  { "11TD10", 173, 215, 119, 163 },
747  { "11TD11", 193, 237, 134, 181 },
748  { "11TD12", 213, 260, 150, 200 },
749 
750  { "11TE01", 45, 66, 0, 18 },
751  { "11TE02", 58, 81, 4, 28 },
752  { "11TE03", 72, 98, 13, 39 },
753  { "11TE04", 87, 115, 23, 51 },
754  { "11TE05", 103, 133, 33, 63 },
755  { "11TE06", 120, 151, 43, 75 },
756  { "11TE07", 137, 171, 53, 89 },
757  { "11TE08", 156, 191, 65, 103 },
758  { "11TE09", 175, 213, 77, 118 },
759  { "11TE10", 196, 236, 89, 133 },
760  { "11TE11", 217, 260, 103, 149 },
761  { "11TE12", 239, 285, 116, 166 },
762 
763  { "12TA01", 0, 18, 43, 64 },
764  { "12TA02", 5, 29, 56, 80 },
765  { "12TA03", 14, 40, 70, 96 },
766  { "12TA04", 23, 51, 86, 113 },
767  { "12TA05", 33, 63, 101, 131 },
768  { "12TA06", 43, 76, 118, 150 },
769  { "12TA07", 54, 90, 136, 170 },
770  { "12TA08", 66, 104, 154, 190 },
771  { "12TA09", 77, 119, 174, 212 },
772  { "12TA10", 90, 134, 194, 235 },
773  { "12TA11", 103, 150, 215, 258 },
774  { "12TA12", 117, 167, 237, 283 },
775 
776  { "12TB01", 10, 32, 33, 55 },
777  { "12TB02", 20, 44, 45, 69 },
778  { "12TB03", 30, 57, 58, 84 },
779  { "12TB04", 41, 70, 72, 100 },
780  { "12TB05", 53, 84, 87, 117 },
781  { "12TB06", 65, 98, 102, 135 },
782  { "12TB07", 78, 113, 118, 153 },
783  { "12TB08", 91, 129, 135, 172 },
784  { "12TB09", 105, 146, 153, 192 },
785  { "12TB10", 120, 164, 171, 214 },
786  { "12TB11", 136, 182, 191, 236 },
787  { "12TB12", 152, 202, 211, 259 },
788 
789  { "12TC01", 22, 45, 21, 44 },
790  { "12TC02", 34, 58, 33, 56 },
791  { "12TC03", 45, 72, 44, 70 },
792  { "12TC04", 58, 86, 57, 85 },
793  { "12TC05", 71, 102, 70, 100 },
794  { "12TC06", 85, 118, 84, 117 },
795  { "12TC07", 100, 135, 98, 134 },
796  { "12TC08", 115, 153, 114, 152 },
797  { "12TC09", 131, 171, 130, 170 },
798  { "12TC10", 148, 191, 146, 190 },
799  { "12TC11", 166, 211, 164, 210 },
800  { "12TC12", 184, 233, 182, 231 },
801 
802  { "12TD01", 34, 56, 9, 31 },
803  { "12TD02", 46, 70, 19, 42 },
804  { "12TD03", 59, 85, 29, 55 },
805  { "12TD04", 73, 101, 40, 69 },
806  { "12TD05", 88, 118, 51, 82 },
807  { "12TD06", 103, 136, 64, 97 },
808  { "12TD07", 120, 154, 77, 112 },
809  { "12TD08", 136, 173, 90, 128 },
810  { "12TD09", 154, 194, 104, 145 },
811  { "12TD10", 173, 215, 119, 163 },
812  { "12TD11", 193, 237, 134, 181 },
813  { "12TD12", 213, 261, 150, 200 },
814 
815  { "12TE01", 44, 66, 0, 17 },
816  { "12TE02", 57, 81, 4, 27 },
817  { "12TE03", 71, 97, 12, 39 },
818  { "12TE04", 87, 114, 22, 50 },
819  { "12TE05", 103, 132, 32, 62 },
820  { "12TE06", 119, 151, 42, 75 },
821  { "12TE07", 137, 171, 53, 89 },
822  { "12TE08", 156, 192, 64, 103 },
823  { "12TE09", 175, 213, 77, 117 },
824  { "12TE10", 195, 236, 89, 133 },
825  { "12TE11", 217, 260, 102, 149 },
826  { "12TE12", 239, 285, 116, 166 }
827 
828  };
829 
830  //--
831  //-- Initialize the strip-range to tower mapping
832  //--
833  Int_t itow = 0;
834  for ( Int_t isec = 0; isec < 12; isec++ ) {
835  for ( Int_t isub = 0; isub < 5; isub++ ) {
836  for ( Int_t ieta = 0; ieta < 12; ieta++ ) {
837  mSmdMap[isec][isub][ieta] = stripData[itow++];
838  }
839  }
840  }
841 
842 
843  //--
844  //-- Initialize the tower to strip mapping
845  //--
846  itow = 0;
847  for ( Int_t isec = 0; isec < 12; isec++ ) {
848  for ( Int_t isub = 0; isub < 5; isub++ ) {
849  for ( Int_t ieta = 0; ieta < 12; ieta++ ) {
850 
851  //-- Get the range in U and V strips for this tower
852  Int_t uMin, uMax;
853  Int_t vMin, vMax;
854 
855  getRangeU(isec,isub,ieta, uMin,uMax);
856  getRangeV(isec,isub,ieta, vMin,vMax);
857 
858  //-- Loop over the range in u strips and add tower to
859  //-- the flat list of towers, and increment the count
860  for ( Int_t u = uMin; u <= uMax; u++ ) {
861  mTowerMap[isec][0][u].nTower++;
862  mTowerMap[isec][0][u].towers.push_back( TString( stripData[itow].tower ) );
863  mTowerMap[isec][0][u].sector.push_back(isec);
864  mTowerMap[isec][0][u].subsector.push_back(isub);
865  mTowerMap[isec][0][u].etabin.push_back(ieta);
866  }
867  //-- Repeat for v strips
868  for ( Int_t v = vMin; v <= vMax; v++ ) {
869  mTowerMap[isec][1][v].nTower++;
870  mTowerMap[isec][1][v].towers.push_back( TString( stripData[itow].tower ) );
871  mTowerMap[isec][1][v].sector.push_back(isec);
872  mTowerMap[isec][1][v].subsector.push_back(isub);
873  mTowerMap[isec][1][v].etabin.push_back(ieta);
874  }
875 
876  //-- Increment the tower index
877  itow++;
878 
879  }
880  }
881  }
882 
883 }