Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4INCL::NuclearDensityFunctions::HardSphere Class Reference

#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.
 
- Public Member Functions inherited from G4INCL::IFunction1D
 IFunction1D ()
 
 IFunction1D (const G4double x0, const G4double x1)
 
virtual ~IFunction1D ()
 
virtual G4double getXMinimum () const
 Return the minimum allowed value of the independent variable.
 
virtual G4double getXMaximum () const
 Return the maximum allowed value of the independent variable.
 
virtual G4double operator() (const G4double x) const =0
 Compute the value of the function.
 
virtual G4double integrate (const G4double x0, const G4double x1, const G4double step=-1.) const
 Integrate the function between two values.
 
IFunction1Dprimitive () const
 Return a pointer to the (numerical) primitive to this function.
 
InterpolationTableinverseCDFTable (ManipulatorFunc fWrap=0, const G4int nNodes=60) const
 Return a pointer to the inverse of the CDF of this function.
 

Protected Attributes

const G4double normalisation
 
- Protected Attributes inherited from G4INCL::IFunction1D
G4double xMin
 Minimum value of the independent variable.
 
G4double xMax
 Maximum value of the independent variable.
 

Additional Inherited Members

- Public Types inherited from G4INCL::IFunction1D
typedef G4double(*const ManipulatorFunc) (const G4double)
 Typedef to simplify the syntax of inverseCDFTable.
 

Detailed Description

Definition at line 57 of file G4INCLNDFHardSphere.hh.

Constructor & Destructor Documentation

◆ HardSphere()

G4INCL::NuclearDensityFunctions::HardSphere::HardSphere ( const G4double  rMax)
inline

Definition at line 59 of file G4INCLNDFHardSphere.hh.

59 :
60 // We let the function go up to rMax. This can be the Fermi momentum
61 // for a sphere in momentum space, or the surface radius for a
62 // hard-sphere nucleus.
63 IFunction1D(0., rMax),
64 normalisation(3./std::pow(rMax,3.))
65 {};

Member Function Documentation

◆ operator()()

G4double G4INCL::NuclearDensityFunctions::HardSphere::operator() ( const G4double  x) const
inlinevirtual

Compute the value of the function.

Implements G4INCL::IFunction1D.

Definition at line 67 of file G4INCLNDFHardSphere.hh.

67 {
68 return x*x*normalisation;
69 }

Member Data Documentation

◆ normalisation

const G4double G4INCL::NuclearDensityFunctions::HardSphere::normalisation
protected

Definition at line 71 of file G4INCLNDFHardSphere.hh.

Referenced by operator()().


The documentation for this class was generated from the following file: