From 722bd7ad693cc1a1914d0d181db43512cc585d88 Mon Sep 17 00:00:00 2001
From: "se.gorbunov" <se.gorbunov@gsi.de>
Date: Thu, 1 Sep 2022 22:24:30 +0000
Subject: [PATCH] L1: bugfix

---
 reco/L1/CbmL1Performance.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/reco/L1/CbmL1Performance.cxx b/reco/L1/CbmL1Performance.cxx
index 28dea69581..a002a0d46b 100644
--- a/reco/L1/CbmL1Performance.cxx
+++ b/reco/L1/CbmL1Performance.cxx
@@ -1520,7 +1520,7 @@ void CbmL1::TrackFitPerformance()
             z[1] = z[0];
           }
 
-          z[0] = 0;
+          z[0] = fpAlgo->GetParameters()->GetTargetPositionZ()[0];
           B[0] = targB;
           fld.Set(B[0], z[0], B[1], z[1], B[2], z[2]);
           L1Extrapolate(trPar, mc.z, trPar.qp, fld);
-- 
GitLab