Skip to content

Fix phsp scoring outside the geometry on entry #1273

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

rtownson
Copy link
Collaborator

@rtownson rtownson commented Mar 21, 2025

Fix a bug where particles were scored "on entry" in the phase-space even though they had left the overall geometry. This was occurring when the particles were only meant to be scored on entry to a particular geometry, if the region of the phase-space scoring geometry happened to be defined outside the actual geometry used in the simulation (like an infinite plane).

Note that this "fix" will prevent people from placing a scoring plane outside their defined geometry. Is that OK?

Bug was reported here:
https://www.reddit.com/r/EGSnrc/comments/1jga62g/framelike_structure_in_beamdp_xy_scatter_plot/

@blakewalters please check this!

Fix a bug where particles were scored in the phase-space even though
they had left the overall geometry. This was occurring even when the
particles were only meant to be scored on entry, if the region of the
phase-space scoring geometry happened to be defined outside the actual
geometry used in the simulation (like an infinite plane).
@rtownson rtownson added the bug label Mar 21, 2025
@rtownson rtownson added this to the Release 2026 milestone Mar 21, 2025
@rtownson rtownson self-assigned this Mar 21, 2025
@rtownson rtownson requested a review from a team as a code owner March 21, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant