Skip to content

Conversation

@nkrah
Copy link
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!!

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