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 minor bug in DOSRZnrc kerma calculation #621

Merged
merged 2 commits into from Aug 18, 2020
Merged

Conversation

rtownson
Copy link
Contributor

@rtownson rtownson commented Aug 11, 2020

Fix the DOSRZnrc kerma calculation so that sub-threshold fluorescent photons (iarg=33) are included in the kerma. This bug meant that D/K and D/Kcol were not equal to 1 for some cases, up to about a 0.8% difference. This makes the algorithm slightly different from the g app, where only primary photons are considered, because DOSRZnrc includes the kerma from secondary photons.

Add some output formatting improvements to DOSRZnrc. Also add the IDC or I Double Count variable to allow the user to avoid including k.e. released by any bremsstrahlung or 511 photons. Some comments are also added to improve the readability of the code, and a never-reached code block was removed.

Thanks to Dave Rogers and Ernesto for all their work on these improvements!

@rtownson
Copy link
Contributor Author

This Travis CI build failed on egs++ for some reason, and I don't seem to have an option to restart the build. @ftessier are you able to do this, so I don't have to push a new commit to trigger it?

@ftessier
Copy link
Member

Compilation fails, reportedly on building the egs++ library; don't know why, and no modification here related to egs++. I am able to build this branch without issue locally (?)

@ftessier
Copy link
Member

Relaunched the build and it passed.

Fix the DOSRZnrc kerma calculation so that sub-threshold fluorescent
photons (iarg=33) are included in the kerma. This bug meant that D/K and
D/Kcol were not equal to 1 for some cases, up to about a 0.8%
difference. This makes the algorithm slightly different from the g app,
where only primary photons are considered, because DOSRZnrc includes the
kerma from secondary photons.
Improve some output formatting in DOSRZnrc. Also add the IDC (I Double
Count) variable to allow the user to exclude kinetic energy released by
any bremsstrahlung or 511 keV photons. Some comments are also added to
improve code readability, and a never-reached code block was removed.
@ftessier ftessier merged commit 7deb83b into develop Aug 18, 2020
@ftessier ftessier deleted the fix-dosrz-kerma branch August 18, 2020 02:57
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.

None yet

4 participants