12 edm::LogInfo(
"EcalGeom") <<
"Creating EcalEndcapNumberingScheme";
16 edm::LogInfo(
"EcalGeom") <<
"Deleting EcalEndcapNumberingScheme";
19 const uint32_t nLevels(baseNumber.
getLevels());
24 edm::LogWarning(
"EcalGeom") <<
"ECalEndcapNumberingScheme::getUnitID(): "
25 <<
"Not enough levels found in EcalBaseNumber ( " << nLevels <<
") Returning 0";
33 edm::LogWarning(
"EcalGeom") <<
"EalEndcaplNumberingScheme::getUnitID: No "
34 <<
"level found in EcalBaseNumber Returning 0";
43 edm::LogWarning(
"EcalGeom") <<
"ECalEndcapNumberingScheme::getUnitID: Null"
44 <<
" pointer to alveole ! Use default id=1";
48 int module_number = MVid;
49 int crystal_number = PVid;
63 const int icx(ic / 10);
64 const int icy(ic % 5);
66 const int isx(is / 10);
67 const int isy(is % 10);
74 const int ix(50 +
id * iz * (5 * isx + icx + 1) - (
id * iz - 1) / 2);
75 const int iy(50 +
id * iq * (5 * isy + icy + 1) - (
id * iq - 1) / 2);
81 if (0 > icx || 4 < icx || 0 > icy || 4 < icy) {
82 edm::LogWarning(
"EdalGeom") <<
"ECalEndcapNumberingScheme::getUnitID(): "
83 <<
"****************** Bad crystal number = " << ic
88 if (0 > isx || 9 < isx || 0 > isy || 9 < isy) {
89 edm::LogWarning(
"EdalGeom") <<
"ECalEndcapNumberingScheme::getUnitID(): "
90 <<
"****************** Bad supercrystal number = " << is
95 if (1 != iq && -1 != iq) {
96 edm::LogWarning(
"EdalGeom") <<
"ECalEndcapNumberingScheme::getUnitID(): "
97 <<
"****************** Bad quadrant number = " << iq
102 if (1 !=
id && -1 !=
id) {
103 edm::LogWarning(
"EdalGeom") <<
"ECalEndcapNumberingScheme::getUnitID(): "
104 <<
"****************** Bad dee number = " <<
id
109 if (-1 != iz && 1 != iz) {
110 edm::LogWarning(
"EdalGeom") <<
"ECalEndcapNumberingScheme::getUnitID(): "
111 <<
"****************** Bad z-end number = " << iz
117 edm::LogWarning(
"EdalGeom") <<
"ECalEndcapNumberingScheme::getUnitID(): "
118 <<
"****************** Bad DetId numbers = " << ix <<
", " << iy <<
", " << iz;