Project
Loading...
Searching...
No Matches
VolumePaths.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
13
14namespace o2::mch::geo
15{
16// return the path of the mother volume of detElemId, relative to MCH geometry
17// (i.e. excluding general top node)
18std::string volumePathName(int detElemId)
19{
20 std::string vp{"incorrect detElemId"};
21
22 if (detElemId == 100) {
23 return "SC01I_0/Quadrant (chamber 1)_100";
24 }
25 if (detElemId == 103) {
26 return "SC01I_0/Quadrant (chamber 1)_103";
27 }
28 if (detElemId == 101) {
29 return "SC01O_1/Quadrant (chamber 1)_101";
30 }
31 if (detElemId == 102) {
32 return "SC01O_1/Quadrant (chamber 1)_102";
33 }
34 if (detElemId == 200) {
35 return "SC02I_2/Quadrant (chamber 2)_200";
36 }
37 if (detElemId == 203) {
38 return "SC02I_2/Quadrant (chamber 2)_203";
39 }
40 if (detElemId == 201) {
41 return "SC02O_3/Quadrant (chamber 2)_201";
42 }
43 if (detElemId == 202) {
44 return "SC02O_3/Quadrant (chamber 2)_202";
45 }
46 if (detElemId == 300) {
47 return "SC03I_4/Station 2 quadrant_300";
48 }
49 if (detElemId == 303) {
50 return "SC03I_4/Station 2 quadrant_303";
51 }
52 if (detElemId == 301) {
53 return "SC03O_5/Station 2 quadrant_301";
54 }
55 if (detElemId == 302) {
56 return "SC03O_5/Station 2 quadrant_302";
57 }
58 if (detElemId == 400) {
59 return "SC04I_6/Station 2 quadrant_400";
60 }
61 if (detElemId == 403) {
62 return "SC04I_6/Station 2 quadrant_403";
63 }
64 if (detElemId == 401) {
65 return "SC04O_7/Station 2 quadrant_401";
66 }
67 if (detElemId == 402) {
68 return "SC04O_7/Station 2 quadrant_402";
69 }
70 if (detElemId == 500) {
71 return "SC05I_8/122000SR1_500";
72 }
73 if (detElemId == 501) {
74 return "SC05I_8/112200SR2_501";
75 }
76 if (detElemId == 502) {
77 return "SC05I_8/122200S_502";
78 }
79 if (detElemId == 503) {
80 return "SC05I_8/222000N_503";
81 }
82 if (detElemId == 504) {
83 return "SC05I_8/220000N_504";
84 }
85 if (detElemId == 514) {
86 return "SC05I_8/220000N_514";
87 }
88 if (detElemId == 515) {
89 return "SC05I_8/222000N_515";
90 }
91 if (detElemId == 516) {
92 return "SC05I_8/122200S_516";
93 }
94 if (detElemId == 517) {
95 return "SC05I_8/112200SR2_517";
96 }
97 if (detElemId == 505) {
98 return "SC05O_9/220000N_505";
99 }
100 if (detElemId == 506) {
101 return "SC05O_9/222000N_506";
102 }
103 if (detElemId == 507) {
104 return "SC05O_9/122200S_507";
105 }
106 if (detElemId == 508) {
107 return "SC05O_9/112200SR2_508";
108 }
109 if (detElemId == 509) {
110 return "SC05O_9/122000SR1_509";
111 }
112 if (detElemId == 510) {
113 return "SC05O_9/112200SR2_510";
114 }
115 if (detElemId == 511) {
116 return "SC05O_9/122200S_511";
117 }
118 if (detElemId == 512) {
119 return "SC05O_9/222000N_512";
120 }
121 if (detElemId == 513) {
122 return "SC05O_9/220000N_513";
123 }
124 if (detElemId == 600) {
125 return "SC06I_10/122000NR1_600";
126 }
127 if (detElemId == 601) {
128 return "SC06I_10/112200NR2_601";
129 }
130 if (detElemId == 602) {
131 return "SC06I_10/122200N_602";
132 }
133 if (detElemId == 603) {
134 return "SC06I_10/222000N_603";
135 }
136 if (detElemId == 604) {
137 return "SC06I_10/220000N_604";
138 }
139 if (detElemId == 614) {
140 return "SC06I_10/220000N_614";
141 }
142 if (detElemId == 615) {
143 return "SC06I_10/222000N_615";
144 }
145 if (detElemId == 616) {
146 return "SC06I_10/122200N_616";
147 }
148 if (detElemId == 617) {
149 return "SC06I_10/112200NR2_617";
150 }
151 if (detElemId == 605) {
152 return "SC06O_11/220000N_605";
153 }
154 if (detElemId == 606) {
155 return "SC06O_11/222000N_606";
156 }
157 if (detElemId == 607) {
158 return "SC06O_11/122200N_607";
159 }
160 if (detElemId == 608) {
161 return "SC06O_11/112200NR2_608";
162 }
163 if (detElemId == 609) {
164 return "SC06O_11/122000NR1_609";
165 }
166 if (detElemId == 610) {
167 return "SC06O_11/112200NR2_610";
168 }
169 if (detElemId == 611) {
170 return "SC06O_11/122200N_611";
171 }
172 if (detElemId == 612) {
173 return "SC06O_11/222000N_612";
174 }
175 if (detElemId == 613) {
176 return "SC06O_11/220000N_613";
177 }
178 if (detElemId == 700) {
179 return "SC07I_12/122330N_700";
180 }
181 if (detElemId == 701) {
182 return "SC07I_12/112233NR3_701";
183 }
184 if (detElemId == 702) {
185 return "SC07I_12/112230N_702";
186 }
187 if (detElemId == 703) {
188 return "SC07I_12/222330N_703";
189 }
190 if (detElemId == 704) {
191 return "SC07I_12/223300N_704";
192 }
193 if (detElemId == 705) {
194 return "SC07I_12/333000N_705";
195 }
196 if (detElemId == 706) {
197 return "SC07I_12/330000N_706";
198 }
199 if (detElemId == 720) {
200 return "SC07I_12/330000N_720";
201 }
202 if (detElemId == 721) {
203 return "SC07I_12/333000N_721";
204 }
205 if (detElemId == 722) {
206 return "SC07I_12/223300N_722";
207 }
208 if (detElemId == 723) {
209 return "SC07I_12/222330N_723";
210 }
211 if (detElemId == 724) {
212 return "SC07I_12/112230N_724";
213 }
214 if (detElemId == 725) {
215 return "SC07I_12/112233NR3_725";
216 }
217 if (detElemId == 707) {
218 return "SC07O_13/330000N_707";
219 }
220 if (detElemId == 708) {
221 return "SC07O_13/333000N_708";
222 }
223 if (detElemId == 709) {
224 return "SC07O_13/223300N_709";
225 }
226 if (detElemId == 710) {
227 return "SC07O_13/222330N_710";
228 }
229 if (detElemId == 711) {
230 return "SC07O_13/112230N_711";
231 }
232 if (detElemId == 712) {
233 return "SC07O_13/112233NR3_712";
234 }
235 if (detElemId == 713) {
236 return "SC07O_13/122330N_713";
237 }
238 if (detElemId == 714) {
239 return "SC07O_13/112233NR3_714";
240 }
241 if (detElemId == 715) {
242 return "SC07O_13/112230N_715";
243 }
244 if (detElemId == 716) {
245 return "SC07O_13/222330N_716";
246 }
247 if (detElemId == 717) {
248 return "SC07O_13/223300N_717";
249 }
250 if (detElemId == 718) {
251 return "SC07O_13/333000N_718";
252 }
253 if (detElemId == 719) {
254 return "SC07O_13/330000N_719";
255 }
256 if (detElemId == 800) {
257 return "SC08I_14/122330N_800";
258 }
259 if (detElemId == 801) {
260 return "SC08I_14/112233NR3_801";
261 }
262 if (detElemId == 802) {
263 return "SC08I_14/112230N_802";
264 }
265 if (detElemId == 803) {
266 return "SC08I_14/222330N_803";
267 }
268 if (detElemId == 804) {
269 return "SC08I_14/223300N_804";
270 }
271 if (detElemId == 805) {
272 return "SC08I_14/333000N_805";
273 }
274 if (detElemId == 806) {
275 return "SC08I_14/330000N_806";
276 }
277 if (detElemId == 820) {
278 return "SC08I_14/330000N_820";
279 }
280 if (detElemId == 821) {
281 return "SC08I_14/333000N_821";
282 }
283 if (detElemId == 822) {
284 return "SC08I_14/223300N_822";
285 }
286 if (detElemId == 823) {
287 return "SC08I_14/222330N_823";
288 }
289 if (detElemId == 824) {
290 return "SC08I_14/112230N_824";
291 }
292 if (detElemId == 825) {
293 return "SC08I_14/112233NR3_825";
294 }
295 if (detElemId == 807) {
296 return "SC08O_15/330000N_807";
297 }
298 if (detElemId == 808) {
299 return "SC08O_15/333000N_808";
300 }
301 if (detElemId == 809) {
302 return "SC08O_15/223300N_809";
303 }
304 if (detElemId == 810) {
305 return "SC08O_15/222330N_810";
306 }
307 if (detElemId == 811) {
308 return "SC08O_15/112230N_811";
309 }
310 if (detElemId == 812) {
311 return "SC08O_15/112233NR3_812";
312 }
313 if (detElemId == 813) {
314 return "SC08O_15/122330N_813";
315 }
316 if (detElemId == 814) {
317 return "SC08O_15/112233NR3_814";
318 }
319 if (detElemId == 815) {
320 return "SC08O_15/112230N_815";
321 }
322 if (detElemId == 816) {
323 return "SC08O_15/222330N_816";
324 }
325 if (detElemId == 817) {
326 return "SC08O_15/223300N_817";
327 }
328 if (detElemId == 818) {
329 return "SC08O_15/333000N_818";
330 }
331 if (detElemId == 819) {
332 return "SC08O_15/330000N_819";
333 }
334 if (detElemId == 900) {
335 return "SC09I_16/122330N_900";
336 }
337 if (detElemId == 901) {
338 return "SC09I_16/112233NR3_901";
339 }
340 if (detElemId == 902) {
341 return "SC09I_16/112233N_902";
342 }
343 if (detElemId == 903) {
344 return "SC09I_16/222333N_903";
345 }
346 if (detElemId == 904) {
347 return "SC09I_16/223330N_904";
348 }
349 if (detElemId == 905) {
350 return "SC09I_16/333300N_905";
351 }
352 if (detElemId == 906) {
353 return "SC09I_16/333000N_906";
354 }
355 if (detElemId == 920) {
356 return "SC09I_16/333000N_920";
357 }
358 if (detElemId == 921) {
359 return "SC09I_16/333300N_921";
360 }
361 if (detElemId == 922) {
362 return "SC09I_16/223330N_922";
363 }
364 if (detElemId == 923) {
365 return "SC09I_16/222333N_923";
366 }
367 if (detElemId == 924) {
368 return "SC09I_16/112233N_924";
369 }
370 if (detElemId == 925) {
371 return "SC09I_16/112233NR3_925";
372 }
373 if (detElemId == 907) {
374 return "SC09O_17/333000N_907";
375 }
376 if (detElemId == 908) {
377 return "SC09O_17/333300N_908";
378 }
379 if (detElemId == 909) {
380 return "SC09O_17/223330N_909";
381 }
382 if (detElemId == 910) {
383 return "SC09O_17/222333N_910";
384 }
385 if (detElemId == 911) {
386 return "SC09O_17/112233N_911";
387 }
388 if (detElemId == 912) {
389 return "SC09O_17/112233NR3_912";
390 }
391 if (detElemId == 913) {
392 return "SC09O_17/122330N_913";
393 }
394 if (detElemId == 914) {
395 return "SC09O_17/112233NR3_914";
396 }
397 if (detElemId == 915) {
398 return "SC09O_17/112233N_915";
399 }
400 if (detElemId == 916) {
401 return "SC09O_17/222333N_916";
402 }
403 if (detElemId == 917) {
404 return "SC09O_17/223330N_917";
405 }
406 if (detElemId == 918) {
407 return "SC09O_17/333300N_918";
408 }
409 if (detElemId == 919) {
410 return "SC09O_17/333000N_919";
411 }
412 if (detElemId == 1000) {
413 return "SC10I_18/122330N_1000";
414 }
415 if (detElemId == 1001) {
416 return "SC10I_18/112233NR3_1001";
417 }
418 if (detElemId == 1002) {
419 return "SC10I_18/112233N_1002";
420 }
421 if (detElemId == 1003) {
422 return "SC10I_18/222333N_1003";
423 }
424 if (detElemId == 1004) {
425 return "SC10I_18/223330N_1004";
426 }
427 if (detElemId == 1005) {
428 return "SC10I_18/333300N_1005";
429 }
430 if (detElemId == 1006) {
431 return "SC10I_18/333000N_1006";
432 }
433 if (detElemId == 1020) {
434 return "SC10I_18/333000N_1020";
435 }
436 if (detElemId == 1021) {
437 return "SC10I_18/333300N_1021";
438 }
439 if (detElemId == 1022) {
440 return "SC10I_18/223330N_1022";
441 }
442 if (detElemId == 1023) {
443 return "SC10I_18/222333N_1023";
444 }
445 if (detElemId == 1024) {
446 return "SC10I_18/112233N_1024";
447 }
448 if (detElemId == 1025) {
449 return "SC10I_18/112233NR3_1025";
450 }
451 if (detElemId == 1007) {
452 return "SC10O_19/333000N_1007";
453 }
454 if (detElemId == 1008) {
455 return "SC10O_19/333300N_1008";
456 }
457 if (detElemId == 1009) {
458 return "SC10O_19/223330N_1009";
459 }
460 if (detElemId == 1010) {
461 return "SC10O_19/222333N_1010";
462 }
463 if (detElemId == 1011) {
464 return "SC10O_19/112233N_1011";
465 }
466 if (detElemId == 1012) {
467 return "SC10O_19/112233NR3_1012";
468 }
469 if (detElemId == 1013) {
470 return "SC10O_19/122330N_1013";
471 }
472 if (detElemId == 1014) {
473 return "SC10O_19/112233NR3_1014";
474 }
475 if (detElemId == 1015) {
476 return "SC10O_19/112233N_1015";
477 }
478 if (detElemId == 1016) {
479 return "SC10O_19/222333N_1016";
480 }
481 if (detElemId == 1017) {
482 return "SC10O_19/223330N_1017";
483 }
484 if (detElemId == 1018) {
485 return "SC10O_19/333300N_1018";
486 }
487 if (detElemId == 1019) {
488 return "SC10O_19/333000N_1019";
489 }
490
491 return vp;
492}
493} // namespace o2::mch::geo
get the local-to-global transformation for a given detection element
Definition Geometry.h:25
std::string volumePathName(int deId)