diff --git a/PhysicsAnalysis/JetTagging/JetTagPerformanceCalibration/xAODBTaggingEfficiency/Root/BTaggingSelectionTool.cxx b/PhysicsAnalysis/JetTagging/JetTagPerformanceCalibration/xAODBTaggingEfficiency/Root/BTaggingSelectionTool.cxx
index 99215ccb0efe9262023e0cfdffc2c71e1574b0af..66fbf30bca7e88b10b40d14d0a68521e7ca4e0d1 100644
--- a/PhysicsAnalysis/JetTagging/JetTagPerformanceCalibration/xAODBTaggingEfficiency/Root/BTaggingSelectionTool.cxx
+++ b/PhysicsAnalysis/JetTagging/JetTagPerformanceCalibration/xAODBTaggingEfficiency/Root/BTaggingSelectionTool.cxx
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
 */
 
 #include "xAODBTaggingEfficiency/BTaggingSelectionTool.h"
@@ -487,8 +487,8 @@ asg::AcceptData BTaggingSelectionTool::accept(double pT, double eta, double weig
       }
 
   }else if(m_tagger.constcut != nullptr && m_tagger.spline == nullptr) {
-    cutvalueA = m_tagger.constcut[0](0);
-    cutvalueB = m_tagger.constcut[0](1);
+    cutvalueA = std::as_const(m_tagger.constcut)[0](0);
+    cutvalueB = std::as_const(m_tagger.constcut)[0](1);
 
     ATH_MSG_VERBOSE( "Cut values " << cutvalueA << " " << cutvalueB );