Skip to content

Commit

Permalink
Backup
Browse files Browse the repository at this point in the history
  • Loading branch information
beomki-yeo committed Dec 9, 2024
1 parent 133fe57 commit d1ca5c5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/include/traccc/fitting/fitting_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace traccc {
/// Configuration struct for track fitting
struct fitting_config {

std::size_t n_max_iterations = 1;
std::size_t n_iterations = 1;

/// Propagation configuration
detray::propagation::config propagation{};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class kalman_fitter {
state& fitter_state) {

// Run the kalman filtering for a given number of iterations
for (std::size_t i = 0; i < m_cfg.n_max_iterations; i++) {
for (std::size_t i = 0; i < m_cfg.n_iterations; i++) {

// Reset the iterator of kalman actor
fitter_state.m_fit_actor_state.reset();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ TRACCC_DEVICE inline void find_tracks(
// Run the Kalman update
const bool res = sf.template visit_mask<
gain_matrix_updater<typename detector_t::algebra_type>>(
trk_state, in_par, false);
trk_state, in_par);

// The chi2 from Kalman update should be less than chi2_max
if (res && trk_state.filtered_chi2() < cfg.chi2_max) {
Expand Down
2 changes: 1 addition & 1 deletion tests/cpu/test_kalman_fitter_telescope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ TEST_P(KalmanFittingTelescopeTests, Run) {
-100.f * unit<float>::um;
fit_cfg.propagation.navigation.max_mask_tolerance = 1.f * unit<float>::mm;
fit_cfg.use_backward_filter = true;
fit_cfg.n_max_iterations = 1;
fit_cfg.n_iterations = 1;
fit_cfg.covariance_inflation_factor = 1e3;
traccc::host::kalman_fitting_algorithm fitting(fit_cfg, host_mr);

Expand Down

0 comments on commit d1ca5c5

Please sign in to comment.