Skip to content

Commit b2382a5

Browse files
committed
some fixes
1 parent 4fd0290 commit b2382a5

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

core/include/traccc/fitting/kalman_filter/kalman_actor.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,9 @@ struct kalman_actor : detray::actor {
212212
actor_state.next();
213213

214214
// Flag renavigation of the current candidate
215-
navigation.set_high_trust();
215+
if (math::fabs(navigation()) > 1.f * unit<float>::um) {
216+
navigation.set_high_trust();
217+
}
216218
}
217219
}
218220
};

core/include/traccc/fitting/kalman_filter/two_filters_smoother.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ struct two_filters_smoother {
185185

186186
// Calculate backward chi2
187187
const matrix_type<D, D> R = (I_m - H * K) * V;
188-
// assert(matrix::determinant(R) != 0.f);
188+
assert(matrix::determinant(R) != 0.f);
189189
assert(std::isfinite(matrix::determinant(R)));
190190
const matrix_type<1, 1> chi2 =
191191
algebra::matrix::transposed_product<true, false>(

device/common/include/traccc/finding/device/impl/propagate_to_next_surface.ipp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ TRACCC_HOST_DEVICE inline void propagate_to_next_surface(
6565
const bound_track_parameters<> in_par = params.at(param_id);
6666

6767
// Create propagator
68-
propagator_t propagator(cfg.propagation);
68+
auto alt_prop_cfg{cfg.propagation};
69+
alt_prop_cfg.navigation.estimate_scattering_noise = false;
70+
propagator_t propagator(alt_prop_cfg);
6971

7072
// Create propagator state
7173
typename propagator_t::state propagation(in_par, payload.field_data, det);
@@ -91,7 +93,7 @@ TRACCC_HOST_DEVICE inline void propagate_to_next_surface(
9193
s3};
9294
// Parameter resetter
9395
typename detray::detail::tuple_element<4, actor_tuple_type>::type::state s4{
94-
cfg.propagation};
96+
alt_prop_cfg};
9597
// Momentum aborter
9698
typename detray::detail::tuple_element<5, actor_tuple_type>::type::state s5;
9799
// CKF aborter

0 commit comments

Comments
 (0)