1
0
Fork 0
mirror of https://github.com/gwm17/Mask.git synced 2024-11-26 12:08:52 -05:00

Fixed energy loss for case of neutron. Now returns zero (energy loss here only for ions)

This commit is contained in:
Gordon McCann 2022-01-12 14:15:43 -05:00
parent ca7ae04f23
commit 736094c4e4

View File

@ -50,7 +50,7 @@ namespace Mask {
MP = MassLookup::GetInstance().FindMass(ZP, AP)*MEV2U; MP = MassLookup::GetInstance().FindMass(ZP, AP)*MEV2U;
} }
if(thickness == 0.0 || e_initial == 0.0) if(thickness == 0.0 || e_initial == 0.0 || zp == 0)
return 0; return 0;
double e_final = e_initial; double e_final = e_initial;