Skip to content

Commit 9468e88

Browse files
committed
Fix BTL numbering scheme for scenario v3, input by Geant4
1 parent 00b743f commit 9468e88

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Geometry/MTDCommonData/src/BTLNumberingScheme.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ uint32_t BTLNumberingScheme::getUnitID(const MTDBaseNumber& baseNumber) const {
117117
modCopy = negModCopy[modCopy - 1];
118118
}
119119

120-
bool isV2(baseNumber.getLevelName(0).back() != 'l');
120+
bool isV2(bareBaseName(baseNumber.getLevelName(0)).back() != 'l');
121+
122+
#ifdef EDM_ML_DEBUG
123+
LogDebug("MTDGeom") << "BTLNumberingScheme::getUnitID(): isV2 " << isV2;
124+
#endif
121125

122126
if (isV2) {
123127
// V2: the type is embedded in crystal name

0 commit comments

Comments
 (0)