14 bool pnA(_ab ==
'a' || _ab ==
'A');
34 default:
return EcalPnDiodeDetId(0);
48 default:
return EcalPnDiodeDetId(0);
62 default:
return EcalPnDiodeDetId(0);
76 default:
return EcalPnDiodeDetId(0);
90 default:
return EcalPnDiodeDetId(0);
102 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 15, 5) : EcalPnDiodeDetId(
EcalBarrel, 15, 10);
103 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 15, 5) : EcalPnDiodeDetId(
EcalBarrel, 15, 10);
104 default:
return EcalPnDiodeDetId(0);
115 case 7:
return EcalPnDiodeDetId(
EcalBarrel, 16, 9);
116 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 16, 5) : EcalPnDiodeDetId(
EcalBarrel, 16, 10);
117 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 16, 5) : EcalPnDiodeDetId(
EcalBarrel, 16, 10);
118 default:
return EcalPnDiodeDetId(0);
130 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 17, 5) : EcalPnDiodeDetId(
EcalBarrel, 17, 10);
131 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 17, 5) : EcalPnDiodeDetId(
EcalBarrel, 17, 10);
132 default:
return EcalPnDiodeDetId(0);
144 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 18, 5) : EcalPnDiodeDetId(
EcalBarrel, 18, 10);
145 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 18, 5) : EcalPnDiodeDetId(
EcalBarrel, 18, 10);
146 default:
return EcalPnDiodeDetId(0);
158 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 19, 5) : EcalPnDiodeDetId(
EcalBarrel, 19, 10);
159 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 19, 5) : EcalPnDiodeDetId(
EcalBarrel, 19, 10);
160 default:
return EcalPnDiodeDetId(0);
172 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 20, 5) : EcalPnDiodeDetId(
EcalBarrel, 20, 10);
173 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 20, 5) : EcalPnDiodeDetId(
EcalBarrel, 20, 10);
174 default:
return EcalPnDiodeDetId(0);
186 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 21, 5) : EcalPnDiodeDetId(
EcalBarrel, 21, 10);
187 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 21, 5) : EcalPnDiodeDetId(
EcalBarrel, 21, 10);
188 default:
return EcalPnDiodeDetId(0);
200 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 22, 5) : EcalPnDiodeDetId(
EcalBarrel, 22, 10);
201 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 22, 5) : EcalPnDiodeDetId(
EcalBarrel, 22, 10);
202 default:
return EcalPnDiodeDetId(0);
214 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 23, 5) : EcalPnDiodeDetId(
EcalBarrel, 23, 10);
215 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 23, 5) : EcalPnDiodeDetId(
EcalBarrel, 23, 10);
216 default:
return EcalPnDiodeDetId(0);
228 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 24, 5) : EcalPnDiodeDetId(
EcalBarrel, 24, 10);
229 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 24, 5) : EcalPnDiodeDetId(
EcalBarrel, 24, 10);
230 default:
return EcalPnDiodeDetId(0);
242 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 25, 5) : EcalPnDiodeDetId(
EcalBarrel, 25, 10);
243 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 25, 5) : EcalPnDiodeDetId(
EcalBarrel, 25, 10);
244 default:
return EcalPnDiodeDetId(0);
256 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 26, 5) : EcalPnDiodeDetId(
EcalBarrel, 26, 10);
257 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 26, 5) : EcalPnDiodeDetId(
EcalBarrel, 26, 10);
258 default:
return EcalPnDiodeDetId(0);
270 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 27, 5) : EcalPnDiodeDetId(
EcalBarrel, 27, 10);
271 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 27, 5) : EcalPnDiodeDetId(
EcalBarrel, 27, 10);
272 default:
return EcalPnDiodeDetId(0);
284 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 28, 5) : EcalPnDiodeDetId(
EcalBarrel, 28, 10);
285 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 28, 5) : EcalPnDiodeDetId(
EcalBarrel, 28, 10);
286 default:
return EcalPnDiodeDetId(0);
298 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 29, 5) : EcalPnDiodeDetId(
EcalBarrel, 29, 10);
299 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 29, 5) : EcalPnDiodeDetId(
EcalBarrel, 29, 10);
300 default:
return EcalPnDiodeDetId(0);
312 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 30, 5) : EcalPnDiodeDetId(
EcalBarrel, 30, 10);
313 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 30, 5) : EcalPnDiodeDetId(
EcalBarrel, 30, 10);
314 default:
return EcalPnDiodeDetId(0);
326 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 31, 5) : EcalPnDiodeDetId(
EcalBarrel, 31, 10);
327 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 31, 5) : EcalPnDiodeDetId(
EcalBarrel, 31, 10);
328 default:
return EcalPnDiodeDetId(0);
338 case 6:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 32, 5) : EcalPnDiodeDetId(
EcalBarrel, 32, 10);
339 case 7:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 32, 5) : EcalPnDiodeDetId(
EcalBarrel, 32, 10);
342 default:
return EcalPnDiodeDetId(0);
354 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 33, 5) : EcalPnDiodeDetId(
EcalBarrel, 33, 10);
355 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 33, 5) : EcalPnDiodeDetId(
EcalBarrel, 33, 10);
356 default:
return EcalPnDiodeDetId(0);
367 case 7:
return EcalPnDiodeDetId(
EcalBarrel, 34, 9);
368 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 34, 5) : EcalPnDiodeDetId(
EcalBarrel, 34, 10);
369 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 34, 5) : EcalPnDiodeDetId(
EcalBarrel, 34, 10);
370 default:
return EcalPnDiodeDetId(0);
382 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 35, 5) : EcalPnDiodeDetId(
EcalBarrel, 35, 10);
383 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 35, 5) : EcalPnDiodeDetId(
EcalBarrel, 35, 10);
384 default:
return EcalPnDiodeDetId(0);
396 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 36, 5) : EcalPnDiodeDetId(
EcalBarrel, 36, 10);
397 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 36, 5) : EcalPnDiodeDetId(
EcalBarrel, 36, 10);
398 default:
return EcalPnDiodeDetId(0);
410 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 37, 5) : EcalPnDiodeDetId(
EcalBarrel, 37, 10);
411 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 37, 5) : EcalPnDiodeDetId(
EcalBarrel, 37, 10);
412 default:
return EcalPnDiodeDetId(0);
424 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 38, 5) : EcalPnDiodeDetId(
EcalBarrel, 38, 10);
425 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 38, 5) : EcalPnDiodeDetId(
EcalBarrel, 38, 10);
426 default:
return EcalPnDiodeDetId(0);
437 case 7:
return EcalPnDiodeDetId(
EcalBarrel, 39, 9);
438 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 39, 5) : EcalPnDiodeDetId(
EcalBarrel, 39, 10);
439 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 39, 5) : EcalPnDiodeDetId(
EcalBarrel, 39, 10);
440 default:
return EcalPnDiodeDetId(0);
452 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 40, 5) : EcalPnDiodeDetId(
EcalBarrel, 40, 10);
453 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 40, 5) : EcalPnDiodeDetId(
EcalBarrel, 40, 10);
454 default:
return EcalPnDiodeDetId(0);
466 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 41, 5) : EcalPnDiodeDetId(
EcalBarrel, 41, 10);
467 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 41, 5) : EcalPnDiodeDetId(
EcalBarrel, 41, 10);
468 default:
return EcalPnDiodeDetId(0);
480 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 42, 5) : EcalPnDiodeDetId(
EcalBarrel, 42, 10);
481 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 42, 5) : EcalPnDiodeDetId(
EcalBarrel, 42, 10);
482 default:
return EcalPnDiodeDetId(0);
494 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 43, 5) : EcalPnDiodeDetId(
EcalBarrel, 43, 10);
495 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 43, 5) : EcalPnDiodeDetId(
EcalBarrel, 43, 10);
496 default:
return EcalPnDiodeDetId(0);
508 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 44, 5) : EcalPnDiodeDetId(
EcalBarrel, 44, 10);
509 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 44, 5) : EcalPnDiodeDetId(
EcalBarrel, 44, 10);
510 default:
return EcalPnDiodeDetId(0);
522 case 8:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 45, 5) : EcalPnDiodeDetId(
EcalBarrel, 45, 10);
523 case 9:
return pnA ? EcalPnDiodeDetId(
EcalBarrel, 45, 5) : EcalPnDiodeDetId(
EcalBarrel, 45, 10);
524 default:
return EcalPnDiodeDetId(0);
550 case 10:
return pnA ? EcalPnDiodeDetId(
EcalEndcap, 51, 7) : EcalPnDiodeDetId(
EcalEndcap, 50, 2);
551 case 11:
return EcalPnDiodeDetId(
EcalEndcap, 50, 3);
552 case 12:
return pnA ? EcalPnDiodeDetId(
EcalEndcap, 51, 9) : EcalPnDiodeDetId(
EcalEndcap, 50, 4);
553 case 13:
return pnA ? EcalPnDiodeDetId(
EcalEndcap, 51, 10) : EcalPnDiodeDetId(
EcalEndcap, 50, 5);
554 case 14:
return pnA ? EcalPnDiodeDetId(
EcalEndcap, 51, 8) : EcalPnDiodeDetId(
EcalEndcap, 50, 3);
555 case 15:
return pnA ? EcalPnDiodeDetId(
EcalEndcap, 51, 6) : EcalPnDiodeDetId(
EcalEndcap, 50, 1);
556 case 16:
return pnA ? EcalPnDiodeDetId(
EcalEndcap, 51, 7) : EcalPnDiodeDetId(
EcalEndcap, 50, 2);
557 case 17:
return pnA ? EcalPnDiodeDetId(
EcalEndcap, 51, 10) : EcalPnDiodeDetId(
EcalEndcap, 50, 5);
558 case 18:
return pnA ? EcalPnDiodeDetId(
EcalEndcap, 51, 5) : EcalPnDiodeDetId(
EcalEndcap, 50, 10);
559 case 19:
return pnA ? EcalPnDiodeDetId(
EcalEndcap, 51, 9) : EcalPnDiodeDetId(
EcalEndcap, 50, 4);
560 default:
return EcalPnDiodeDetId(0);
573 case 10:
return pnA ? EcalPnDiodeDetId(
EcalEndcap, 47, 7) : EcalPnDiodeDetId(
EcalEndcap, 46, 2);
574 case 11:
return EcalPnDiodeDetId(
EcalEndcap, 46, 3);
575 case 12:
return pnA ? EcalPnDiodeDetId(
EcalEndcap, 47, 9) : EcalPnDiodeDetId(
EcalEndcap, 46, 4);
576 case 13:
return pnA ? EcalPnDiodeDetId(
EcalEndcap, 47, 10) : EcalPnDiodeDetId(
EcalEndcap, 46, 5);
577 case 14:
return pnA ? EcalPnDiodeDetId(
EcalEndcap, 47, 8) : EcalPnDiodeDetId(
EcalEndcap, 46, 3);
578 case 15:
return pnA ? EcalPnDiodeDetId(
EcalEndcap, 47, 6) : EcalPnDiodeDetId(
EcalEndcap, 46, 1);
579 case 16:
return pnA ? EcalPnDiodeDetId(
EcalEndcap, 47, 7) : EcalPnDiodeDetId(
EcalEndcap, 46, 2);
580 case 17:
return pnA ? EcalPnDiodeDetId(
EcalEndcap, 47, 10) : EcalPnDiodeDetId(
EcalEndcap, 46, 5);
581 case 18:
return pnA ? EcalPnDiodeDetId(
EcalEndcap, 47, 5) : EcalPnDiodeDetId(
EcalEndcap, 46, 10);
582 case 19:
return pnA ? EcalPnDiodeDetId(
EcalEndcap, 47, 9) : EcalPnDiodeDetId(
EcalEndcap, 46, 4);
583 default:
return EcalPnDiodeDetId(0);
590 case 4:
return EcalPnDiodeDetId(
EcalEndcap, 1, 9);
594 case 8:
return EcalPnDiodeDetId(
EcalEndcap, 1, 9);
606 default:
return EcalPnDiodeDetId(0);
629 default:
return EcalPnDiodeDetId(0);
static int lmmod(SuperCrysCoord iX, SuperCrysCoord iY)
int iphi() const
get the crystal iphi
EcalPnDiodeDetId pnForCrystal(DetId const &, char)
int ieta() const
get the crystal ieta
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
static int lmmod(EBGlobalCoord ieta, EBGlobalCoord iphi)
bool isCrystalId(DetId const &)
static int dee(SuperCrysCoord iX, SuperCrysCoord iY, int iz)
unsigned dccId(DetId const &)