28 #ifndef G4NuclearFermiDensity_h
29 #define G4NuclearFermiDensity_h 1
35 #include <CLHEP/Units/PhysicalConstants.h>
46 return 1./(1.+std::exp((aPosition.mag()-
theR)/
a));
51 return (maxRelativeDenisty>0 && maxRelativeDenisty <= 1 ) ?
52 (
theR +
a*std::log((1-maxRelativeDenisty+std::exp(-1*
theR/
a))/maxRelativeDenisty)) :
DBL_MAX;
58 if (currentR > 40*
theR ) {
return 0;}
CLHEP::Hep3Vector G4ThreeVector
G4double GetDeriv(const G4ThreeVector &aPosition) const
G4double GetRelativeDensity(const G4ThreeVector &aPosition) const
G4NuclearFermiDensity(G4int anA, G4int aZ)
G4double GetDensity(const G4ThreeVector &aPosition) const
G4double GetRadius(const G4double maxRelativeDenisty) const