Geant4  10.02.p01
nf_gammaFunctions.cc File Reference
#include "nf_specialFunctions.h"
+ Include dependency graph for nf_gammaFunctions.cc:

Go to the source code of this file.

Macros

#define MAXGAM   171.624376956302725
 
#define MAXSTIR   143.01608
 
#define MAXLGM   2.556348e305
 

Functions

static double stirf (double x, nfu_status *status)
 
static double lgam (double x, int *sgngam, nfu_status *status)
 
double nf_gammaFunction (double x, nfu_status *status)
 
double nf_logGammaFunction (double x, nfu_status *status)
 

Variables

static double P []
 
static double Q []
 
static double LOGPI = 1.14472988584940017414
 
static double SQTPI = 2.50662827463100050242E0
 
static double STIR [5] = { 7.873113957930936284e-4, -2.2954996161337812638e-4, -2.6813261780578123283e-3, 3.472222216054586673e-3, 8.3333333333348225713e-2 }
 
static double A []
 
static double B []
 
static double C []
 
static double LS2PI = 0.91893853320467274178
 

Macro Definition Documentation

#define MAXGAM   171.624376956302725

Definition at line 93 of file nf_gammaFunctions.cc.

#define MAXLGM   2.556348e305

Definition at line 201 of file nf_gammaFunctions.cc.

Referenced by lgam().

#define MAXSTIR   143.01608

Definition at line 99 of file nf_gammaFunctions.cc.

Referenced by stirf().

Function Documentation

static double lgam ( double  x,
int *  sgngam,
nfu_status *  status 
)
static

Definition at line 219 of file nf_gammaFunctions.cc.

References DBL_MAX, G4Log(), LS2PI, MAXLGM, nf_p1evl(), nf_polevl(), w, x, and z.

Referenced by nf_logGammaFunction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double nf_gammaFunction ( double  x,
nfu_status *  status 
)

Definition at line 126 of file nf_gammaFunctions.cc.

References DBL_MAX, isfinite, nf_polevl(), stirf(), x, and z.

Referenced by nf_incompleteGammaFunction(), and nf_incompleteGammaFunctionComplementary().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double nf_logGammaFunction ( double  x,
nfu_status *  status 
)

Definition at line 206 of file nf_gammaFunctions.cc.

References isfinite, and lgam().

+ Here is the call graph for this function:

static double stirf ( double  x,
nfu_status *  status 
)
static

Definition at line 106 of file nf_gammaFunctions.cc.

References G4Exp(), G4Pow::GetInstance(), MAXSTIR, nf_polevl(), G4Pow::powA(), w, and x.

Referenced by nf_gammaFunction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

double A[]
static
Initial value:
= { 8.11614167470508450300E-4, -5.95061904284301438324E-4, 7.93650340457716943945E-4,
-2.77777777730099687205E-3, 8.33333333333331927722E-2 }

Definition at line 194 of file nf_gammaFunctions.cc.

double B[]
static
Initial value:
= { -1.37825152569120859100E3, -3.88016315134637840924E4, -3.31612992738871184744E5,
-1.16237097492762307383E6, -1.72173700820839662146E6, -8.53555664245765465627E5 }

Definition at line 196 of file nf_gammaFunctions.cc.

double C[]
static
Initial value:
= { -3.51815701436523470549E2, -1.70642106651881159223E4, -2.20528590553854454839E5,
-1.13933444367982507207E6, -2.53252307177582951285E6, -2.01889141433532773231E6 }

Definition at line 198 of file nf_gammaFunctions.cc.

double LOGPI = 1.14472988584940017414
static

Definition at line 94 of file nf_gammaFunctions.cc.

double LS2PI = 0.91893853320467274178
static

Definition at line 200 of file nf_gammaFunctions.cc.

Referenced by lgam().

double P[]
static
Initial value:
= { 1.60119522476751861407E-4, 1.19135147006586384913E-3, 1.04213797561761569935E-2, 4.76367800457137231464E-2,
2.07448227648435975150E-1, 4.94214826801497100753E-1, 9.99999999999999996796E-1 }

Definition at line 89 of file nf_gammaFunctions.cc.

Referenced by G4VarNtp::addParticle(), G4LEpp::ApplyYourself(), G4LEHadronProtonElastic::ApplyYourself(), G4LEnp::ApplyYourself(), G4LFission::ApplyYourself(), G4QuasiElRatios::CalcQF2IN_Ratio(), G4ChipsAntiBaryonInelasticXS::CalculateCrossSection(), G4ChipsProtonInelasticXS::CalculateCrossSection(), G4ChipsHyperonInelasticXS::CalculateCrossSection(), G4ChipsKaonMinusInelasticXS::CalculateCrossSection(), G4ChipsPionMinusInelasticXS::CalculateCrossSection(), G4ChipsKaonPlusInelasticXS::CalculateCrossSection(), G4ChipsNeutronInelasticXS::CalculateCrossSection(), G4ChipsPionPlusInelasticXS::CalculateCrossSection(), G4GNASHTransitions::CalculateProbability(), G4PreCompoundTransitions::CalculateProbability(), G4QuasiElRatios::ChExer(), G4QGSDiffractiveExcitation::ChooseP(), G4DiffractiveExcitation::ChooseP(), G4ChipsProtonInelasticXS::CrossSectionFormula(), G4ChipsHyperonInelasticXS::CrossSectionFormula(), G4ChipsKaonMinusInelasticXS::CrossSectionFormula(), G4ChipsPionMinusInelasticXS::CrossSectionFormula(), G4ChipsKaonPlusInelasticXS::CrossSectionFormula(), G4ChipsNeutronInelasticXS::CrossSectionFormula(), G4ChipsPionPlusInelasticXS::CrossSectionFormula(), G4ChipsAntiBaryonInelasticXS::CrossSectionLog(), G4ChipsProtonInelasticXS::CrossSectionLog(), G4ChipsHyperonInelasticXS::CrossSectionLog(), G4ChipsKaonMinusInelasticXS::CrossSectionLog(), G4ChipsPionMinusInelasticXS::CrossSectionLog(), G4ChipsKaonPlusInelasticXS::CrossSectionLog(), G4ChipsNeutronInelasticXS::CrossSectionLog(), G4ChipsPionPlusInelasticXS::CrossSectionLog(), RMC01AnalysisManager::EndOfEventForForwardSimulation(), G4UnstableFermiFragment::FillFragment(), G4FragmentingString::G4FragmentingString(), G4INCL::Particle::getBeta(), G4DELPHIMagField::GetFieldValue(), G4HETCFragment::IntegrateEmissionProbability(), G4HETCAlpha::K(), G4HETCProton::K(), G4HETCHe3::K(), G4HETCTriton::K(), G4HETCDeuteron::K(), G4HETCNeutron::K(), G4FermiPhaseSpaceDecay::KopylovNBodyDecay(), G4GDMLReadMaterials::MaterialRead(), nf_Legendre_evauluateAtMu(), G4ScreenedNuclearRecoil::PostStepDoIt(), G4PreCompoundNucleon::ProbabilityDistributionFunction(), G4PreCompoundIon::ProbabilityDistributionFunction(), G4FermiPhaseSpaceDecay::PtwoBody(), G4QuasiElRatios::Scatter(), G4DNAMolecularReactionData::SetArrehniusParameterization(), G4ReactionTableMessenger::SetNewValue(), and G4GDMLWriteStructure::TraverseVolumeTree().

double SQTPI = 2.50662827463100050242E0
static

Definition at line 95 of file nf_gammaFunctions.cc.

double STIR[5] = { 7.873113957930936284e-4, -2.2954996161337812638e-4, -2.6813261780578123283e-3, 3.472222216054586673e-3, 8.3333333333348225713e-2 }
static

Definition at line 98 of file nf_gammaFunctions.cc.