nrc-cnrc / EGSnrc

Toolkit for Monte Carlo simulation of ionizing radiation — Trousse d'outils logiciels pour la simulation Monte Carlo du rayonnement ionisant
http://nrc-cnrc.github.io/EGSnrc
GNU Affero General Public License v3.0
217 stars 146 forks source link

Fix egs++ iaea phsp scoring electron energy #1077

Closed rtownson closed 3 weeks ago

rtownson commented 10 months ago

Fix a bug in egs_phsp_scoring where the electron (and positron) energy for IAEA phase-spaces was written as the total energy instead of the kinetic energy. This is a critical bug and impacted all IAEA format phase-spaces generated from egs++ that contained charged particles.

Thanks to Erik Nilsson for reporting this issue!