Geant4 11.1.1
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.
 
InterpolationTableinverseCDFTable (ManipulatorFunc fWrap=0, 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.
 

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 55 of file G4INCLNDFWoodsSaxon.hh.

Constructor & Destructor Documentation

◆ WoodsSaxonRP()

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

Definition at line 57 of file G4INCLNDFWoodsSaxon.hh.

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

Member Function Documentation

◆ getDiffusenessParameter()

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

Definition at line 71 of file G4INCLNDFWoodsSaxon.hh.

71{ return theDiffusenessParameter; };

◆ getRadiusParameter()

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

Definition at line 70 of file G4INCLNDFWoodsSaxon.hh.

70{ 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 63 of file G4INCLNDFWoodsSaxon.hh.

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

◆ setDiffusenessParameter()

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

Definition at line 74 of file G4INCLNDFWoodsSaxon.hh.

◆ setRadiusParameter()

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

Definition at line 73 of file G4INCLNDFWoodsSaxon.hh.

73{ theRadiusParameter = r; };

Member Data Documentation

◆ theDiffusenessParameter

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

◆ theRadiusParameter

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

Definition at line 77 of file G4INCLNDFWoodsSaxon.hh.

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


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