Skip to content

Commit 18be934

Browse files
committed
Make min pathlength tolerance for aborting
1 parent 2c255f1 commit 18be934

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ struct kalman_actor : detray::actor {
9494

9595
// Run back filtering for smoothing, if true
9696
bool backward_mode = false;
97+
traccc::scalar min_path_length =
98+
-100.f * traccc::unit<traccc::scalar>::mm;
9799
};
98100

99101
/// Actor operation to perform the Kalman filtering
@@ -180,8 +182,7 @@ struct kalman_actor : detray::actor {
180182
// propagation
181183
// TODO: Use configuration instead of hardcoded value
182184
if (actor_state.backward_mode &&
183-
propagation._stepping.path_length() <
184-
-100.f * traccc::unit<traccc::scalar>::mm) {
185+
propagation._stepping.path_length() < actor_state.min_path_length) {
185186
propagation._heartbeat &= navigation.abort();
186187
return;
187188
}

0 commit comments

Comments
 (0)