Skip to content

Commit

Permalink
Fix BTL numbering scheme for scenario v3, input by Geant4
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocos committed Jun 12, 2024
1 parent 00b743f commit 9468e88
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Geometry/MTDCommonData/src/BTLNumberingScheme.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ uint32_t BTLNumberingScheme::getUnitID(const MTDBaseNumber& baseNumber) const {
modCopy = negModCopy[modCopy - 1];
}

bool isV2(baseNumber.getLevelName(0).back() != 'l');
bool isV2(bareBaseName(baseNumber.getLevelName(0)).back() != 'l');

#ifdef EDM_ML_DEBUG
LogDebug("MTDGeom") << "BTLNumberingScheme::getUnitID(): isV2 " << isV2;
#endif

if (isV2) {
// V2: the type is embedded in crystal name
Expand Down

0 comments on commit 9468e88

Please sign in to comment.