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) ? 2 : 1;
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
87 <<
"****************** Bad module copy = " << modCopy
95 <<
"****************** Bad ring copy = " << ringCopy
103 const uint32_t intindex = thisETLdetid.
rawId();
107 <<
" ring = " << ringCopy <<
" zside = " <<
zside <<
" module = " << modCopy
108 <<
" modtyp = " << modtyp <<
" Raw Id = " << intindex << thisETLdetid;
111 ETLDetId altETLdetid(
zside, discN, sectorS, sectorN, modCopy, modtyp);
112 const uint32_t altintindex = altETLdetid.
rawId();
113 if (intindex != altintindex) {
115 <<
"disc = " << discN <<
" disc side = " << sectorS <<
" sector = " << sectorN <<
"\n"