Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes
G4INCL::NuclearDensityFunctions::WoodsSaxonRP Class Reference

#include <G4INCLNDFWoodsSaxon.hh>

Inheritance diagram for G4INCL::NuclearDensityFunctions::WoodsSaxonRP:
G4INCL::IFunction1D

Public Member Functions

 WoodsSaxonRP (G4double radiusParameter, G4double maximumRadius, G4double diffusenessParameter)
 
G4double operator() (const G4double r) const
 Compute the value of the function. More...
 
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. More...
 
virtual G4double getXMaximum () const
 Return the maximum allowed value of the independent variable. More...
 
virtual G4double integrate (const G4double x0, const G4double x1, const G4double step=-1.) const
 Integrate the function between two values. More...
 
IFunction1Dprimitive () const
 Return a pointer to the (numerical) primitive to this function. More...
 
InverseInterpolationTableinverseCDFTable (const G4int nNodes=60) const
 Return a pointer to the inverse of the CDF of this function. More...
 

Protected Attributes

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

Detailed Description

Definition at line 54 of file G4INCLNDFWoodsSaxon.hh.

Constructor & Destructor Documentation

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

Definition at line 56 of file G4INCLNDFWoodsSaxon.hh.

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

Member Function Documentation

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

Definition at line 69 of file G4INCLNDFWoodsSaxon.hh.

References theRadiusParameter.

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

Compute the value of the function.

Implements G4INCL::IFunction1D.

Definition at line 62 of file G4INCLNDFWoodsSaxon.hh.

References theDiffusenessParameter, and theRadiusParameter.

62  {
63  G4double wsax = std::pow(r,3)
65  /std::pow((1.0 + std::exp((r - theRadiusParameter)/theDiffusenessParameter)),2);
66  return wsax/theDiffusenessParameter;
67  }
double G4double
Definition: G4Types.hh:76
void G4INCL::NuclearDensityFunctions::WoodsSaxonRP::setDiffusenessParameter ( G4double  a)
inline
void G4INCL::NuclearDensityFunctions::WoodsSaxonRP::setRadiusParameter ( G4double  r)
inline

Field Documentation

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

Definition at line 73 of file G4INCLNDFWoodsSaxon.hh.

Referenced by getDiffusenessParameter(), and operator()().

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

Definition at line 73 of file G4INCLNDFWoodsSaxon.hh.

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


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