From d58a3ce1f548ffe51cda77d01f2802b62f9a8041 Mon Sep 17 00:00:00 2001 From: Beomki Yeo Date: Fri, 13 Dec 2024 06:31:13 -0800 Subject: [PATCH] Backup --- .../include/traccc/fitting/kalman_filter/kalman_fitter.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/include/traccc/fitting/kalman_filter/kalman_fitter.hpp b/core/include/traccc/fitting/kalman_filter/kalman_fitter.hpp index 0df5ab6c5..1a90bf546 100644 --- a/core/include/traccc/fitting/kalman_filter/kalman_fitter.hpp +++ b/core/include/traccc/fitting/kalman_filter/kalman_fitter.hpp @@ -254,6 +254,11 @@ class kalman_fitter { } else { + // @NOTE: There is no backward filter in RTS smoother so there + // is no backward chi2 either. We just put the forward chi2 into + // backward chi2 for the pvalue test + last.backward_chi2() = last.filtered_chi2(); + for (typename vector_type< track_state>::reverse_iterator it = track_states.rbegin() + 1; @@ -264,6 +269,8 @@ class kalman_fitter { it->surface_link()}; sf.template visit_mask>( *it, *(it - 1)); + + it->backward_chi2() = it->filtered_chi2(); } } }