File tree 2 files changed +8
-6
lines changed
core/include/traccc/fitting/kalman_filter
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -121,12 +121,6 @@ struct gain_matrix_updater {
121
121
const matrix_type<1 , 1 > chi2 = matrix_operator ().transpose (residual) *
122
122
matrix_operator ().inverse (R) * residual;
123
123
124
- // Make sure that the sign of qop does not change (This rarely happens
125
- // when qop is set with a poor seed resolution)
126
- assert (bound_params[e_bound_qoverp] *
127
- getter::element (filtered_vec, e_bound_qoverp, 0u ) >
128
- 0 .f );
129
-
130
124
// Set the stepper parameter
131
125
bound_params.set_vector (filtered_vec);
132
126
bound_params.set_covariance (filtered_cov);
Original file line number Diff line number Diff line change 11
11
#include " traccc/definitions/qualifiers.hpp"
12
12
#include " traccc/edm/track_state.hpp"
13
13
#include " traccc/fitting/kalman_filter/gain_matrix_updater.hpp"
14
+ #include " traccc/utils/particle.hpp"
14
15
15
16
// detray include(s).
16
17
#include " detray/propagator/base_actor.hpp"
@@ -105,9 +106,16 @@ struct kalman_actor : detray::actor {
105
106
106
107
// Run Kalman Gain Updater
107
108
const auto sf = navigation.get_surface ();
109
+
108
110
sf.template visit_mask <gain_matrix_updater<algebra_t >>(
109
111
trk_state, propagation._stepping ._bound_params );
110
112
113
+ // Change the charge of hypothesized particles when the sign of qop
114
+ // is changed (This rarely happens when qop is set with a poor seed
115
+ // resolution)
116
+ detail::correct_particle_hypothesis (stepping._ptc ,
117
+ trk_state.filtered ());
118
+
111
119
// Update iterator
112
120
actor_state.next ();
113
121
You can’t perform that action at this time.
0 commit comments