#include <G4INCLNDFHardSphere.hh>
Inheritance diagram for G4INCL::NuclearDensityFunctions::HardSphere:
Public Member Functions | |
HardSphere (const G4double rMax) | |
G4double | operator() (const G4double x) const |
Compute the value of the function. | |
Protected Attributes | |
const G4double | normalisation |
Definition at line 56 of file G4INCLNDFHardSphere.hh.
G4INCL::NuclearDensityFunctions::HardSphere::HardSphere | ( | const G4double | rMax | ) | [inline] |
Definition at line 58 of file G4INCLNDFHardSphere.hh.
00058 : 00059 // We let the function go up to rMax. This can be the Fermi momentum 00060 // for a sphere in momentum space, or the surface radius for a 00061 // hard-sphere nucleus. 00062 IFunction1D(0., rMax), 00063 normalisation(3./std::pow(rMax,3.)) 00064 {};
G4double G4INCL::NuclearDensityFunctions::HardSphere::operator() | ( | const G4double | x | ) | const [inline, virtual] |
Compute the value of the function.
Implements G4INCL::IFunction1D.
Definition at line 66 of file G4INCLNDFHardSphere.hh.
References normalisation.
00066 { 00067 return x*x*normalisation; 00068 }
const G4double G4INCL::NuclearDensityFunctions::HardSphere::normalisation [protected] |