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

fix(processes/scoring): get phantom param from step #80

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

Conversation

decibelcooper
Copy link

This commit resolves Bugzilla/Geant4 – Problem 2636.

The changes to G4EnergySplitter here are focused on ensuring that each call to SplitEnergyInVolumes() utilizes the correct phantom parameterization. This involves the removal of the GetPhantomParam private method in favor of fetching the parameterization from the G4Step on each invocation of SplitEnergyInVolumes(). New exceptions are thrown if the G4Step does not refer to an appropriate phantom, or if the instance variable thePhantomParam is required but has not yet been initialized in SplitEnergyInVolumes().

Note

No tests have been added to accompany this change since the ContinuousTest build target and all other build targets seem to have no tests to build on 🤷‍♂️.

This commit resolves Bugzilla/Geant4 – Problem 2636.  The changes to G4EnergySplitter here are focused on ensuring that each call to SplitEnergyInVolumes() utilizes the correct phantom parameterization.  This involves the removal of the GetPhantomParam private method in favor of fetching the parameterization from the G4Step on each invocation of SplitEnergyInVolumes().  New exceptions are thrown if the G4Step does not refer to an appropriate phantom, or if the instance variable `thePhantomParam` is required but has not yet been initialized in SplitEnergyInVolumes().
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