Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
El bind energy correction for z>100
Browse files Browse the repository at this point in the history
  • Loading branch information
xaratustrah committed Apr 23, 2014
1 parent a9a7c62 commit 99099c8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Particle.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ TString Particle::getResults()
s += "\nDetailed information:\n";
s += "---------------------\n\n";
s += Form("Atom. Mass:\t\t%.12g [u]\n", getAtomicMassInU());
s += Form("El. Binding En.:\t%d [eV]\n", getElBiEn(zz,qq));
if(zz<=100)
s += Form("El. Binding En.:\t%d [eV]\n", getElBiEn(zz,qq));
else
s += Form("El. Binding En.:\tNot supported: Ionic mass = atomic mass.\n");
s += Form("Ion. Mass:\t\t%.12g [u]\n", getIonicMassInU());
s += Form("\t\t\t%.12g [MeV/c^2]\n", toMeV(getIonicMassInU()));
s += Form("\t\t\t%.12g [Kg]\n", toKg(getIonicMassInU()));
Expand Down Expand Up @@ -195,7 +198,10 @@ Double_t Particle::getAtomicMassInU(){

//______________________________________________________________________________
Double_t Particle::getIonicMassInU(){
return getAtomicMassInU()+toU((getElBiEn(zz, 0)-getElBiEn(zz, qq))/1.0e6-qq*ME);
if(zz<=100)
return getAtomicMassInU()+toU((getElBiEn(zz, 0)-getElBiEn(zz, qq))/1.0e6-qq*ME);
else
return getAtomicMassInU();
}

//______________________________________________________________________________
Expand Down

0 comments on commit 99099c8

Please sign in to comment.