19 const uint32_t nLevels(baseNumber.
getLevels());
22 edm::LogVerbatim(
"EcalGeom") <<
"ECalBarrelNumberingScheme geometry levels = " << nLevels;
25 edm::LogWarning(
"EcalGeom") <<
"ECalBarrelNumberingScheme::getUnitID(): "
26 <<
"Not enough levels found in EcalBaseNumber ( " << nLevels <<
") Returning 0";
32 const int cryType(::atoi(cryName.c_str() + 5));
34 const int off(13 < nLevels ? 3 : 0);
56 if (1 > cryType || 17 < cryType) {
57 edm::LogWarning(
"EdalGeom") <<
"ECalBarrelNumberingScheme::getUnitID(): "
58 <<
"****************** Bad crystal name = " << cryName
63 if (1 > wallCopy || 5 < wallCopy) {
64 edm::LogWarning(
"EcalGeom") <<
"ECalBarrelNumberingScheme::getUnitID(): "
65 <<
"****************** Bad wall copy = " << wallCopy
70 if (1 > hawCopy || 2 < hawCopy) {
71 edm::LogWarning(
"EcalGeom") <<
"ECalBarrelNumberingScheme::getUnitID(): "
72 <<
"****************** Bad haw copy = " << hawCopy
77 if (1 > fawCopy || 10 < fawCopy) {
78 edm::LogWarning(
"EcalGeom") <<
"ECalBarrelNumberingScheme::getUnitID(): "
79 <<
"****************** Bad faw copy = " << fawCopy
84 if (1 > supmCopy || 36 < supmCopy) {
85 edm::LogWarning(
"EcalGeom") <<
"ECalBarrelNumberingScheme::getUnitID(): "
86 <<
"****************** Bad supermodule copy = " << supmCopy
93 const int32_t zsign(18 < supmCopy ? -1 : 1);
95 const int32_t
eta(5 * (cryType - 1) + wallCopy);
97 const int32_t
phi(18 < supmCopy ? 20 * (supmCopy - 19) + 2 * (10 - fawCopy) + 3 - hawCopy
98 : 20 * (supmCopy - 1) + 2 * (fawCopy - 1) + hawCopy);
113 <<
"supmCopy = " << supmCopy <<
", fawCopy = " << fawCopy <<
", hawCopy = " << hawCopy
114 <<
", wallCopy = " << wallCopy <<
", cryType = " << cryType
115 <<
"\n zsign = " << zsign <<
", eta = " <<
eta <<
", phi = " <<
phi
116 <<
", packed index = 0x" << std::hex << intindex <<
std::dec;