From 884e7c8231f36b98e07219ad7af0d4dbb1e8cadb Mon Sep 17 00:00:00 2001
From: scott snyder <sss@karma>
Date: Sun, 11 Apr 2021 17:57:01 -0400
Subject: [PATCH] InDetLowBetaFinder: Fix cppcheck warning.

Avoid possible out-of-bounds array indexing.
---
 .../InDetRecAlgs/InDetLowBetaFinder/src/LowBetaAlg.cxx        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/InnerDetector/InDetRecAlgs/InDetLowBetaFinder/src/LowBetaAlg.cxx b/InnerDetector/InDetRecAlgs/InDetLowBetaFinder/src/LowBetaAlg.cxx
index dbd320ee0fc..46cff0a34bc 100644
--- a/InnerDetector/InDetRecAlgs/InDetLowBetaFinder/src/LowBetaAlg.cxx
+++ b/InnerDetector/InDetRecAlgs/InDetLowBetaFinder/src/LowBetaAlg.cxx
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
 */
 
 ////////////////////////////////////////////////////////////////////
@@ -121,7 +121,7 @@ namespace InDet
                   CSMP_indicators.clear();
                   CSMP_indicators = ChargedSMPindicators(newtrack);
 
-                  if (CSMP_indicators.size() > 1){
+                  if (CSMP_indicators.size() > 10){
                     if(  ( (CSMP_indicators[5] > 15000.0)  || ((int)CSMP_indicators[4] > 10))   && ((unsigned int)CSMP_indicators[6] > m_minTRThits) )  {
 
                       float TRTToTdEdx           = CSMP_indicators[0];
-- 
GitLab