11 edm::LogInfo(
"EcalGeom") <<
"Creating EcalBarrelNumberingScheme";
15 edm::LogInfo(
"EcalGeom") <<
"Deleting EcalBarrelNumberingScheme";
19 const uint32_t nLevels(baseNumber.
getLevels());
24 edm::LogWarning(
"EcalGeom") <<
"ECalBarrelNumberingScheme::getUnitID(): "
25 <<
"Not enough levels found in EcalBaseNumber ( " << nLevels <<
") Returning 0";
31 const int cryType(::atoi(cryName.c_str() + 5));
33 const int off(12 < nLevels ? 3 : 0);
51 if (1 > cryType || 17 < cryType) {
52 edm::LogWarning(
"EdalGeom") <<
"ECalBarrelNumberingScheme::getUnitID(): "
53 <<
"****************** Bad crystal name = " << cryName
58 if (1 > wallCopy || 5 < wallCopy) {
59 edm::LogWarning(
"EcalGeom") <<
"ECalBarrelNumberingScheme::getUnitID(): "
60 <<
"****************** Bad wall copy = " << wallCopy
65 if (1 > hawCopy || 2 < hawCopy) {
66 edm::LogWarning(
"EcalGeom") <<
"ECalBarrelNumberingScheme::getUnitID(): "
67 <<
"****************** Bad haw copy = " << hawCopy
72 if (1 > fawCopy || 10 < fawCopy) {
73 edm::LogWarning(
"EcalGeom") <<
"ECalBarrelNumberingScheme::getUnitID(): "
74 <<
"****************** Bad faw copy = " << fawCopy
79 if (1 > supmCopy || 36 < supmCopy) {
80 edm::LogWarning(
"EcalGeom") <<
"ECalBarrelNumberingScheme::getUnitID(): "
81 <<
"****************** Bad supermodule copy = " << supmCopy
88 const int32_t zsign(18 < supmCopy ? -1 : 1);
90 const int32_t
eta(5 * (cryType - 1) + wallCopy);
92 const int32_t
phi(18 < supmCopy ? 20 * (supmCopy - 19) + 2 * (10 - fawCopy) + 3 - hawCopy
93 : 20 * (supmCopy - 1) + 2 * (fawCopy - 1) + hawCopy);