From b32ec26e1c54320c58d8f1a2cb9bb7cc176d8dd3 Mon Sep 17 00:00:00 2001
From: sgorbuno <se.gorbunov@gsi.de>
Date: Wed, 16 Jun 2021 19:16:08 +0000
Subject: [PATCH] bugfix in L1: wrong number of OpenMP locks

---
 reco/L1/L1Algo/L1Algo.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/reco/L1/L1Algo/L1Algo.cxx b/reco/L1/L1Algo/L1Algo.cxx
index 7b9644eb10..e54f650198 100644
--- a/reco/L1/L1Algo/L1Algo.cxx
+++ b/reco/L1/L1Algo/L1Algo.cxx
@@ -373,8 +373,8 @@ void L1Algo::SetData(vector<L1StsHit>& StsHits_, int nStsStrips_, const vector<f
   RealIHit_v_buf2.resize(nHits);
 
 #ifdef _OPENMP
-  fHitToBestTrackF.resize(NhitsGlobal * 2);
-  fHitToBestTrackB.resize(NhitsGlobal * 2);
+  fHitToBestTrackF.resize(NStsStrips);
+  fHitToBestTrackB.resize(NStsStrips);
   for (unsigned int j = 0; j < fHitToBestTrackB.size(); j++) {
     omp_init_lock(&fHitToBestTrackB[j]);
     omp_init_lock(&fHitToBestTrackF[j]);
-- 
GitLab