mirror of
https://github.com/gwm17/Mask.git
synced 2024-11-22 10:18:50 -05:00
Fixed energy loss for case of neutron. Now returns zero (energy loss here only for ions)
This commit is contained in:
parent
ca7ae04f23
commit
736094c4e4
|
@ -50,7 +50,7 @@ namespace Mask {
|
|||
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;
|
||||
|
||||
double e_final = e_initial;
|
||||
|
|
Loading…
Reference in New Issue
Block a user