Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Variables
G4INCL::Math Namespace Reference

Functions

G4double toDegrees (G4double radians)
 
G4int heaviside (G4int n)
 
G4double pow13 (G4double x)
 
G4double powMinus13 (G4double x)
 
G4double pow23 (G4double x)
 
G4double aSinH (G4double x)
 
template<typename T >
G4int sign (const T t)
 
template<typename T >
max (const T t1, const T t2)
 brief Return the largest of the two arguments More...
 
template<typename T >
min (const T t1, const T t2)
 brief Return the smallest of the two arguments More...
 
G4double gaussianCDF (const G4double x)
 Cumulative distribution function for Gaussian. More...
 
G4double gaussianCDF (const G4double x, const G4double x0, const G4double sigma)
 Generic cumulative distribution function for Gaussian. More...
 

Variables

const G4double pi = 3.14159265358979323846264338328
 
const G4double twoPi = 2.0 * pi
 
const G4double tenPi = 10.0 * pi
 
const G4double piOverTwo = 0.5 * pi
 
const G4double oneOverSqrtTwo = 1./std::sqrt((G4double)2.)
 
const G4double oneOverSqrtThree = 1./std::sqrt((G4double)3.)
 
const G4double oneThird = 1./3.
 
const G4double twoThirds = 2./3.
 
const G4double sqrtFiveThirds = std::sqrt(5./3.)
 
const G4double sqrtThreeFifths = std::sqrt(3./5.)
 

Function Documentation

G4double G4INCL::Math::aSinH ( G4double  x)
inline

Definition at line 104 of file G4INCLGlobals.hh.

104  {
105  return std::log(x + std::sqrt(x*x+1.));
106  }
G4double G4INCL::Math::gaussianCDF ( const G4double  x)

Cumulative distribution function for Gaussian.

A public-domain approximation taken from Abramowitz and Stegun. Applies to a Gaussian with mean=0 and sigma=1.

Parameters
xa Gaussian variable

Definition at line 55 of file G4INCLGlobals.cc.

References oneOverSqrtTwo, sign(), and z.

Referenced by G4INCL::Random::correlatedUniform(), and gaussianCDF().

56  {
57  // Save the sign of x
58  const G4double sgn = sign(x);
59  const G4double z = std::fabs(x) * oneOverSqrtTwo;
60 
61  // A&S formula 7.1.26
62  G4double t = 1.0/(1.0 + gcdfp*z);
63  G4double y = 1.0 - (((((gcdfa5*t + gcdfa4)*t) + gcdfa3)*t + gcdfa2)*t + gcdfa1)*t*std::exp(-z*z);
64 
65  return 0.5*(1.0 + sgn*y);
66  }
G4double z
Definition: TRTMaterials.hh:39
double G4double
Definition: G4Types.hh:76
G4int sign(const T t)
const G4double oneOverSqrtTwo
G4double G4INCL::Math::gaussianCDF ( const G4double  x,
const G4double  x0,
const G4double  sigma 
)

Generic cumulative distribution function for Gaussian.

A public-domain approximation taken from Abramowitz and Stegun. Applies to a generic Gaussian.

Parameters
xa Gaussian variable
x0mean of the Gaussian
sigmastandard deviation of the Gaussian

Definition at line 68 of file G4INCLGlobals.cc.

References gaussianCDF().

68  {
69  return gaussianCDF((x-x0)/sigma);
70  }
G4double gaussianCDF(const G4double x)
Cumulative distribution function for Gaussian.
G4int G4INCL::Math::heaviside ( G4int  n)
inline

Definition at line 87 of file G4INCLGlobals.hh.

Referenced by G4INCL::Nucleus::insertParticle().

87  {
88  if(n < 0) return 0;
89  else return 1;
90  }
const G4int n
template<typename T >
T G4INCL::Math::max ( const T  t1,
const T  t2 
)
inline

brief Return the largest of the two arguments

Definition at line 116 of file G4INCLGlobals.hh.

Referenced by G4GHEKinematicsVector::Add(), G4RPGReaction::AddBlackTrackParticles(), G4PenelopeCrossSection::AddCrossSectionPoint(), G4INCL::ProjectileRemnant::addMostDynamicalSpectators(), G4PenelopeCrossSection::AddShellCrossSectionPoint(), G4SolidExtentList::AddSurface(), G4NeutronHPFinalState::adjust_final_state(), G4NavigationLogger::AlongComputeStepLog(), G4CoupledTransportation::AlongStepGetPhysicalInteractionLength(), G4Nucleus::AnnihilationEvaporationEffects(), G4NeutronHPCapture::ApplyYourself(), G4ChordFinder::ApproxCurvePointV(), G4eIonisationSpectrum::AverageEnergy(), G4RDeIonisationSpectrum::AverageEnergy(), G4eBremsstrahlungSpectrum::AverageEnergy(), G4RDeBremsstrahlungSpectrum::AverageEnergy(), G4EnergyLossForExtrapolator::AverageScatteringAngle(), G4ClippablePolygon::BehindOf(), UVoxelizer::BuildBoundingBox(), G4hImpactIonisation::BuildPhysicsTable(), G4LossTableBuilder::BuildTableForModel(), G4StatMFMacroMultiNucleon::CalcMeanMultiplicity(), G4StatMFMicroPartition::CalcPartitionProbability(), G4StatMFMacroTemperature::CalcTemperature(), G4WeightWindowAlgorithm::Calculate(), G4USolid::CalculateExtent(), G4Box::CalculateExtent(), G4Tet::CalculateExtent(), G4UnionSolid::CalculateExtent(), G4IntersectionSolid::CalculateExtent(), G4RPGInelastic::CalculateMomenta(), G4ITStepProcessor::CalculateSafety(), UTrd::CheckAndSetAllParameters(), G4Trd::CheckAndSetAllParameters(), G4MolecularDecayTable::CheckDataConsistency(), G4Nucleus::Cinema(), G4VEmAdjointModel::ComputeAdjointCrossSectionVectorPerAtomForScatProj(), G4VEmAdjointModel::ComputeAdjointCrossSectionVectorPerVolumeForScatProj(), G4HeatedKleinNishinaCompton::ComputeCrossSectionPerAtom(), G4KleinNishinaCompton::ComputeCrossSectionPerAtom(), G4KleinNishinaModel::ComputeCrossSectionPerAtom(), G4MuPairProductionModel::ComputeCrossSectionPerAtom(), G4eeToTwoGammaModel::ComputeCrossSectionPerElectron(), G4mplIonisationWithDeltaModel::ComputeCrossSectionPerElectron(), G4MuBetheBlochModel::ComputeCrossSectionPerElectron(), G4mplIonisationWithDeltaModel::ComputeDEDXPerVolume(), G4WentzelOKandVIxSection::ComputeElectronCrossSection(), G4WentzelVIRelXSection::ComputeElectronCrossSection(), G4MuPairProductionModel::ComputeMicroscopicCrossSection(), G4WentzelOKandVIxSection::ComputeTransportCrossSectionPerAtom(), G4WentzelVIRelXSection::ComputeTransportCrossSectionPerAtom(), G4WentzelVIRelModel::ComputeTruePathLengthLimit(), G4WentzelVIModel::ComputeTruePathLengthLimit(), G4PairProductionRelModel::ComputeXSectionPerAtom(), exrdmDetectorConstruction::Construct(), G4MonopolePhysics::ConstructProcess(), G4VLongitudinalStringDecay::CreatePartonPair(), G4TwistedTubs::CreatePolyhedron(), G4XPDGElastic::CrossSection(), G4INCL::DeuteronDensity::derivWavefunctionR(), G4MagneticFieldModel::DescribeYourselfTo(), G4VLongitudinalStringDecay::DiQuarkSplitup(), UPolyconeSide::DistanceAway(), G4PolyconeSide::DistanceAway(), UTet::DistanceToIn(), G4CutTubs::DistanceToIn(), G4Tet::DistanceToIn(), UCons::DistanceToIn(), G4Para::DistanceToIn(), G4Trap::DistanceToIn(), UTet::DistanceToOut(), G4Tet::DistanceToOut(), G4UnionSolid::DistanceToOut(), G4Para::DistanceToOut(), G4Trap::DistanceToOut(), G4PathFinder::DoNextLinearStep(), G4ITStepProcessor::DoStepping(), G4ScoreLogColorMap::DrawColorChartBar(), G4VScoreColorMap::DrawColorChartBar(), G4ScoreLogColorMap::DrawColorChartText(), G4VScoreColorMap::DrawColorChartText(), G4EmModelManager::DumpModelList(), G4ionEffectiveCharge::EffectiveCharge(), G4PiData::ElasticXSection(), G4E1Probability::EmissionProbDensity(), ExGflashEventAction::EndOfEventAction(), VUSolid::EstimateCubicVolume(), VUSolid::EstimateSurfaceArea(), G4Nucleus::EvaporationEffects(), G4eIonisationParameters::Excitation(), G4RDeIonisationParameters::Excitation(), UTrd::Extent(), UPolyPhiFace::Extent(), UCons::Extent(), G4PolyPhiFace::Extent(), VUSolid::ExtentAxis(), G4VCrossSectionSource::FcrossX(), G4LevelReader::FillLevels(), G4ChordFinderSaf::FindNextChord(), G4JTPolynomialSolver::FindRoots(), CLHEP::RandBreitWigner::fireM2(), G4RPGFragmentation::FragmentationIntegral(), G4ArrowModel::G4ArrowModel(), G4ClassicalRK4::G4ClassicalRK4(), G4FissionParameters::G4FissionParameters(), G4ImplicitEuler::G4ImplicitEuler(), G4NeutronHPPartial::G4NeutronHPPartial(), G4NeutronHPVector::G4NeutronHPVector(), G4Orb::G4Orb(), G4PAIModelData::G4PAIModelData(), G4PAIPhotData::G4PAIPhotData(), G4PropagatorInField::G4PropagatorInField(), G4SimpleRunge::G4SimpleRunge(), G4Sphere::G4Sphere(), G4Tet::G4Tet(), G4eeToHadronsModel::GenerateCMPhoton(), G4Clebsch::GenerateIso3(), G4RPGReaction::GenerateNBodyEvent(), G4ReactionDynamics::GenerateNBodyEvent(), G4RPGReaction::GenerateNBodyEventT(), G4ReactionDynamics::GenerateXandPt(), G4HadronCrossSections::GetCaptureCrossSection(), G4BCLateParticle::GetCollisions(), G4VXTRenergyLoss::GetComptonPerAtom(), G4ContinuousGainOfEnergy::GetContinuousStepLimit(), G4NeutronHPFissionData::GetCrossSection(), G4NeutronHPInelasticData::GetCrossSection(), G4NeutronHPCaptureData::GetCrossSection(), G4NeutronHPElasticData::GetCrossSection(), G4EvaporationChannel::GetEmissionProbability(), G4INCL::ElasticChannel::getFinalState(), G4HadronCrossSections::GetFissionCrossSection(), G4HETCChargedFragment::GetKineticEnergy(), G4HETCNeutron::GetKineticEnergy(), G4INCL::ParticleTable::getLargestNuclearRadius(), G4RDVeLowEnergyLoss::GetLossWithFluct(), G4CutTubs::GetMaxMinZ(), G4ClippablePolygon::GetMaxPoint(), G4ScreenedNuclearRecoil::GetMeanFreePath(), G4PenelopeBremsstrahlungFS::GetMomentumIntegral(), G4RPGInelastic::GetNormalizationConstant(), G4PreCompoundProton::GetOpt1(), G4PreCompoundAlpha::GetOpt12(), G4PreCompoundDeuteron::GetOpt12(), G4PreCompoundHe3::GetOpt12(), G4PreCompoundTriton::GetOpt12(), G4PreCompoundProton::GetOpt3(), G4PreCompoundNeutron::GetOpt34(), G4PreCompoundDeuteron::GetOpt34(), G4PreCompoundAlpha::GetOpt34(), G4PreCompoundHe3::GetOpt34(), G4PreCompoundTriton::GetOpt34(), G4PairingCorrection::GetPairingCorrection(), G4VMscModel::GetParticleChangeForMSC(), G4TrajectoryDrawerUtils::GetPointsAndTimes(), G4NeutronHPIsoData::GetXsec(), G4NeutronHPFissionBaseFS::GetXsec(), G4NeutronHPChannelList::GetXsec(), G4NeutronHPInelasticBaseFS::GetXsec(), G4NeutronHPInelasticCompFS::GetXsec(), G4NeutronHPChannel::GetXsec(), G4NeutronHPElementData::Harmonise(), G4NeutronHPChannel::Harmonise(), G4VhElectronicStoppingPower::HeEffChargeSquare(), inflate_table(), G4PenelopeBremsstrahlungModel::Initialise(), G4PenelopeIonisationModel::Initialise(), G4MuPairProductionModel::Initialise(), G4EmModelManager::Initialise(), G4VEmModel::InitialiseElementSelectors(), G4hhIonisation::InitialiseEnergyLossProcess(), G4mplIonisation::InitialiseEnergyLossProcess(), G4CoulombScattering::InitialiseProcess(), G4PolarizedGammaConversion::InitialiseProcess(), G4GammaConversion::InitialiseProcess(), USphere::Inside(), G4Sphere::Inside(), G4INCL::IFunction1D::integrate(), G4INCL::CrossSections::interactionDistanceNN(), G4INCL::CrossSections::interactionDistancePiN(), G4HETCAlpha::K(), G4HETCHe3::K(), G4HETCTriton::K(), G4HETCProton::K(), G4HETCDeuteron::K(), G4HETCNeutron::K(), G4AttValueFilterT< T, ConversionErrorPolicy >::LoadIntervalElement(), G4GHEKinematicsVector::Lor(), EmPlot::make_plot(), G4eBremsstrahlungRelModel::MinPrimaryEnergy(), G4MuPairProductionModel::MinPrimaryEnergy(), G4eCoulombScatteringModel::MinPrimaryEnergy(), G4MuBremsstrahlungModel::MinPrimaryEnergy(), G4RPGReaction::NuclearReaction(), G4ReactionDynamics::NuclearReaction(), G4MagInt_Driver::OneGoodStep(), G4INCL::NuclearDensityFunctions::ModifiedHarmonicOscillatorRP::operator()(), DicomPhantomZSliceHeader::operator+(), operator<<(), G4eIonisationParameters::Parameter(), G4RDeIonisationParameters::Parameter(), G4BremsstrahlungParameters::Parameter(), G4RDBremsstrahlungParameters::Parameter(), G4PreCompoundTransitions::PerformTransition(), G4ee2KChargedModel::PhysicsVector(), G4eeTo3PiModel::PhysicsVector(), G4ee2KNeutralModel::PhysicsVector(), G4eeToTwoPiModel::PhysicsVector(), G4eeToPGammaModel::PhysicsVector(), G4RPGInelastic::Pmltpc(), G4RDGenerator2BS::PolarAngle(), G4LowEnergyGammaConversion::PostStepDoIt(), G4Cerenkov::PostStepDoIt(), G4eIonisationSpectrum::Probability(), G4eBremsstrahlungSpectrum::Probability(), G4RDeBremsstrahlungSpectrum::Probability(), G4RDeIonisationSpectrum::Probability(), G4PreCompoundIon::ProbabilityDistributionFunction(), G4ReactionDynamics::ProduceStrangeParticlePairs(), G4RPGStrangeProduction::ReactionStage(), G4RPGTwoCluster::ReactionStage(), G4RPGTwoBody::ReactionStage(), G4RPGFragmentation::ReactionStage(), G4PiData::ReactionXSection(), G4PathFinder::ReLocate(), CexmcPhysicsList< BasePhysics, StudiedPhysics, ProductionModel >::ResampleTrackLengthInTarget(), G4RPGReaction::Rotate(), G4VoxelSafety::SafetyForVoxelHeader(), UBox::SafetyFromInside(), UTet::SafetyFromOutside(), G4NeutronHPIsotropic::Sample(), G4NeutronHPContAngularPar::Sample(), G4NeutronHPKallbachMannSyst::Sample(), G4NeutronHPNBodyPhaseSpace::Sample(), G4NeutronHPSimpleEvapSpectrum::Sample(), G4NeutronHPFissionSpectrum::Sample(), G4NeutronHPWattSpectrum::Sample(), G4NeutronHPLegendreStore::Sample(), G4NeutronHPVector::Sample(), G4VEmAdjointModel::SampleAdjSecEnergyFromCSMatrix(), G4Generator2BN::SampleDirection(), G4PenelopeBremsstrahlungAngular::SampleDirection(), G4Generator2BS::SampleDirection(), G4NeutronHPLegendreStore::SampleDiscreteTwoBody(), G4NeutronHPLegendreStore::SampleElastic(), G4eIonisationSpectrum::SampleEnergy(), G4RDeIonisationSpectrum::SampleEnergy(), G4eBremsstrahlungSpectrum::SampleEnergy(), G4RDeBremsstrahlungSpectrum::SampleEnergy(), G4UniversalFluctuation::SampleFluctuations(), G4PenelopeBremsstrahlungFS::SampleGammaEnergy(), G4SampleResonance::SampleMass(), G4NeutronHPLegendreStore::SampleMax(), G4LivermorePolarizedPhotoElectricModel::SampleSecondaries(), G4BoldyshevTripletModel::SampleSecondaries(), G4LivermoreNuclearGammaConversionModel::SampleSecondaries(), G4LivermoreGammaConversionModelRC::SampleSecondaries(), G4LivermorePolarizedGammaConversionModel::SampleSecondaries(), G4LivermoreGammaConversionModel::SampleSecondaries(), G4PenelopeAnnihilationModel::SampleSecondaries(), G4PenelopeGammaConversionModel::SampleSecondaries(), G4BetheHeitlerModel::SampleSecondaries(), G4PairProductionRelModel::SampleSecondaries(), G4hCoulombScatteringModel::SampleSecondaries(), G4IonCoulombScatteringModel::SampleSecondaries(), G4PenelopeComptonModel::SampleSecondaries(), G4MuPairProductionModel::SampleSecondaries(), G4eCoulombScatteringModel::SampleSecondaries(), G4WentzelOKandVIxSection::SampleSingleScattering(), G4WentzelVIRelXSection::SampleSingleScattering(), G4NeutronHPInelasticCompFS::SelectExitChannel(), G4Torus::SetAllParameters(), G4RadioactiveDecay::SetDecayHalfAngle(), G4GeomTestVolume::SetErrorsThreshold(), USphere::SetInsideRadius(), G4GHEKinematicsVector::SetMassAndUpdate(), G4SurfaceVoxelizer::SetMaxVoxels(), UVoxelizer::SetMaxVoxels(), G4GHEKinematicsVector::SetMomentumAndUpdate(), CexmcProductionModelMessenger::SetNewValue(), CexmcEnergyDepositDigitizerMessenger::SetNewValue(), USphere::SetOuterRadius(), G4mplIonisationModel::SetParticle(), G4mplIonisationWithDeltaModel::SetParticle(), G4WentzelOKandVIxSection::SetupKinematic(), G4WentzelVIRelXSection::SetupKinematic(), CLHEP::RandBreitWigner::shootM2(), G4LatticeReader::SkipComments(), G4MesonSplitter::SplitMeson(), G4SteppingManager::Stepping(), G4QGSDiffractiveExcitation::String(), G4GHEKinematicsVector::Sub(), G4Torus::SurfaceNormal(), G4eeTo3PiModel::ThresholdEnergy(), G4PiData::TotalXSection(), tpia_particle_getInternalID(), G4ReactionDynamics::TwoBody(), G4ReactionDynamics::TwoCluster(), UOrb::UOrb(), USphere::USphere(), UTet::UTet(), G4INCL::DeuteronDensity::wavefunctionR(), and G4Clebsch::Weight().

116  {
117  return t1 > t2 ? t1 : t2;
118  }
tuple t1
Definition: plottest35.py:33
template<typename T >
T G4INCL::Math::min ( const T  t1,
const T  t2 
)
inline

brief Return the smallest of the two arguments

Definition at line 121 of file G4INCLGlobals.hh.

Referenced by G4NeutronHPKallbachMannSyst::A(), G4RPGReaction::AddBlackTrackParticles(), G4AdjointCSMatrix::AddData(), Histo::AddPhantomStep(), G4SolidExtentList::AddSurface(), G4AdjointPhotoElectricModel::AdjointCrossSection(), G4VAtomDeexcitation::AlongStepDeexcitation(), G4ContinuousGainOfEnergy::AlongStepDoIt(), G4VEnergyLossProcess::AlongStepDoIt(), G4CoupledTransportation::AlongStepGetPhysicalInteractionLength(), G4VEnergyLossProcess::AlongStepGetPhysicalInteractionLength(), G4Nucleus::AnnihilationEvaporationEffects(), G4LightMedia::AntiLambdaExchange(), G4LightMedia::AntiNeutronExchange(), G4LightMedia::AntiOmegaMinusExchange(), G4LightMedia::AntiProtonExchange(), G4LightMedia::AntiSigmaMinusExchange(), G4LightMedia::AntiSigmaPlusExchange(), G4LightMedia::AntiXiMinusExchange(), G4LightMedia::AntiXiZeroExchange(), G4RPGAntiLambdaInelastic::ApplyYourself(), G4RPGAntiProtonInelastic::ApplyYourself(), G4RPGAntiSigmaPlusInelastic::ApplyYourself(), G4RPGAntiNeutronInelastic::ApplyYourself(), G4RPGAntiOmegaMinusInelastic::ApplyYourself(), G4RPGAntiSigmaMinusInelastic::ApplyYourself(), G4RPGAntiXiMinusInelastic::ApplyYourself(), G4RPGAntiXiZeroInelastic::ApplyYourself(), G4CutTubs::ApproxSurfaceNormal(), G4eIonisationSpectrum::AverageEnergy(), G4RDeIonisationSpectrum::AverageEnergy(), G4eBremsstrahlungSpectrum::AverageEnergy(), G4RDeBremsstrahlungSpectrum::AverageEnergy(), UVoxelizer::BuildBoundingBox(), G4tgbVolume::BuildSolidForDivision(), G4USolid::CalculateExtent(), G4Box::CalculateExtent(), G4Tet::CalculateExtent(), G4UnionSolid::CalculateExtent(), G4IntersectionSolid::CalculateExtent(), G4HadronicProcess::CheckEnergyMomentumConservation(), G4Nucleus::Cinema(), G4VEmAdjointModel::ComputeAdjointCrossSectionVectorPerAtomForScatProj(), G4VEmAdjointModel::ComputeAdjointCrossSectionVectorPerAtomForSecond(), G4VEmAdjointModel::ComputeAdjointCrossSectionVectorPerVolumeForScatProj(), G4VEmAdjointModel::ComputeAdjointCrossSectionVectorPerVolumeForSecond(), G4ee2KChargedModel::ComputeCrossSection(), G4ee2KNeutralModel::ComputeCrossSection(), G4eeTo3PiModel::ComputeCrossSection(), G4eeToTwoPiModel::ComputeCrossSection(), G4eeToPGammaModel::ComputeCrossSection(), G4eBremsstrahlungRelModel::ComputeCrossSectionPerAtom(), G4eBremParametrizedModel::ComputeCrossSectionPerAtom(), G4MuPairProductionModel::ComputeCrossSectionPerAtom(), G4MuBremsstrahlungModel::ComputeCrossSectionPerAtom(), G4IonParametrisedLossModel::ComputeCrossSectionPerAtom(), G4PolarizedMollerBhabhaModel::ComputeCrossSectionPerElectron(), G4MollerBhabhaModel::ComputeCrossSectionPerElectron(), G4mplIonisationWithDeltaModel::ComputeCrossSectionPerElectron(), G4ICRU73QOModel::ComputeCrossSectionPerElectron(), G4BraggIonModel::ComputeCrossSectionPerElectron(), G4BraggModel::ComputeCrossSectionPerElectron(), G4MuBetheBlochModel::ComputeCrossSectionPerElectron(), G4BetheBlochModel::ComputeCrossSectionPerElectron(), MyMollerBhabhaModel::ComputeDEDXPerVolume(), G4mplIonisationWithDeltaModel::ComputeDEDXPerVolume(), G4eBremsstrahlungRelModel::ComputeDEDXPerVolume(), G4PAIPhotModel::ComputeDEDXPerVolume(), G4eBremParametrizedModel::ComputeDEDXPerVolume(), G4PAIModel::ComputeDEDXPerVolume(), G4MollerBhabhaModel::ComputeDEDXPerVolume(), G4MuBremsstrahlungModel::ComputeDEDXPerVolume(), G4BraggIonModel::ComputeDEDXPerVolume(), G4MuBetheBlochModel::ComputeDEDXPerVolume(), G4BetheBlochModel::ComputeDEDXPerVolume(), G4VoxelSafety::ComputeSafety(), G4PathFinder::ComputeStep(), G4PropagatorInField::ComputeStep(), G4WentzelVIModel::ComputeTruePathLengthLimit(), G4WentzelVIRelModel::ComputeTruePathLengthLimit(), G4VoxelNavigation::ComputeVoxelSafety(), G4PairProductionRelModel::ComputeXSectionPerAtom(), G4MuPairProductionModel::ComputMuPairLoss(), G4VLongitudinalStringDecay::CreatePartonPair(), G4LivermoreIonisationCrossSection::CrossSection(), G4PenelopeIonisationCrossSection::CrossSection(), G4PAIPhotModel::CrossSectionPerVolume(), G4PAIModel::CrossSectionPerVolume(), G4PAIPhotonModel::CrossSectionPerVolume(), G4MuonRadiativeDecayChannelWithSpin::DecayIt(), G4VLongitudinalStringDecay::DiQuarkSplitup(), G4Ellipsoid::DistanceToIn(), G4UnionSolid::DistanceToIn(), G4IntersectionSolid::DistanceToIn(), UTet::DistanceToOut(), G4CutTubs::DistanceToOut(), G4Tet::DistanceToOut(), G4IntersectionSolid::DistanceToOut(), G4SubtractionSolid::DistanceToOut(), G4EllipticalCone::DistanceToOut(), G4PathFinder::DoNextCurvedStep(), G4PathFinder::DoNextLinearStep(), G4ScreenedCoulombClassicalKinematics::DoScreeningComputation(), G4ScoreLogColorMap::DrawColorChartBar(), G4VScoreColorMap::DrawColorChartBar(), G4ScoreLogColorMap::DrawColorChartText(), G4VScoreColorMap::DrawColorChartText(), G4EmModelManager::DumpModelList(), G4FissionProbability::EmissionProbability(), G4RDRangeTest::Escape(), VUSolid::EstimateCubicVolume(), VUSolid::EstimateSurfaceArea(), G4Nucleus::EvaporationEffects(), G4eIonisationParameters::Excitation(), G4RDeIonisationParameters::Excitation(), VUSolid::ExtentAxis(), G4RPGInelastic::Factorial(), G4ReactionDynamics::Factorial(), G4ChordFinderSaf::FindNextChord(), G4ChordFinder::FindNextChord(), G4JTPolynomialSolver::FindRoots(), G3CalcParamsFn(), G4ArrowModel::G4ArrowModel(), G4ElasticData::G4ElasticData(), G4Tet::G4Tet(), G4eeToHadronsModel::GenerateCMPhoton(), G4Clebsch::GenerateIso3(), G4RPGReaction::GenerateNBodyEvent(), G4ReactionDynamics::GenerateNBodyEvent(), G4RPGReaction::GenerateNBodyEventT(), GFlashHomoShowerParameterisation::GenerateRadius(), GFlashSamplingShowerParameterisation::GenerateRadius(), G4ReactionDynamics::GenerateXandPt(), G4NeutronHPVector::Get15percentBorder(), G4INCL::ClusteringModelIntercomparison::getCluster(), G4ContinuousGainOfEnergy::GetContinuousStepLimit(), G4PenelopeIonisationCrossSection::GetCrossSection(), G4LivermoreIonisationCrossSection::GetCrossSection(), G4VEnergyLossProcess::GetDEDXDispersion(), G4CutTubs::GetMaxMinZ(), G4ScreenedNuclearRecoil::GetMeanFreePath(), G4ClippablePolygon::GetMinPoint(), G4PenelopeBremsstrahlungFS::GetMomentumIntegral(), G4RPGInelastic::GetNormalizationConstant(), G4PreCompoundProton::GetOpt3(), G4VMscModel::GetParticleChangeForMSC(), G4AdjointComptonModel::GetSecondAdjEnergyMaxForScatProjToProjCase(), G4VEmAdjointModel::GetSecondAdjEnergyMaxForScatProjToProjCase(), G4PAIPhotonModel::GetXscPerVolume(), G4NeutronHPVector::GetXsec(), G4NeutronHPPartial::GetY(), inflate_table(), G4ClippablePolygon::InFrontOf(), G4NeutronHPDeExGammas::Init(), G4eeToHadronsModel::Initialise(), G4EmModelManager::Initialise(), G4hhIonisation::InitialiseEnergyLossProcess(), G4mplIonisation::InitialiseEnergyLossProcess(), G4CoulombScattering::InitialiseProcess(), G4GammaConversion::InitialiseProcess(), G4INCL::IFunction1D::integrate(), G4INCL::IFunction1D::inverseCDFTable(), G4LightMedia::KaonPlusExchange(), G4LightMedia::KaonZeroShortExchange(), G4LightMedia::LambdaExchange(), G4AttValueFilterT< T, ConversionErrorPolicy >::LoadIntervalElement(), G4EmCorrections::LShellCorrection(), EmPlot::make_plot(), G4BetheBlochModel::MaxSecondaryEnergy(), G4LightMedia::NeutronExchange(), G4RPGReaction::NuclearReaction(), G4ReactionDynamics::NuclearReaction(), G4LightMedia::OmegaMinusExchange(), DicomPhantomZSliceHeader::operator+(), G4eIonisationParameters::Parameter(), G4RDeIonisationParameters::Parameter(), G4BremsstrahlungParameters::Parameter(), G4RDBremsstrahlungParameters::Parameter(), G4LightMedia::PionPlusExchange(), G4RPGInelastic::Pmltpc(), G4LowEnergyGammaConversion::PostStepDoIt(), G4LowEnergyPhotoElectric::PostStepDoIt(), G4Scintillation::PostStepDoIt(), G4VMultipleScattering::PreparePhysicsTable(), G4INCL::INCL::prepareReaction(), G4eIonisationSpectrum::Probability(), G4eBremsstrahlungSpectrum::Probability(), G4RDeBremsstrahlungSpectrum::Probability(), G4RDeIonisationSpectrum::Probability(), G4LightMedia::ProtonExchange(), UUtils::Random(), G4RPGTwoBody::ReactionStage(), G4RPGTwoCluster::ReactionStage(), G4RPGFragmentation::ReactionStage(), G4VoxelSafety::SafetyForVoxelHeader(), G4VoxelSafety::SafetyForVoxelNode(), UTet::SafetyFromInside(), G4NeutronHPContAngularPar::Sample(), G4VEmAdjointModel::SampleAdjSecEnergyFromCSMatrix(), G4PenelopeBremsstrahlungAngular::SampleDirection(), G4eIonisationSpectrum::SampleEnergy(), G4RDeIonisationSpectrum::SampleEnergy(), G4eBremsstrahlungSpectrum::SampleEnergy(), G4RDeBremsstrahlungSpectrum::SampleEnergy(), G4SampleResonance::SampleMass(), G4LivermoreNuclearGammaConversionModel::SampleSecondaries(), G4LivermoreGammaConversionModelRC::SampleSecondaries(), G4LivermorePolarizedGammaConversionModel::SampleSecondaries(), G4LivermoreGammaConversionModel::SampleSecondaries(), G4LivermoreBremsstrahlungModel::SampleSecondaries(), G4PolarizedMollerBhabhaModel::SampleSecondaries(), G4SeltzerBergerModel::SampleSecondaries(), G4PenelopeRayleighModel::SampleSecondaries(), G4LivermoreIonisationModel::SampleSecondaries(), G4BetheHeitlerModel::SampleSecondaries(), G4PairProductionRelModel::SampleSecondaries(), G4eSingleCoulombScatteringModel::SampleSecondaries(), G4mplIonisationWithDeltaModel::SampleSecondaries(), G4eBremsstrahlungRelModel::SampleSecondaries(), G4eBremParametrizedModel::SampleSecondaries(), G4PenelopeComptonModel::SampleSecondaries(), G4MuPairProductionModel::SampleSecondaries(), G4PAIPhotonModel::SampleSecondaries(), G4MuBremsstrahlungModel::SampleSecondaries(), G4ICRU73QOModel::SampleSecondaries(), G4BraggModel::SampleSecondaries(), G4BraggIonModel::SampleSecondaries(), G4MuBetheBlochModel::SampleSecondaries(), G4BetheBlochModel::SampleSecondaries(), G4IonParametrisedLossModel::SampleSecondaries(), G4RadioactiveDecay::SetDecayHalfAngle(), CexmcProductionModelMessenger::SetNewValue(), CexmcEnergyDepositDigitizerMessenger::SetNewValue(), G4mplIonisationModel::SetParticle(), G4mplIonisationWithDeltaModel::SetParticle(), G4ScreeningMottCrossSection::SetupKinematic(), G4WentzelOKandVIxSection::SetupTarget(), G4WentzelVIRelXSection::SetupTarget(), G4EmCorrections::ShellCorrection(), G4LightMedia::SigmaMinusExchange(), G4LightMedia::SigmaPlusExchange(), G4VMultipleScattering::StorePhysicsTable(), G4PAIPhotonModel::TestSecondaries(), tpia_particle_getInternalID(), G4ReactionDynamics::TwoBody(), G4ReactionDynamics::TwoCluster(), CCalSteppingAction::UserSteppingAction(), UTet::UTet(), G4Clebsch::Weight(), G4LightMedia::XiMinusExchange(), and G4LightMedia::XiZeroExchange().

121  {
122  return t1 < t2 ? t1 : t2;
123  }
tuple t1
Definition: plottest35.py:33
G4double G4INCL::Math::pow13 ( G4double  x)
inline
G4double G4INCL::Math::pow23 ( G4double  x)
inline

Definition at line 100 of file G4INCLGlobals.hh.

References twoThirds.

100  {
101  return std::pow(x, twoThirds);
102  }
const G4double twoThirds
G4double G4INCL::Math::powMinus13 ( G4double  x)
inline

Definition at line 96 of file G4INCLGlobals.hh.

References oneThird.

96  {
97  return std::pow(x, -oneThird);
98  }
const G4double oneThird
template<typename T >
G4int G4INCL::Math::sign ( const T  t)
inline
G4double G4INCL::Math::toDegrees ( G4double  radians)
inline

Definition at line 83 of file G4INCLGlobals.hh.

References pi.

Referenced by G4INCL::Nucleus::fillEventInfo().

83  {
84  return radians * (180.0 / pi);
85  }
const G4double pi

Variable Documentation

const G4double G4INCL::Math::oneOverSqrtThree = 1./std::sqrt((G4double)3.)
const G4double G4INCL::Math::oneOverSqrtTwo = 1./std::sqrt((G4double)2.)

Definition at line 76 of file G4INCLGlobals.hh.

Referenced by gaussianCDF().

const G4double G4INCL::Math::oneThird = 1./3.
const G4double G4INCL::Math::pi = 3.14159265358979323846264338328
const G4double G4INCL::Math::piOverTwo = 0.5 * pi

Definition at line 75 of file G4INCLGlobals.hh.

Referenced by G4INCL::CoulombNonRelativistic::distortOut().

const G4double G4INCL::Math::sqrtFiveThirds = std::sqrt(5./3.)
const G4double G4INCL::Math::sqrtThreeFifths = std::sqrt(3./5.)

Definition at line 81 of file G4INCLGlobals.hh.

Referenced by G4INCL::ParticleTable::getMomentumRMS().

const G4double G4INCL::Math::tenPi = 10.0 * pi
const G4double G4INCL::Math::twoPi = 2.0 * pi
const G4double G4INCL::Math::twoThirds = 2./3.

Definition at line 79 of file G4INCLGlobals.hh.

Referenced by G4INCL::InteractionAvatar::postInteraction(), and pow23().