Skip to content

Enable PreUserTrackingAction and fixes related to leaked energy#369

Merged
agheata merged 2 commits intoapt-sim:masterfrom
SeverinDiederichs:add_pretrackingaction
Mar 26, 2025
Merged

Enable PreUserTrackingAction and fixes related to leaked energy#369
agheata merged 2 commits intoapt-sim:masterfrom
SeverinDiederichs:add_pretrackingaction

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