ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nf_gammaFunctions.cc File Reference
+ 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.

View newest version in sPHENIX GitHub at line 93 of file nf_gammaFunctions.cc

#define MAXLGM   2.556348e305

Definition at line 201 of file nf_gammaFunctions.cc.

View newest version in sPHENIX GitHub at line 201 of file nf_gammaFunctions.cc

Referenced by lgam().

#define MAXSTIR   143.01608

Definition at line 99 of file nf_gammaFunctions.cc.

View newest version in sPHENIX GitHub 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.

View newest version in sPHENIX GitHub at line 219 of file nf_gammaFunctions.cc

References A, B, Acts::UnitConstants::C, DBL_MAX, G4Log(), int(), LOGPI, LS2PI, M_PI, MAXLGM, nf_p1evl(), nf_polevl(), Acts::UnitConstants::u, 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.

View newest version in sPHENIX GitHub at line 126 of file nf_gammaFunctions.cc

References DBL_MAX, E, e, int(), isfinite, M_PI, nf_polevl(), nfu_badInput, nfu_Okay, P, Q, 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.

View newest version in sPHENIX GitHub at line 206 of file nf_gammaFunctions.cc

References isfinite, lgam(), nfu_badInput, and nfu_Okay.

+ 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.

View newest version in sPHENIX GitHub at line 106 of file nf_gammaFunctions.cc

References G4Exp(), G4Pow::GetInstance(), MAXSTIR, nf_polevl(), G4Pow::powA(), SQTPI, STIR, v, w, x, and y.

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.

View newest version in sPHENIX GitHub 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.

View newest version in sPHENIX GitHub at line 196 of file nf_gammaFunctions.cc

Referenced by lgam().

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.

View newest version in sPHENIX GitHub at line 198 of file nf_gammaFunctions.cc

double LOGPI = 1.14472988584940017414
static

Definition at line 94 of file nf_gammaFunctions.cc.

View newest version in sPHENIX GitHub at line 94 of file nf_gammaFunctions.cc

Referenced by lgam().

double LS2PI = 0.91893853320467274178
static

Definition at line 200 of file nf_gammaFunctions.cc.

View newest version in sPHENIX GitHub 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.

View newest version in sPHENIX GitHub at line 89 of file nf_gammaFunctions.cc

Referenced by G4VarNtp::addParticle(), G4LEnp::ApplyYourself(), G4LEpp::ApplyYourself(), G4LEHadronProtonElastic::ApplyYourself(), G4LFission::ApplyYourself(), BOOST_AUTO_TEST_CASE(), Acts::Test::BOOST_AUTO_TEST_CASE(), G4QuasiElRatios::CalcQF2IN_Ratio(), G4ChipsAntiBaryonInelasticXS::CalculateCrossSection(), G4ChipsProtonInelasticXS::CalculateCrossSection(), G4ChipsHyperonInelasticXS::CalculateCrossSection(), G4ChipsKaonMinusInelasticXS::CalculateCrossSection(), G4ChipsPionMinusInelasticXS::CalculateCrossSection(), G4ChipsKaonPlusInelasticXS::CalculateCrossSection(), G4ChipsPionPlusInelasticXS::CalculateCrossSection(), G4ChipsNeutronInelasticXS::CalculateCrossSection(), G4GNASHTransitions::CalculateProbability(), G4PreCompoundTransitions::CalculateProbability(), G4QuasiElRatios::ChExer(), G4QGSDiffractiveExcitation::ChooseP(), G4DiffractiveExcitation::ChooseP(), G4GeomTools::ClosestPointOnTriangle(), Acts::AtlasStepper< ConstantBField >::covarianceTransport(), 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(), G4FermiPhaseSpaceDecay::Decay(), RMC01AnalysisManager::EndOfEventForForwardSimulation(), G4FragmentingString::G4FragmentingString(), G4INCL::Particle::getBeta(), G4DELPHIMagField::GetFieldValue(), G4HadronNucleonXsc::HadronNucleonXscPDG(), hijfst_(), G4HETCFragment::IntegrateEmissionProbability(), G4HETCProton::K(), G4HETCAlpha::K(), G4HETCTriton::K(), G4HETCHe3::K(), G4HETCDeuteron::K(), G4HETCNeutron::K(), G4INCL::NKbToLpiChannel::KaonMomentum(), G4INCL::NpiToLKChannel::KaonMomentum(), G4INCL::NpiToSKChannel::KaonMomentum(), G4INCL::NKbToSpiChannel::KaonMomentum(), G4INCL::NKbElasticChannel::KaonMomentum(), G4INCL::NKbToNKbChannel::KaonMomentum(), G4GDMLReadMaterials::MaterialRead(), nf_gammaFunction(), nf_Legendre_evauluateAtMu(), G4ScreenedNuclearRecoil::PostStepDoIt(), G4PreCompoundNucleon::ProbabilityDistributionFunction(), G4PreCompoundIon::ProbabilityDistributionFunction(), G4FermiPhaseSpaceDecay::PtwoBody(), G4QuasiElRatios::Scatter(), G4DNAMolecularReactionData::SetArrehniusParameterization(), G4ReactionTableMessenger::SetNewValue(), PHG4GDMLWriteStructure::TraverseVolumeTree(), G4GDMLWriteStructure::TraverseVolumeTree(), and PHG4ZDCSteppingAction::UserSteppingAction().

double Q[]
static
Initial value:
= { -2.31581873324120129819E-5, 5.39605580493303397842E-4, -4.45641913851797240494E-3, 1.18139785222060435552E-2,
3.58236398605498653373E-2, -2.34591795718243348568E-1, 7.14304917030273074085E-2, 1.00000000000000000320E0 }

Definition at line 91 of file nf_gammaFunctions.cc.

View newest version in sPHENIX GitHub at line 91 of file nf_gammaFunctions.cc

Referenced by HelixKalman::addHit(), HelixKalmanFilter::addHit(), G4LEnp::ApplyYourself(), G4LEpp::ApplyYourself(), G4ParticleHPCaptureFS::ApplyYourself(), G4LEHadronProtonElastic::ApplyYourself(), G4LFission::ApplyYourself(), G4ErrorSurfaceTrajState::BuildErrorMatrix(), KFParticle_nTuple::calc_secondary_vertex_mass_noPID(), G4RDGenerator2BN::Calculatedsdkdt(), G4Generator2BN::Calculatedsdkdt(), HelixKalman::calculateMSCovariance(), HelixKalmanFilter::calculateMSCovariance(), Run::CountNuclearChannel(), G4ECDecay::DecayIt(), G4EquilibriumEvaporator::deExcite(), G4NRESP71M03::DKINMA(), G4PenelopeRayleighModel::DumpFormFactorTable(), G4ionEffectiveCharge::EffectiveCharge(), Run::EndOfRun(), KFParticle_nTuple::fillBranch(), G4ErrorFreeTrajState::G4ErrorFreeTrajState(), G4IntraNucleiCascader::generateCascade(), G4DELPHIMagField::GetFieldValue(), G4XTRRegularRadModel::GetStackFactor(), G4XTRTransparentRegRadModel::GetStackFactor(), G4TransparentRegXTRadiator::GetStackFactor(), XTRTransparentRegRadModel::GetStackFactor(), G4XTRGammaRadModel::GetStackFactor(), Acts::HelicalTrackLinearizer< propagator_t, propagator_options_t >::linearizeTrack(), G4BetheHeitler5DModel::MaxDiffCrossSection(), MCGIDI_outputChannel_getFinalQ(), MCGIDI_outputChannel_parseFromTOM(), nlohmann::detail::dtoa_impl::diyfp::mul(), nf_gammaFunction(), ALICEKF::repairCovariance(), G4PenelopeIonisationModel::SampleFinalStateElectron(), G4PenelopeIonisationModel::SampleFinalStatePositron(), G4AntiNuclElastic::SampleInvariantT(), and G4CollisionOutput::tuneSelectedPair().

double SQTPI = 2.50662827463100050242E0
static

Definition at line 95 of file nf_gammaFunctions.cc.

View newest version in sPHENIX GitHub at line 95 of file nf_gammaFunctions.cc

Referenced by stirf().

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.

View newest version in sPHENIX GitHub at line 98 of file nf_gammaFunctions.cc

Referenced by stirf().