From e0038630df29179e41a87a3f8515ae4af207c94e Mon Sep 17 00:00:00 2001 From: matta <matta@npt> Date: Tue, 12 Mar 2013 10:51:44 +0000 Subject: [PATCH] * Correct calculation of the nuclei mass - The code was returning the atomic mass instead of the nuclear one --- NPLib/Physics/NPNucleus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NPLib/Physics/NPNucleus.h b/NPLib/Physics/NPNucleus.h index e3e12992e..b983cc8fa 100644 --- a/NPLib/Physics/NPNucleus.h +++ b/NPLib/Physics/NPNucleus.h @@ -120,7 +120,7 @@ namespace NPL { void SetBeta(double beta) {fBeta = beta; BetaToGamma(); BetaToEnergy(); EnergyToTof(); EnergyToBrho();BetaToVelocity();} // Nuclear mass in MeV - double Mass() const {return (fAtomicWeight*amu_c2 + fMassExcess/1000.);} + double Mass() const {return (fAtomicWeight*amu_c2 + fMassExcess/1000. - fCharge*electron_mass_c2);} void Print() const ; }; } -- GitLab