10 edm::LogInfo(
"MTDGeom") <<
"Creating ETLNumberingScheme";
16 edm::LogInfo(
"MTDGeom") <<
"Deleting ETLNumberingScheme";
21 const uint32_t nLevels(baseNumber.
getLevels());
24 edm::LogInfo(
"MTDGeom") <<
"ETLNumberingScheme geometry levels = " << nLevels;
29 <<
"Not enough levels found in MTDBaseNumber ( " << nLevels <<
") Returning 0";
35 const bool preTDR = (baseNumber.
getLevelName(3).find(
"Ring") != std::string::npos);
42 int ringCopy(::atoi(baseName.c_str() + 4));
44 uint32_t discN, sectorS, sectorN;
46 discN = (baseNumber.
getLevelName(4).find(
"Disc1") != std::string::npos) ? 0 : 1;
47 sectorS = (baseNumber.
getLevelName(3).find(
"Front") != std::string::npos) ? 0 : 1;
51 ringCopy = static_cast<int>(tmpId.
encodeSector(discN, sectorS, sectorN));
53 modtyp = (baseNumber.
getLevelName(2).find(
"_Left") != std::string::npos) ? 1 : 2;
60 if (sideName.find(
"CALOECTSFront") != std::string::npos) {
64 const uint32_t
zside(sideCopy == 1 ? 1 : 0);
77 if ((modtyp != 0 && preTDR) || (modtyp == 0 && !preTDR)) {
79 <<
"****************** Bad module name = " << modtyp
85 (!preTDR && (1 > modCopy ||
88 <<
"****************** Bad module copy = " << modCopy
96 <<
"****************** Bad ring copy = " << ringCopy
104 const uint32_t intindex = thisETLdetid.
rawId();
108 <<
" ring = " << ringCopy <<
" zside = " <<
zside <<
" module = " << modCopy
109 <<
" modtyp = " << modtyp <<
" Raw Id = " << intindex << thisETLdetid;
112 ETLDetId altETLdetid(
zside, discN, sectorS, sectorN, modCopy, modtyp);
113 const uint32_t altintindex = altETLdetid.
rawId();
114 if (intindex != altintindex) {
116 <<
"disc = " << discN <<
" disc side = " << sectorS <<
" sector = " << sectorN <<
"\n"