File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,14 @@ struct fitting_result {
36
36
// The number of holes (The number of sensitive surfaces which do not have a
37
37
// measurement for the track pattern)
38
38
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
+ }
39
47
};
40
48
41
49
// / Fitting result per measurement
Original file line number Diff line number Diff line change @@ -178,6 +178,9 @@ class kalman_fitter {
178
178
.template set_constraint <detray::step::constraint::e_accuracy>(
179
179
m_cfg.propagation .stepping .step_constraint );
180
180
181
+ // Reset fitter statistics
182
+ fitter_state.m_fit_res .reset_statistics ();
183
+
181
184
// Run forward filtering
182
185
propagator.propagate (propagation, fitter_state ());
183
186
You can’t perform that action at this time.
0 commit comments