G4INCL::NuclearDensityFunctions::HardSphere Class Reference

#include <G4INCLNDFHardSphere.hh>

Inheritance diagram for G4INCL::NuclearDensityFunctions::HardSphere:

G4INCL::IFunction1D

Public Member Functions

 HardSphere (const G4double rMax)
G4double operator() (const G4double x) const
 Compute the value of the function.

Protected Attributes

const G4double normalisation

Detailed Description

Definition at line 56 of file G4INCLNDFHardSphere.hh.


Constructor & Destructor Documentation

G4INCL::NuclearDensityFunctions::HardSphere::HardSphere ( const G4double  rMax  )  [inline]

Definition at line 58 of file G4INCLNDFHardSphere.hh.

00058                                         :
00059           // We let the function go up to rMax. This can be the Fermi momentum
00060           // for a sphere in momentum space, or the surface radius for a
00061           // hard-sphere nucleus.
00062           IFunction1D(0., rMax),
00063           normalisation(3./std::pow(rMax,3.))
00064       {};


Member Function Documentation

G4double G4INCL::NuclearDensityFunctions::HardSphere::operator() ( const G4double  x  )  const [inline, virtual]

Compute the value of the function.

Implements G4INCL::IFunction1D.

Definition at line 66 of file G4INCLNDFHardSphere.hh.

References normalisation.

00066                                                            {
00067           return x*x*normalisation;
00068         }


Field Documentation

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

Definition at line 70 of file G4INCLNDFHardSphere.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