Skip to content

Fix user limits (step limiter)#835

Open
nkrah wants to merge 13 commits intomasterfrom
debug_slow_dose_actor
Open

Fix user limits (step limiter)#835
nkrah wants to merge 13 commits intomasterfrom
debug_slow_dose_actor

Conversation

@nkrah
Copy link
Copy Markdown
Collaborator

@nkrah nkrah commented Nov 5, 2025

This PR investigates an issue where the dose actor was slow in carbon ion therapy simulations.

The issue was:
GATE only allowed users to apply the step size limiter to a subset of particles, namely protons, electrons, positrons, and gammas, in analogy to production cuts. Geant4 can actually apply UserLimits to any particle and GATE v9 implemented this correctly.

Due to this difference in how step limiters were applied to particles, GATE v9 and GATE v10 behaved differently and resulted in comparatively slow performance in the simulations mentioned above.

This PR has one main commit which fixes and updates the handling of particle names to which UserLimits are applied. There is one commit which only includes debug statements.

That debug commit needs to be REMOVED before merging!!

@nkrah nkrah changed the title Debug slow dose actor Fix user limits (step limiter) Mar 13, 2026
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.

2 participants