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

#include <G4INCLNDFWoodsSaxon.hh>

+ Inheritance diagram for G4INCL::NuclearDensityFunctions::WoodsSaxonRP:

Public Member Functions

 WoodsSaxonRP (G4double radiusParameter, G4double maximumRadius, G4double diffusenessParameter)
 
G4double operator() (const G4double r) const
 Compute the value of the function.
 
G4double getRadiusParameter ()
 
G4double getDiffusenessParameter ()
 
void setRadiusParameter (G4double r)
 
void setDiffusenessParameter (G4double a)
 
- 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.
 
InverseInterpolationTableinverseCDFTable (const G4int nNodes=60) const
 Return a pointer to the inverse of the CDF of this function.
 

Protected Attributes

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

Detailed Description

Definition at line 56 of file G4INCLNDFWoodsSaxon.hh.

Constructor & Destructor Documentation

◆ WoodsSaxonRP()

G4INCL::NuclearDensityFunctions::WoodsSaxonRP::WoodsSaxonRP ( G4double  radiusParameter,
G4double  maximumRadius,
G4double  diffusenessParameter 
)
inline

Definition at line 58 of file G4INCLNDFWoodsSaxon.hh.

58 :
59 IFunction1D(0., maximumRadius),
60 theRadiusParameter(radiusParameter),
61 theDiffusenessParameter(diffusenessParameter)
62 {}

Member Function Documentation

◆ getDiffusenessParameter()

G4double G4INCL::NuclearDensityFunctions::WoodsSaxonRP::getDiffusenessParameter ( )
inline

Definition at line 72 of file G4INCLNDFWoodsSaxon.hh.

72{ return theDiffusenessParameter; };

◆ getRadiusParameter()

G4double G4INCL::NuclearDensityFunctions::WoodsSaxonRP::getRadiusParameter ( )
inline

Definition at line 71 of file G4INCLNDFWoodsSaxon.hh.

71{ return theRadiusParameter; };

◆ operator()()

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

Compute the value of the function.

Implements G4INCL::IFunction1D.

Definition at line 64 of file G4INCLNDFWoodsSaxon.hh.

64 {
65 G4double wsax = std::pow(r,3)
67 /std::pow((1.0 + std::exp((r - theRadiusParameter)/theDiffusenessParameter)),2);
68 return wsax/theDiffusenessParameter;
69 }
double G4double
Definition: G4Types.hh:64

◆ setDiffusenessParameter()

void G4INCL::NuclearDensityFunctions::WoodsSaxonRP::setDiffusenessParameter ( G4double  a)
inline

Definition at line 75 of file G4INCLNDFWoodsSaxon.hh.

◆ setRadiusParameter()

void G4INCL::NuclearDensityFunctions::WoodsSaxonRP::setRadiusParameter ( G4double  r)
inline

Definition at line 74 of file G4INCLNDFWoodsSaxon.hh.

74{ theRadiusParameter = r; };

Member Data Documentation

◆ theDiffusenessParameter

G4double G4INCL::NuclearDensityFunctions::WoodsSaxonRP::theDiffusenessParameter
protected

◆ theRadiusParameter

G4double G4INCL::NuclearDensityFunctions::WoodsSaxonRP::theRadiusParameter
protected

Definition at line 78 of file G4INCLNDFWoodsSaxon.hh.

Referenced by getRadiusParameter(), operator()(), and setRadiusParameter().


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