Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4INCL::NuclearDensityFunctions::GaussianRP Class Reference

#include <G4INCLNDFGaussian.hh>

Inheritance diagram for G4INCL::NuclearDensityFunctions::GaussianRP:
Collaboration diagram for G4INCL::NuclearDensityFunctions::GaussianRP:

Public Member Functions

 GaussianRP (G4double maximumRadius, G4double standardDeviation)
 
G4double operator() (const G4double r) const
 Compute the value of the function. More...
 
- 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...
 
InterpolationTableinverseCDFTable (ManipulatorFunc fWrap=0, const G4int nNodes=60) const
 Return a pointer to the inverse of the CDF of this function. More...
 

Protected Attributes

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

Additional Inherited Members

- Public Types inherited from G4INCL::IFunction1D
typedef G4double(*const ManipulatorFunc )(const G4double)
 Typedef to simplify the syntax of inverseCDFTable. More...
 

Detailed Description

Definition at line 55 of file G4INCLNDFGaussian.hh.

Constructor & Destructor Documentation

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

Definition at line 57 of file G4INCLNDFGaussian.hh.

57  :
58  IFunction1D(0., maximumRadius),
59  theStandardDeviation(standardDeviation)
60  {}

Member Function Documentation

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

Compute the value of the function.

Implements G4INCL::IFunction1D.

Definition at line 62 of file G4INCLNDFGaussian.hh.

62  {
63  const G4double arg = std::pow((r/theStandardDeviation),2);
64  return r*r*arg*std::exp(-arg/2.0);
65  }
double G4double
Definition: G4Types.hh:76

Member Data Documentation

G4double G4INCL::NuclearDensityFunctions::GaussianRP::theStandardDeviation
protected

Definition at line 68 of file G4INCLNDFGaussian.hh.


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