Skip to content

Commit

Permalink
Avoid dependence on namespace in volume name string (ok for geometry …
Browse files Browse the repository at this point in the history
…test, not for Geant4)
  • Loading branch information
fabiocos committed Apr 3, 2019
1 parent e10171a commit 0c3767e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Geometry/MTDCommonData/src/ETLNumberingScheme.cc
Expand Up @@ -47,7 +47,7 @@ uint32_t ETLNumberingScheme::getUnitID(const MTDBaseNumber& baseNumber) const {
int nSide(7);
const std::string& sideName ( baseNumber.getLevelName( nSide ) ) ;
// Side choice: from scenario D41 is given by level 8 (HGCal v10)
if ( sideName == "caloBase:CALOECTSFront" ) { nSide = 8 ;}
if ( sideName.find("CALOECTSFront") != std::string::npos ) { nSide = 8 ;}
const uint32_t sideCopy ( baseNumber.getCopyNumber( nSide ) ) ;
const uint32_t zside ( sideCopy == 1 ? 1 : 0 ) ;

Expand Down

0 comments on commit 0c3767e

Please sign in to comment.