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

#include <G4INCLNDFModifiedHarmonicOscillator.hh>

+ Inheritance diagram for G4INCL::NuclearDensityFunctions::ModifiedHarmonicOscillator:

Public Member Functions

 ModifiedHarmonicOscillator (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
 
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.
 

Detailed Description

Definition at line 80 of file G4INCLNDFModifiedHarmonicOscillator.hh.

Constructor & Destructor Documentation

◆ ModifiedHarmonicOscillator()

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

Member Function Documentation

◆ getDiffusenessParameter()

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

Definition at line 97 of file G4INCLNDFModifiedHarmonicOscillator.hh.

97{ return theDiffusenessParameter; };

◆ getRadiusParameter()

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

Definition at line 96 of file G4INCLNDFModifiedHarmonicOscillator.hh.

96{ return theRadiusParameter; };

◆ operator()()

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

Compute the value of the function.

Implements G4INCL::IFunction1D.

Definition at line 89 of file G4INCLNDFModifiedHarmonicOscillator.hh.

89 {
90 const G4double arg = std::pow((r/theDiffusenessParameter),2);
91 return normalisation * r * arg
93 * std::exp(-arg);
94 }
double G4double
Definition: G4Types.hh:64

◆ setDiffusenessParameter()

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

Definition at line 100 of file G4INCLNDFModifiedHarmonicOscillator.hh.

◆ setRadiusParameter()

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

Definition at line 99 of file G4INCLNDFModifiedHarmonicOscillator.hh.

99{ theRadiusParameter = r; };

Member Data Documentation

◆ normalisation

const G4double G4INCL::NuclearDensityFunctions::ModifiedHarmonicOscillator::normalisation
protected

Definition at line 104 of file G4INCLNDFModifiedHarmonicOscillator.hh.

Referenced by operator()().

◆ theDiffusenessParameter

G4double G4INCL::NuclearDensityFunctions::ModifiedHarmonicOscillator::theDiffusenessParameter
protected

◆ theRadiusParameter

G4double G4INCL::NuclearDensityFunctions::ModifiedHarmonicOscillator::theRadiusParameter
protected

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