From 3ecd36fe411d6b75346aff51c4f88a388d6c53fc Mon Sep 17 00:00:00 2001
From: "se.gorbunov" <se.gorbunov@gsi.de>
Date: Thu, 9 Sep 2021 08:36:21 +0000
Subject: [PATCH] L1: bugfix in applying the time-measurement mask

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

diff --git a/reco/L1/L1Algo/L1Extrapolation.h b/reco/L1/L1Algo/L1Extrapolation.h
index 9696e97572..cda2a58b63 100644
--- a/reco/L1/L1Algo/L1Extrapolation.h
+++ b/reco/L1/L1Algo/L1Extrapolation.h
@@ -710,8 +710,8 @@ inline void L1ExtrapolateTime(L1TrackPar& T,  // input track parameters (x,y,tx,
 
   T.t += sqrt((T.tx * T.tx) + (T.ty * T.ty) + 1) * dz_mask / c_light;
 
-  const fvec k1 = dz_mask & T.tx / (c_light * sqrt((T.tx * T.tx) + (T.ty * T.ty) + 1));
-  const fvec k2 = dz_mask & T.ty / (c_light * sqrt((T.tx * T.tx) + (T.ty * T.ty) + 1));
+  const fvec k1 = dz_mask * T.tx / (c_light * sqrt((T.tx * T.tx) + (T.ty * T.ty) + 1));
+  const fvec k2 = dz_mask * T.ty / (c_light * sqrt((T.tx * T.tx) + (T.ty * T.ty) + 1));
 
   fvec c52 = T.C52;
   fvec c53 = T.C53;
-- 
GitLab