23 const uint32_t nLevels(baseNumber.
getLevels());
26 edm::LogInfo(
"MTDGeom") <<
"ETLNumberingScheme geometry levels = " << nLevels;
31 <<
"Not enough levels found in MTDBaseNumber ( " << nLevels <<
") Returning 0";
40 int ringCopy(::atoi(baseName.data() + 4));
42 uint32_t discN, sectorS, sectorN;
43 discN = (baseNumber.
getLevelName(4).find(
"Disc1") != std::string::npos) ? 0 : 1;
44 sectorS = (baseNumber.
getLevelName(3).find(
"Front") != std::string::npos) ? 0 : 1;
48 ringCopy =
static_cast<int>(tmpId.
encodeSector(discN, sectorS, sectorN));
50 modtyp = (baseNumber.
getLevelName(2).find(
"_Left") != std::string::npos) ? 1 : 2;
53 const std::string_view& sideName(baseNumber.
getLevelName(nSide));
54 if (sideName.find(
"CALOECTSFront") != std::string::npos) {
57 edm::LogWarning(
"MTDGeom") <<
"ETLNumberingScheme::getUnitID(): incorrect volume stack: \n" 67 const uint32_t
zside(sideCopy == 1 ? 1 : 0);
82 <<
"****************** Bad module name = " << modtyp
89 <<
"****************** 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;
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" int getCopyNumber(int level) const
static constexpr int kETLv4maxModule
uint32_t encodeSector(uint32_t &disc, uint32_t &discside, uint32_t §or) const
std::string_view const & getLevelName(int level) const
Log< level::Info, false > LogInfo
Detector identifier class for the Endcap Timing Layer.
Log< level::Warning, false > LogWarning
static constexpr int kETLv5maxModule
static constexpr int kETLv4maxRing