Import Geant4 9.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 16:15:05 +02:00
parent b79225fb37
commit 74cad5e589
3877 changed files with 234205 additions and 167127 deletions
@@ -55,7 +55,9 @@ class G4NuclearFermiDensity : public G4VNuclearDensity
G4double GetDeriv(const G4ThreeVector & aPosition) const
{
return -std::exp((aPosition.mag()-theR)/a) * sqr(GetDensity(aPosition)) / (a*Getrho0());
G4double currentR=aPosition.mag();
if (currentR > 40*theR ) {return 0;}
else return -std::exp((currentR-theR)/a) * sqr(GetDensity(aPosition)) / (a*Getrho0());
}
private: