Geant4  10.02.p02
G4SimpleIntegration Class Reference

#include <G4SimpleIntegration.hh>

Public Member Functions

 G4SimpleIntegration (function pFunction)
 
 G4SimpleIntegration (function pFunction, G4double pTolerance)
 
 ~G4SimpleIntegration ()
 
G4double Trapezoidal (G4double xInitial, G4double xFinal, G4int iterationNumber)
 
G4double MidPoint (G4double xInitial, G4double xFinal, G4int iterationNumber)
 
G4double Gauss (G4double xInitial, G4double xFinal, G4int iterationNumber)
 
G4double Simpson (G4double xInitial, G4double xFinal, G4int iterationNumber)
 
G4double AdaptGaussIntegration (G4double xInitial, G4double xFinal)
 

Protected Member Functions

G4double Gauss (G4double xInitial, G4double xFinal)
 
void AdaptGauss (G4double xInitial, G4double xFinal, G4double &sum, G4int &depth)
 

Private Member Functions

 G4SimpleIntegration (const G4SimpleIntegration &)
 
G4SimpleIntegrationoperator= (const G4SimpleIntegration &)
 

Private Attributes

function fFunction
 
G4double fTolerance
 
const G4int fMaxDepth
 

Detailed Description

Definition at line 64 of file G4SimpleIntegration.hh.

Constructor & Destructor Documentation

G4SimpleIntegration::G4SimpleIntegration ( function  pFunction)
explicit

Definition at line 36 of file G4SimpleIntegration.cc.

G4SimpleIntegration::G4SimpleIntegration ( function  pFunction,
G4double  pTolerance 
)

Definition at line 43 of file G4SimpleIntegration.cc.

G4SimpleIntegration::~G4SimpleIntegration ( )

Definition at line 52 of file G4SimpleIntegration.cc.

G4SimpleIntegration::G4SimpleIntegration ( const G4SimpleIntegration )
private

Member Function Documentation

void G4SimpleIntegration::AdaptGauss ( G4double  xInitial,
G4double  xFinal,
G4double sum,
G4int depth 
)
protected

Definition at line 160 of file G4SimpleIntegration.cc.

References FatalException, fMaxDepth, fTolerance, G4Exception(), and Gauss().

Referenced by AdaptGaussIntegration().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4SimpleIntegration::AdaptGaussIntegration ( G4double  xInitial,
G4double  xFinal 
)

Definition at line 134 of file G4SimpleIntegration.cc.

References AdaptGauss().

+ Here is the call graph for this function:

G4double G4SimpleIntegration::Gauss ( G4double  xInitial,
G4double  xFinal,
G4int  iterationNumber 
)

Definition at line 91 of file G4SimpleIntegration.cc.

References fFunction, and x.

Referenced by AdaptGauss().

+ Here is the caller graph for this function:

G4double G4SimpleIntegration::Gauss ( G4double  xInitial,
G4double  xFinal 
)
protected

Definition at line 145 of file G4SimpleIntegration.cc.

References fFunction.

G4double G4SimpleIntegration::MidPoint ( G4double  xInitial,
G4double  xFinal,
G4int  iterationNumber 
)

Definition at line 75 of file G4SimpleIntegration.cc.

References fFunction, and x.

G4SimpleIntegration& G4SimpleIntegration::operator= ( const G4SimpleIntegration )
private
G4double G4SimpleIntegration::Simpson ( G4double  xInitial,
G4double  xFinal,
G4int  iterationNumber 
)

Definition at line 109 of file G4SimpleIntegration.cc.

References fFunction, and x.

G4double G4SimpleIntegration::Trapezoidal ( G4double  xInitial,
G4double  xFinal,
G4int  iterationNumber 
)

Definition at line 59 of file G4SimpleIntegration.cc.

References fFunction, and x.

Member Data Documentation

function G4SimpleIntegration::fFunction
private

Definition at line 115 of file G4SimpleIntegration.hh.

Referenced by Gauss(), MidPoint(), Simpson(), and Trapezoidal().

const G4int G4SimpleIntegration::fMaxDepth
private

Definition at line 117 of file G4SimpleIntegration.hh.

Referenced by AdaptGauss().

G4double G4SimpleIntegration::fTolerance
private

Definition at line 116 of file G4SimpleIntegration.hh.

Referenced by AdaptGauss().


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