G4INCL::NuclearDensityFunctions::GaussianRP Class Reference

#include <G4INCLNDFGaussian.hh>

Inheritance diagram for G4INCL::NuclearDensityFunctions::GaussianRP:

G4INCL::IFunction1D

Public Member Functions

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

Protected Attributes

G4double theStandardDeviation

Detailed Description

Definition at line 54 of file G4INCLNDFGaussian.hh.


Constructor & Destructor Documentation

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

Definition at line 56 of file G4INCLNDFGaussian.hh.

00056                                                                        :
00057           IFunction1D(0., maximumRadius),
00058           theStandardDeviation(standardDeviation)
00059       {}


Member Function Documentation

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

Compute the value of the function.

Implements G4INCL::IFunction1D.

Definition at line 61 of file G4INCLNDFGaussian.hh.

References theStandardDeviation.

00061                                                            {
00062           const G4double arg = std::pow((r/theStandardDeviation),2);
00063           return r*r*arg*std::exp(-arg/2.0);
00064         }


Field Documentation

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

Definition at line 67 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