110 specs.
title =
"iphi";
115 specs.
title =
"ieta";
130 specs.
nbins = _zside ? 36 : 72;
132 specs.
high = _zside ? 36. : 72.;
133 specs.
title =
"iTCC";
136 specs.
nbins = _zside ? 9 : 18;
138 specs.
high = _zside ? 9. : 18.;
167 specs.
nbins = _zside ? 100 : 200;
173 specs.
nbins = _zside ? 20 : 40;
183 specs.
high = _zside ? 100. : 200.;
211 specs.
title =
"crystal";
214 specs.
nbins = isBarrel ? 68 : 80;
217 specs.
title =
"tower";
223 specs.
title =
"tower";
261 specs.
title = isBarrel ? (iSM <
kEBpLow ?
"-ieta" :
"ieta") :
"ix";
266 specs.
title = isBarrel ?
"iphi" :
"iy";
280 if(iSM ==
unsigned(-1) || _btype !=
kCrystal)
return specs;
286 if(_isMap) specs.
title =
"pseudo-strip";
287 else specs.
title =
"iPN";
293 specs.
title =
"channel";
310 specs.
title =
"iTCC";
316 specs.
title =
"iDCC";
366 if(_btype !=
kCrystal)
return specs;
390 int xbin(0), ybin(0);
396 int iphi(ebid.
iphi());
397 int ieta(ebid.
ieta());
401 ybin = ieta < 0 ? ieta + 86 : ieta + 85;
406 xbin = ieta < 0 ? -ieta : ieta;
407 ybin = ieta < 0 ? (iphi - 1) % 20 + 1 : 20 - (iphi - 1) % 20;
420 xbin = eeid.
zside() < 0 ? ix : ix + 100;
433 int iSM(_iSM >= 0 ? _iSM :
dccId(_id) - 1);
434 xbin = ix -
xlow_(iSM);
435 ybin = iy -
ylow_(iSM);
479 return (nbinsX + 2) * ybin + xbin;
501 int ieta(ttid.
ieta());
502 int iphi((ttid.
iphi() + 1) % 72 + 1);
506 ybin = ieta < 0 ? ieta + 18 : ieta + 17;
511 xbin = ieta < 0 ? -ieta : ieta;
512 ybin = ieta < 0 ? (iphi - 1) % 4 + 1 : 4 - (iphi - 1) % 4;
520 unsigned tccid(
tccId(_id));
521 unsigned iSM(tccid <= 36 ? tccid % 18 / 2 : (tccid - 72) % 18 / 2);
525 return (nbinsX + 2) * ybin + xbin;
538 int iphi(ebid.
iphi());
539 int ieta(ebid.
ieta());
542 xbin = (iphi - 1) / 5 + 1;
543 ybin = (ieta < 0 ? ieta + 85 : ieta + 84) / 5 + 1;
548 xbin = (ieta < 0 ? -ieta - 1 : ieta - 1) / 5 + 1;
549 ybin = (ieta < 0 ? (iphi - 1) % 20 : 19 - (iphi - 1) % 20) / 5 + 1;
565 xbin =
zside < 0 ? ix : ix + 20;
579 int iSM(_iSM >= 0 ? _iSM :
dccId(_id) - 1);
580 xbin = ix -
xlow_(iSM) / 5;
581 ybin = iy -
ylow_(iSM) / 5;
600 xbin = (eeid.
zside() < 0 ? ix - 1 : ix + 99) / 5 + 1;
601 ybin = (iy - 1) / 5 + 1;
606 xbin = (ix - 1) / 5 + 1;
607 ybin = (iy - 1) / 5 + 1;
613 int iSM(_iSM >= 0 ? _iSM :
dccId(_id) - 1);
614 xbin = (ix -
xlow_(iSM) - 1) / 5 + 1;
615 ybin = (iy -
ylow_(iSM) - 1) / 5 + 1;
631 int ieta(ttid.
ieta());
632 int iphi((ttid.
iphi() + 1) % 72 + 1);
636 ybin = ieta < 0 ? ieta + 18 : ieta + 17;
641 xbin = ieta < 0 ? -ieta : ieta;
642 ybin = ieta < 0 ? (iphi - 1) % 4 + 1 : 4 - (iphi - 1) % 4;
650 return (nbinsX + 2) * ybin + xbin;
659 int iDCC(_id.
dccId() - 1);
662 unsigned towerid(_id.
towerId());
666 xbin = 4 * ((iDCC - 9) % 18) + (isEBm ? towerid - 1 : 68 - towerid) % 4 + 1;
667 ybin = (towerid - 1) / 4 * (isEBm ? -1 : 1) + (isEBm ? 18 : 17);
671 xbin = (towerid - 1) / 4 + 1;
672 ybin = (isEBm ? towerid - 1 : 68 - towerid) % 4 + 1;
682 return (nbinsX + 2) * ybin + xbin;
int findBinCrystal_(ObjectType, DetId const &, int=-1)
unsigned memDCCIndex(unsigned)
int findBinTriggerTower_(ObjectType, DetId const &)
std::vector< DetId > dccConstituents(int dccId) const
Get the constituent detids for this dccId.
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
bool isBarrel(GeomDetEnumerators::SubDetector m)
EcalElectronicsMapping const * getElectronicsMap()
unsigned tccId(DetId const &)
int towerId() const
get the tower id
unsigned nSuperCrystals(unsigned)
int ieta() const
get the tower ieta
int iphi() const
get the crystal iphi
bool isEndcapTTId(DetId const &)
int iPnId() const
get the PnId
int findBinSuperCrystal_(ObjectType, DetId const &, int=-1)
AxisSpecs getBinningSMMEM_(BinningType, bool, unsigned, int)
AxisSpecs getBinningEB_(BinningType, bool, int)
EcalTrigTowerDetId tower() const
get the HCAL/trigger iphi of this crystal
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) ...
AxisSpecs getBinningSM_(BinningType, bool, unsigned, int)
int dccId() const
get the DCC (Ecal Local DCC value not global one) id
bool isEcalScDetId(DetId const &)
unsigned memDCCId(unsigned)
int iphi() const
get the tower iphi
AxisSpecs getBinningEE_(BinningType, bool, int, int)
AxisSpecs getBinningMEM_(BinningType, bool, int, int)
unsigned dccId(DetId const &)
AxisSpecs getBinningEcal_(BinningType, bool, int)