From eb1084918934c7a54f049254b7fa2d4c8457d696 Mon Sep 17 00:00:00 2001 From: Xiaocong Ai <xiaocong.ai@cern.ch> Date: Fri, 28 Feb 2025 06:13:24 +0100 Subject: [PATCH] further fix --- Tracking/Acts/FaserActsKalmanFilter/src/CKF2.cxx | 10 +++++----- .../FaserActsKalmanFilter/src/KalmanFitterTool.cxx | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Tracking/Acts/FaserActsKalmanFilter/src/CKF2.cxx b/Tracking/Acts/FaserActsKalmanFilter/src/CKF2.cxx index 3a1122d04..09b1c377d 100644 --- a/Tracking/Acts/FaserActsKalmanFilter/src/CKF2.cxx +++ b/Tracking/Acts/FaserActsKalmanFilter/src/CKF2.cxx @@ -225,9 +225,9 @@ StatusCode CKF2::execute() { else return false; }); - allTracks.remove_if([&](const TrackInfo &p) { - return (p.nMeasurements <= 12); - }); + //allTracks.remove_if([&](const TrackInfo &p) { + // return (p.nMeasurements <= 12); + //}); while (not allTracks.empty()) { TrackInfo selected = allTracks.front(); @@ -238,7 +238,7 @@ StatusCode CKF2::execute() { if(not allTracks.empty()){ allTracks.remove_if([&](const TrackInfo &p) { - return ((p.clusterSet & selected.clusterSet).count() > 6); + return ((p.nMeasurements <= 12) || ((p.clusterSet & selected.clusterSet).count() > 6)); }); } } @@ -268,7 +268,7 @@ StatusCode CKF2::execute() { outputTracks->push_back(std::move(trk2)); } else { outputTracks->push_back(std::move(trk)); - ATH_MSG_WARNING("Re-Fit failed."); + ATH_MSG_WARNING("Re-Fit either not performed or failed."); } } diff --git a/Tracking/Acts/FaserActsKalmanFilter/src/KalmanFitterTool.cxx b/Tracking/Acts/FaserActsKalmanFilter/src/KalmanFitterTool.cxx index 6971ae7a4..4d4a7125d 100644 --- a/Tracking/Acts/FaserActsKalmanFilter/src/KalmanFitterTool.cxx +++ b/Tracking/Acts/FaserActsKalmanFilter/src/KalmanFitterTool.cxx @@ -356,7 +356,7 @@ KalmanFitterTool::fit(const EventContext &ctx, const Acts::GeometryContext &gctx } - // set the start position 5 mm in front of the first track measurement + // set the start position 10 mm in front of the first track measurement double origin = inputTrack->trackParameters()->front()->position().z() - 10; auto pSurface = Acts::Surface::makeShared<Acts::PlaneSurface>( -- GitLab