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

Enable PreUserTrackingAction and fixes related to leaked energy #369

Merged
merged 2 commits into from
Mar 26, 2025

Conversation

SeverinDiederichs
Copy link
Collaborator

This PR fixes multiple issues:

Now, the PreUserTrackingAction is also called. The Flag is renamed from /adept/CallPostUserSteppingAction to /adept/CallUserSteppingAction. Note, since we currently do not pass the steps done in G4 to the GPU, this works only if we track everywhere.

An early return for if nextstate outside was removed from the gamma kernel as it is needed to calculate the energy leak.
The ekin is set correctly for leaking positrons. The ekin is corrected for stopped electrons.

@SeverinDiederichs SeverinDiederichs changed the title Add pretrackingaction Enable PreUserTrackingAction and fixes related to leaked energy Mar 25, 2025
@phsft-bot
Copy link

Can one of the admins verify this patch?

@agheata agheata merged commit 871a671 into apt-sim:master Mar 26, 2025
3 checks passed
@SeverinDiederichs SeverinDiederichs deleted the add_pretrackingaction branch April 3, 2025 07:01
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