Skip to content

MuonReadoutGeometry: fix compilation problems in debug.

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