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

#include <G4INCLNDFGaussian.hh>

+ Inheritance diagram for G4INCL::NuclearDensityFunctions::Gaussian:

Public Member Functions

 Gaussian (G4double maximumRadius, G4double standardDeviation)
 
G4double operator() (const G4double r) const
 Compute the value of the function.
 
- 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 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 theStandardDeviation
 
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 71 of file G4INCLNDFGaussian.hh.

Constructor & Destructor Documentation

◆ Gaussian()

G4INCL::NuclearDensityFunctions::Gaussian::Gaussian ( G4double maximumRadius,
G4double standardDeviation )
inline

Definition at line 73 of file G4INCLNDFGaussian.hh.

Member Function Documentation

◆ operator()()

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

Compute the value of the function.

Implements G4INCL::IFunction1D.

Definition at line 79 of file G4INCLNDFGaussian.hh.

79 {
80 const G4double arg = std::pow((r/theStandardDeviation),2);
81 return normalisation * arg * std::exp(-arg/2.0);
82 }
double G4double
Definition G4Types.hh:83

Member Data Documentation

◆ normalisation

const G4double G4INCL::NuclearDensityFunctions::Gaussian::normalisation
protected

Definition at line 86 of file G4INCLNDFGaussian.hh.

Referenced by operator()().

◆ theStandardDeviation

G4double G4INCL::NuclearDensityFunctions::Gaussian::theStandardDeviation
protected

Definition at line 85 of file G4INCLNDFGaussian.hh.

Referenced by operator()().


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