11 edm::LogInfo(
"MTDGeom") <<
"Creating BTLNumberingScheme";
17 edm::LogInfo(
"MTDGeom") <<
"Deleting BTLNumberingScheme";
22 const uint32_t nLevels(baseNumber.
getLevels());
25 edm::LogInfo(
"MTDGeom") <<
"BTLNumberingScheme geometry levels = " << nLevels;
30 <<
"Not enough levels found in MTDBaseNumber ( " << nLevels <<
") Returning 0";
47 const std::string_view& modName(baseNumber.
getLevelName(2));
48 uint32_t pos = modName.find(
"Positive");
50 const uint32_t
zside = (pos <= modName.size() ? 1 : 0);
51 std::string_view baseName = modName.substr(modName.find(
':') + 1);
53 int tmptyp = ::atoi(&baseName.at(7));
56 }
else if (tmptyp == 33) {
59 const int modtyp(tmptyp);
63 if (1 > crystal || 64 < crystal) {
65 <<
"****************** Bad crystal number = " << crystal
70 if (1 > modtyp || 3 < modtyp) {
72 <<
"****************** Bad module name = " << modName
77 if (1 > modCopy || 54 < modCopy) {
79 <<
"****************** Bad module copy = " << modCopy
84 if (1 > rodCopy || 36 < rodCopy) {
86 <<
"****************** Bad rod copy = " << rodCopy
93 BTLDetId thisBTLdetid(zside, rodCopy, modCopy, modtyp, crystal);
94 const uint32_t intindex = thisBTLdetid.
rawId();
98 <<
" rod = " << rodCopy <<
" zside = " << zside <<
" module = " << modCopy
99 <<
" modtyp = " << modtyp <<
" crystal = " << crystal <<
" Raw Id = " << intindex <<
"\n"
~BTLNumberingScheme() override
constexpr uint32_t rawId() const
get the raw id
Log< level::Info, false > LogInfo
uint32_t getUnitID(const MTDBaseNumber &baseNumber) const override
int getCopyNumber(int level) const
Detector identifier class for the Barrel Timing Layer. The crystal count must start from 0...
std::string_view const & getLevelName(int level) const
Log< level::Warning, false > LogWarning