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

refactor: Move actor state into propagator state #2552

Merged

Conversation

andiwand
Copy link
Contributor

I propose to move the actor state into the propagator state. This allows us to copy the whole propagator state and to start the propagation from a specific state after it stopped before.

Intention of this change is that algorithms may want to steer the propagation from the outside rather than from within by using an actor.

@andiwand andiwand added this to the next milestone Oct 17, 2023
@andiwand
Copy link
Contributor Author

@paulgessinger @benjaminhuth @asalzburger do you have some early feedback on this?

@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

Attention: 49 lines in your changes are missing coverage. Please review.

Comparison is base (9f4a569) 49.03% compared to head (f069ea4) 49.03%.

Files Patch % Lines
Core/include/Acts/Propagator/Propagator.ipp 46.00% 3 Missing and 24 partials ⚠️
...re/include/Acts/TrackFitting/GaussianSumFitter.hpp 35.29% 0 Missing and 11 partials ⚠️
...de/Acts/TrackFinding/CombinatorialKalmanFilter.hpp 33.33% 0 Missing and 4 partials ⚠️
...nclude/Acts/TrackFitting/GlobalChiSquareFitter.hpp 33.33% 0 Missing and 4 partials ⚠️
Core/include/Acts/TrackFitting/KalmanFitter.hpp 25.00% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2552      +/-   ##
==========================================
- Coverage   49.03%   49.03%   -0.01%     
==========================================
  Files         492      492              
  Lines       28526    28542      +16     
  Branches    13477    13487      +10     
==========================================
+ Hits        13989    13995       +6     
  Misses       4819     4819              
- Partials     9718     9728      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot added Infrastructure Changes to build tools, continous integration, ... Changes Performance labels Oct 26, 2023
@andiwand andiwand force-pushed the refactor-propagator-result-state-restart branch from 6467460 to 5c9aa03 Compare October 26, 2023 07:03
@github-actions github-actions bot removed Infrastructure Changes to build tools, continous integration, ... Changes Performance labels Oct 26, 2023
Copy link
Member

@paulgessinger paulgessinger left a comment

Choose a reason for hiding this comment

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

There are a number of cases where I wonder if you need to supply the explicit template parameters of you could let the compiler figure them out. Did you try this out?

Other than that, do you need the template if you don't supply explicit arguments? I thought this is just needed to disambiguate what <> means syntactically.

Core/include/Acts/Propagator/Propagator.ipp Outdated Show resolved Hide resolved
Core/include/Acts/TrackFitting/GaussianSumFitter.hpp Outdated Show resolved Hide resolved
Core/include/Acts/TrackFitting/GaussianSumFitter.hpp Outdated Show resolved Hide resolved
Core/include/Acts/TrackFitting/GaussianSumFitter.hpp Outdated Show resolved Hide resolved
Core/include/Acts/TrackFitting/GlobalChiSquareFitter.hpp Outdated Show resolved Hide resolved
Core/include/Acts/TrackFitting/GlobalChiSquareFitter.hpp Outdated Show resolved Hide resolved
@andiwand
Copy link
Contributor Author

There are a number of cases where I wonder if you need to supply the explicit template parameters of you could let the compiler figure them out. Did you try this out?

Other than that, do you need the template if you don't supply explicit arguments? I thought this is just needed to disambiguate what <> means syntactically.

big thanks for your comments @paulgessinger ! I am cleaning this out

asalzburger
asalzburger previously approved these changes Jan 18, 2024
Copy link
Contributor

@asalzburger asalzburger left a comment

Choose a reason for hiding this comment

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

I am happy with it now.

Copy link
Member

@paulgessinger paulgessinger left a comment

Choose a reason for hiding this comment

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

Found one more case, but not critical

Core/include/Acts/TrackFitting/GaussianSumFitter.hpp Outdated Show resolved Hide resolved
Co-authored-by: Paul Gessinger <hello@paulgessinger.com>
@kodiakhq kodiakhq bot merged commit 6f8e9b8 into acts-project:main Jan 19, 2024
52 checks passed
@acts-project-service
Copy link
Collaborator

🔴 Athena integration test results [6f8e9b8]

Build job with this PR failed!

Please investigate the build job for the pipeline!

@acts-project-service acts-project-service added the Breaks Athena build This PR breaks the Athena build label Jan 19, 2024
@andiwand andiwand deleted the refactor-propagator-result-state-restart branch January 19, 2024 13:50
@paulgessinger paulgessinger modified the milestones: next, v32.0.0 Jan 19, 2024
@paulgessinger paulgessinger added Breaks Athena build This PR breaks the Athena build and removed Breaks Athena build This PR breaks the Athena build labels Jan 23, 2024
LaraCalic pushed a commit to LaraCalic/acts that referenced this pull request Feb 10, 2024
I propose to move the actor state into the propagator state. This allows us to copy the whole propagator state and to start the propagation from a specific state after it stopped before.

Intention of this change is that algorithms may want to steer the propagation from the outside rather than from within by using an actor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaks Athena build This PR breaks the Athena build Component - Core Affects the Core module Track Finding Track Fitting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants