Skip to content
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

update to detray v51 #510

Merged
merged 10 commits into from
Jan 16, 2024
Merged

Conversation

beomki-yeo
Copy link
Contributor

No description provided.

@krasznaa
Copy link
Member

@beomki-yeo, @niermann999, is this the update necessary for the full-chain? 🤔

It seems to be just a p_mag -> p_tot issue. Will you fix it?

Copy link
Member

@krasznaa krasznaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as the CI is happy, this should go in. As it is required for #509. 😉

Copy link
Member

@krasznaa krasznaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately the test failures are not something that I could/would fix. 😦

@beomki-yeo
Copy link
Contributor Author

Probably the changes in the detray::navigator are conflicting with traccc::kalman_actor. @niermann999 any thought?

@beomki-yeo
Copy link
Contributor Author

It might be something else because ckf does not use kalman actor as far as I know

@beomki-yeo
Copy link
Contributor Author

I believe this will fix the errors in the CI, but I cannot guarantee that this will work for ODD.

@beomki-yeo
Copy link
Contributor Author

@krasznaa

If you think the ODD test is not working in the current setup, I suggest to remove the detray::stepper_default_policy from the rk_stepper_type. This change should be available for CPU fitting and finding algorithm.

-    using rk_stepper_type = detray::rk_stepper<
-        b_field_t::view_t, typename host_detector_type::transform3,
-        detray::constrained_step<>, detray::stepper_default_policy>;

+   using rk_stepper_type = detray::rk_stepper<
+      b_field_t::view_t, typename host_detector_type::transform3,
+     detray::constrained_step<>>;

@krasznaa
Copy link
Member

Unfortunately as long as the tests keep failing, the PR definitely doesn't go in. 🤔

If anything, your latest changes only made things worse. 😦 Previously the failing tests complained about efficiencies going down a little bit. Now the tests don't find any tracks anymore. 😦

At the same time this gives me hope that the complete lack of track finding in #509 could potentially be fixed with a relatively small change.

@krasznaa
Copy link
Member

Actually, never mind. Even in #509 some of the tests complain about a complete lack of track finding. 🤔

[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from KalmanFitTelescopeValidation2/KalmanFittingTelescopeTests
[ RUN      ] KalmanFitTelescopeValidation2/KalmanFittingTelescopeTests.Run/0
WARNING: mask store has empty collection no. 1
WARNING: mask store has empty collection no. 2
WARNING: mask store has empty collection no. 3
WARNING: mask store has empty collection no. 4
WARNING: mask store has empty collection no. 5
WARNING: mask store has empty collection no. 6
WARNING: mask store has empty collection no. 7
WARNING: material store has empty collection no. 0
WARNING: material store has empty collection no. 1
WARNING: material store has empty collection no. 2
WARNING: material store has empty collection no. 4
WARNING: acceleration data structures store has empty collection no. 1
WARNING: acceleration data structures store has empty collection no. 2
WARNING: acceleration data structures store has empty collection no. 3
WARNING: acceleration data structures store has empty collection no. 4
WARNING: No entries in volume finder
Detector check: OK
/__w/traccc/traccc/tests/cpu/test_kalman_fitter_telescope.cpp:131: Failure
Expected equality of these values:
  track_candidates.size()
    Which is: 0
  n_truth_tracks
    Which is: 100
[  FAILED  ] KalmanFitTelescopeValidation2/KalmanFittingTelescopeTests.Run/0, where GetParam() = ("telescope_100_GeV_0_phi_muon", { 0, 0, 0 }, { 0, 0, 0 }, { 100, 100 }, { 0, 0 }, { 0, 0 }, -1, 100, 100) (107 ms)
[----------] 1 test from KalmanFitTelescopeValidation2/KalmanFittingTelescopeTests (107 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (107 ms total)

Still, I can reasonably hope that whatever broke those tests, is what makes traccc_seq_example not find any tracks either. 🤔

@beomki-yeo
Copy link
Contributor Author

@krasznaa I adjusted the input parameter to pass the CI test.

Copy link
Member

@krasznaa krasznaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm generally on board, just some simple questions...

tests/cpu/test_kalman_fitter_wire_chamber.cpp Outdated Show resolved Hide resolved
tests/cuda/test_ckf_toy_detector.cpp Outdated Show resolved Hide resolved
@@ -193,7 +193,7 @@ INSTANTIATE_TEST_SUITE_P(
::testing::Values(std::make_tuple(
"wire_10_GeV_muon", std::array<scalar, 3u>{0.f, 0.f, 0.f},
std::array<scalar, 3u>{0.f, 0.f, 0.f},
std::array<scalar, 2u>{10.f, 10.f}, std::array<scalar, 2u>{-1.f, 1.f},
std::array<scalar, 2u>{10.f, 10.f}, std::array<scalar, 2u>{-0.3f, 0.3f},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@krasznaa Just commenting on this change, the eta range is changing from [-1,1] -> [-0.3, 0.3].

Yeah so nothing has been fixed yet and I am avoiding to face the problem in this PR

@beomki-yeo beomki-yeo merged commit 9d37f66 into acts-project:main Jan 16, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants