-
Notifications
You must be signed in to change notification settings - Fork 67
Remove measurement dimension hack in KF #1195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,8 @@ | |
| #pragma once | ||
|
|
||
| // Project include(s). | ||
| #include <limits> | ||
|
|
||
| #include "traccc/definitions/qualifiers.hpp" | ||
| #include "traccc/definitions/track_parametrization.hpp" | ||
| #include "traccc/edm/measurement_collection.hpp" | ||
|
|
@@ -93,19 +95,20 @@ | |
| getter::element(H, 0u, e_bound_loc0) = -1; | ||
| } | ||
|
|
||
| // @TODO: Fix properly | ||
| if (/*dim == 1*/ getter::element(meas_local, 1u, 0u) == 0.f) { | ||
| getter::element(H, 1u, 0u) = 0.f; | ||
| getter::element(H, 1u, 1u) = 0.f; | ||
| if (dim == 1) { | ||
| // TODO: Fully understand the consequences of this. | ||
|
Check warning on line 99 in core/include/traccc/fitting/kalman_filter/gain_matrix_updater.hpp
|
||
| assert(getter::element(H, 1u, 0u) == 0.f); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe the subspace for line surfaces is not correct and these need to be set explicitly ? |
||
| assert(getter::element(H, 1u, 1u) == 0.f); | ||
| } | ||
|
|
||
| // Spatial resolution (Measurement covariance) | ||
| matrix_type<D, D> V; | ||
| edm::get_measurement_covariance<algebra_t>( | ||
| measurements.at(trk_state.measurement_index()), V); | ||
| // @TODO: Fix properly | ||
| if (/*dim == 1*/ getter::element(meas_local, 1u, 0u) == 0.f) { | ||
| getter::element(V, 1u, 1u) = 1000.f; | ||
| if (dim == 1) { | ||
stephenswat marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| // This value should never be used! | ||
| // TODO: Fully understand the consequences of this. | ||
|
Check warning on line 110 in core/include/traccc/fitting/kalman_filter/gain_matrix_updater.hpp
|
||
| getter::element(V, 1u, 1u) = std::numeric_limits<scalar>::max(); | ||
| } | ||
|
|
||
| TRACCC_DEBUG_HOST("Measurement position: " << meas_local); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.