Skip to content
Snippets Groups Projects
Commit e0038630 authored by matta's avatar matta
Browse files

* Correct calculation of the nuclei mass

 - The code was returning the atomic mass instead of the nuclear one
parent e3317e2a
No related branches found
No related tags found
No related merge requests found
......@@ -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 ;
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment