Skip to content

Commit

Permalink
Lower the value of qop stddevs (#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
beomki-yeo authored Oct 4, 2024
1 parent 14d4882 commit 5eda9c8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ struct gain_matrix_updater {
const matrix_type<1, 1> chi2 = matrix_operator().transpose(residual) *
matrix_operator().inverse(R) * residual;

// Make sure that the sign of qop does not change (This rarely happens
// when qop is set with a poor seed resolution)
assert(bound_params[e_bound_qoverp] *
getter::element(filtered_vec, e_bound_qoverp, 0u) >
0.f);

// Set the stepper parameter
bound_params.set_vector(filtered_vec);
bound_params.set_covariance(filtered_cov);
Expand Down
2 changes: 1 addition & 1 deletion examples/run/cpu/truth_fitting_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ int main(int argc, char* argv[]) {
0.03f * detray::unit<scalar>::mm,
0.017f,
0.017f,
0.01f / detray::unit<scalar>::GeV,
0.001f / detray::unit<scalar>::GeV,
1.f * detray::unit<scalar>::ns};

// Fitting algorithm object
Expand Down
2 changes: 1 addition & 1 deletion examples/run/cuda/truth_fitting_example_cuda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ int main(int argc, char* argv[]) {
0.03f * detray::unit<scalar>::mm,
0.017f,
0.017f,
0.01f / detray::unit<scalar>::GeV,
0.001f / detray::unit<scalar>::GeV,
1.f * detray::unit<scalar>::ns};

// Fitting algorithm object
Expand Down
2 changes: 1 addition & 1 deletion tests/common/tests/kalman_fitting_toy_detector_test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class KalmanFittingToyDetectorTests : public KalmanFittingTests {
0.01f * detray::unit<scalar>::mm,
0.001f,
0.001f,
0.01f / detray::unit<scalar>::GeV,
0.001f / detray::unit<scalar>::GeV,
0.01f * detray::unit<scalar>::ns};

protected:
Expand Down

0 comments on commit 5eda9c8

Please sign in to comment.