G4INCL::NuclearDensityFunctions::Gaussian Class Reference

#include <G4INCLNDFGaussian.hh>

Inheritance diagram for G4INCL::NuclearDensityFunctions::Gaussian:

G4INCL::IFunction1D

Public Member Functions

 Gaussian (G4double maximumRadius, G4double standardDeviation)
G4double operator() (const G4double r) const
 Compute the value of the function.

Protected Attributes

G4double theStandardDeviation
const G4double normalisation

Detailed Description

Definition at line 70 of file G4INCLNDFGaussian.hh.


Constructor & Destructor Documentation

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

Definition at line 72 of file G4INCLNDFGaussian.hh.

00072                                                                      :
00073           IFunction1D(0., maximumRadius),
00074           theStandardDeviation(standardDeviation),
00075           normalisation(std::sqrt(2./Math::pi)/theStandardDeviation)
00076       {}


Member Function Documentation

G4double G4INCL::NuclearDensityFunctions::Gaussian::operator() ( const G4double  r  )  const [inline, virtual]

Compute the value of the function.

Implements G4INCL::IFunction1D.

Definition at line 78 of file G4INCLNDFGaussian.hh.

References normalisation, and theStandardDeviation.

00078                                                            {
00079           const G4double arg = std::pow((r/theStandardDeviation),2);
00080           return normalisation * arg * std::exp(-arg/2.0);
00081         }


Field Documentation

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

Definition at line 85 of file G4INCLNDFGaussian.hh.

Referenced by operator()().

G4double G4INCL::NuclearDensityFunctions::Gaussian::theStandardDeviation [protected]

Definition at line 84 of file G4INCLNDFGaussian.hh.

Referenced by operator()().


The documentation for this class was generated from the following file:
Generated on Mon May 27 17:54:09 2013 for Geant4 by  doxygen 1.4.7