Skip to content

Commit

Permalink
Backup
Browse files Browse the repository at this point in the history
  • Loading branch information
beomki-yeo committed Dec 12, 2024
1 parent 8a90557 commit 9259949
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct gain_matrix_updater {
TRACCC_HOST_DEVICE inline bool operator()(
const mask_group_t& /*mask_group*/, const index_t& /*index*/,
track_state<algebra_t>& trk_state,
bound_track_parameters& bound_params) const {
const bound_track_parameters& bound_params) const {

using shape_type = typename mask_group_t::value_type::shape;

Expand All @@ -63,7 +63,7 @@ struct gain_matrix_updater {
template <size_type D, typename shape_t>
TRACCC_HOST_DEVICE inline bool update(
track_state<algebra_t>& trk_state,
bound_track_parameters& bound_params) const {
const bound_track_parameters& bound_params) const {

static_assert(((D == 1u) || (D == 2u)),
"The measurement dimension should be 1 or 2");
Expand Down Expand Up @@ -138,9 +138,6 @@ struct gain_matrix_updater {
// Wrap the phi in the range of [-pi, pi]
wrap_phi(trk_state.filtered());

// Update the propagation flow
bound_params = trk_state.filtered();

return true;
}
};
Expand Down
5 changes: 3 additions & 2 deletions core/include/traccc/fitting/kalman_filter/kalman_actor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,11 @@ struct kalman_actor : detray::actor {
/// @return true if the iterator reaches the end of vector
TRACCC_HOST_DEVICE
bool is_complete() const {
/*
if (!backward_mode && m_it == m_track_states.end()) {
return true;
} else if (backward_mode && m_it_rev == m_track_states.rend()) {
return true;
}
*/
return false;
}

Expand Down Expand Up @@ -144,6 +142,9 @@ struct kalman_actor : detray::actor {
res = sf.template visit_mask<gain_matrix_updater<algebra_t>>(
trk_state, propagation._stepping.bound_params());

// Update the propagation flow
stepping.bound_params() = trk_state.filtered();

// Set full jacobian
trk_state.jacobian() = stepping.full_jacobian();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ struct two_filters_smoother {
return false;
}

// Update the propagation flow
// Update the bound track parameters
bound_params.set_vector(filtered_vec);
bound_params.set_covariance(filtered_cov);

Expand Down

0 comments on commit 9259949

Please sign in to comment.