Geant4 11.1.1
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.
 
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
 
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 79 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 94 of file G4INCLNDFModifiedHarmonicOscillator.hh.

94{ return theDiffusenessParameter; };

◆ getRadiusParameter()

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

Definition at line 93 of file G4INCLNDFModifiedHarmonicOscillator.hh.

93{ 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 88 of file G4INCLNDFModifiedHarmonicOscillator.hh.

88 {
89 const G4double arg = std::pow((r/theDiffusenessParameter),2);
90 return r*r*( 1. + theRadiusParameter * arg) * std::exp(-arg);
91 }
double G4double
Definition: G4Types.hh:83

◆ setDiffusenessParameter()

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

Definition at line 97 of file G4INCLNDFModifiedHarmonicOscillator.hh.

◆ setRadiusParameter()

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

Definition at line 96 of file G4INCLNDFModifiedHarmonicOscillator.hh.

96{ theRadiusParameter = r; };

Member Data Documentation

◆ normalisation

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

Definition at line 101 of file G4INCLNDFModifiedHarmonicOscillator.hh.

◆ 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: