From 6f40ef3761f0ab1a58cd89d77c958152f2353cb3 Mon Sep 17 00:00:00 2001 From: "se.gorbunov" <se.gorbunov@gsi.de> Date: Thu, 16 Sep 2021 21:44:57 +0000 Subject: [PATCH] L1: bugfix: broken if() statement --- reco/L1/L1Algo/L1CATrackFinder.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/reco/L1/L1Algo/L1CATrackFinder.cxx b/reco/L1/L1Algo/L1CATrackFinder.cxx index d98a0989c0..587a761d43 100644 --- a/reco/L1/L1Algo/L1CATrackFinder.cxx +++ b/reco/L1/L1Algo/L1CATrackFinder.cxx @@ -1,6 +1,6 @@ /* Copyright (C) 2009-2021 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt SPDX-License-Identifier: GPL-3.0-only - Authors: Valentina Akishina, Ivan Kisel, Sergey Gorbunov, Igor Kulakov, Maksym Zyzak */ + Authors: Valentina Akishina, Ivan Kisel, Sergey Gorbunov [committer], Igor Kulakov, Maksym Zyzak */ /* *===================================================== @@ -2280,10 +2280,12 @@ void L1Algo::CATrackFinder() } } - if (fmCBMmode) - if (tr.NHits <= 3) check = 0; - else if (tr.NHits < 3) - check = 0; + if (fmCBMmode) { + if (tr.NHits <= 3) { check = 0; } + } + else { + if (tr.NHits < 3) { check = 0; } + } if (check) { #ifdef EXTEND_TRACKS -- GitLab