Skip to content

Commit 6de3783

Browse files
committed
Backup
1 parent e197a48 commit 6de3783

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

core/include/traccc/edm/track_state.hpp

+8
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ struct fitting_result {
3636
// The number of holes (The number of sensitive surfaces which do not have a
3737
// measurement for the track pattern)
3838
unsigned int n_holes{0u};
39+
40+
// Reset the statistics
41+
TRACCC_HOST_DEVICE
42+
void reset_statistics() {
43+
ndf = 0.f;
44+
chi2 = 0.f;
45+
n_holes = 0u;
46+
}
3947
};
4048

4149
/// Fitting result per measurement

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

+3
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ class kalman_fitter {
178178
.template set_constraint<detray::step::constraint::e_accuracy>(
179179
m_cfg.propagation.stepping.step_constraint);
180180

181+
// Reset fitter statistics
182+
fitter_state.m_fit_res.reset_statistics();
183+
181184
// Run forward filtering
182185
propagator.propagate(propagation, fitter_state());
183186

0 commit comments

Comments
 (0)