From 3d0e6a4dfc882bad19c082cad6e51ccc3998824b Mon Sep 17 00:00:00 2001
From: "se.gorbunov" <se.gorbunov@gsi.de>
Date: Sun, 14 Aug 2022 17:40:31 +0000
Subject: [PATCH] L1: bugfix

---
 reco/L1/L1Algo/L1CATrackFinder.cxx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/reco/L1/L1Algo/L1CATrackFinder.cxx b/reco/L1/L1Algo/L1CATrackFinder.cxx
index 6600ee1823..104d0147ae 100644
--- a/reco/L1/L1Algo/L1CATrackFinder.cxx
+++ b/reco/L1/L1Algo/L1CATrackFinder.cxx
@@ -1224,7 +1224,7 @@ inline void L1Algo::findTripletsStep3(  // input
   unsigned int Thread = 0;
 #endif
 
-  L1HitIndex_t ihitl_priv = 0;
+  L1HitIndex_t ihitl_prev = 0;
 
   for (Tindex i3 = 0; i3 < n3; ++i3) {
     const Tindex i3_V = i3 / fvecLen;
@@ -1246,12 +1246,12 @@ inline void L1Algo::findTripletsStep3(  // input
 
     unsigned int Location = PackTripletId(istal, Thread, fTriplets[istal][Thread].size());
 
-    if (ihitl_priv == 0 || ihitl_priv != hitsl_3[i3]) {
+    if (ihitl_prev != 1 + hitsl_3[i3]) {
       fHitFirstTriplet[ihitl] = Location;
       fHitNtriplets[ihitl]    = 0;
     }
 
-    ihitl_priv = hitsl_3[i3];
+    ihitl_prev = 1 + hitsl_3[i3];
 
 #ifdef DO_NOT_SELECT_TRIPLETS
     if (isec != TRACKS_FROM_TRIPLETS_ITERATION)
-- 
GitLab