Import Geant4 8.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 14:36:02 +02:00
parent d93e1e39a9
commit 8a51e0bc40
5471 changed files with 99628 additions and 55248 deletions
@@ -328,11 +328,7 @@ inline void G4KineticTrack::UpdateTrackingMomentum(const G4ThreeVector & aMoment
inline G4double G4KineticTrack::GetActualMass() const
{
G4ThreeVector theMomentum = the4Momentum.vect();
G4double theMomentum2 = theMomentum.mag2();
G4double theTotalEnergy = the4Momentum.e();
G4double theMass = std::sqrt(std::abs(theTotalEnergy * theTotalEnergy - theMomentum2));
return theMass;
return std::sqrt(std::abs(the4Momentum.mag2()));
}