Skip to content
Snippets Groups Projects

MuonReadoutGeometry: fix compilation problems in debug.

Merged Edward Moyse requested to merge emoyse/athena:main-fix-tgc into main

The problem was here:

#ifdef NDEBUG
    float TgcReadoutElement::gangThickness(int /*gasGap*/, int /*gang*/) const
#else
    float TgcReadoutElement::gangThickness(int gasGap, int gang) const
#endif
    {
        assert(validGang(gasGap, gang));
        return 0.05 * CLHEP::mm;
    }

const was removed in opt but not dbg. But we cannot remove const here too because validGang is const, and changing this will have knock-on consequences in all the other const methods.

Reverting the static change for this function.

Fixes ATLASRECTS-7858

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading