Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
templates.hh File Reference
#include <climits>
#include <limits>

Go to the source code of this file.

Macros

#define HIGH_PRECISION   1
 
#define DBL_MIN   std::numeric_limits<double>::min()
 
#define DBL_DIG   std::numeric_limits<double>::digits10
 
#define DBL_MAX   std::numeric_limits<double>::max()
 
#define DBL_EPSILON   std::numeric_limits<double>::epsilon()
 
#define FLT_MIN   std::numeric_limits<float>::min()
 
#define FLT_DIG   std::numeric_limits<float>::digits10
 
#define FLT_MAX   std::numeric_limits<float>::max()
 
#define FLT_EPSILON   std::numeric_limits<float>::epsilon()
 
#define MAXFLOAT   std::numeric_limits<float>::max()
 
#define INT_MAX   std::numeric_limits<int>::max()
 
#define INT_MIN   std::numeric_limits<int>::min()
 
#define LOG_EKIN_MIN   -30
 
#define G4_SQR_DEFINED
 

Typedefs

using Float = double
 

Functions

template<class T >
void G4SwapPtr (T *&a, T *&b)
 
template<class T >
void G4SwapObj (T *a, T *b)
 
template<class T >
sqr (const T &x)
 
int G4lrint (double ad)
 
template<typename... _Args>
void G4ConsumeParameters (_Args &&...)
 

Macro Definition Documentation

◆ DBL_DIG

#define DBL_DIG   std::numeric_limits<double>::digits10

Definition at line 58 of file templates.hh.

◆ DBL_EPSILON

◆ DBL_MAX

#define DBL_MAX   std::numeric_limits<double>::max()

Definition at line 62 of file templates.hh.

Referenced by G4CollisionManager::AddCollision(), G4VAtomDeexcitation::AlongStepDeexcitation(), G4DNABrownianTransportation::AlongStepDoIt(), G4BiasingProcessInterface::AlongStepGetPhysicalInteractionLength(), G4DNABrownianTransportation::AlongStepGetPhysicalInteractionLength(), G4FastSimulationManagerProcess::AlongStepGetPhysicalInteractionLength(), G4ImportanceProcess::AlongStepGetPhysicalInteractionLength(), G4NuclearStopping::AlongStepGetPhysicalInteractionLength(), G4ParallelGeometriesLimiterProcess::AlongStepGetPhysicalInteractionLength(), G4ParallelWorldProcess::AlongStepGetPhysicalInteractionLength(), G4ParallelWorldScoringProcess::AlongStepGetPhysicalInteractionLength(), G4ScoreSplittingProcess::AlongStepGetPhysicalInteractionLength(), G4VEnergyLossProcess::AlongStepGetPhysicalInteractionLength(), G4VMultipleScattering::AlongStepGetPhysicalInteractionLength(), G4WeightCutOffProcess::AlongStepGetPhysicalInteractionLength(), G4WeightWindowProcess::AlongStepGetPhysicalInteractionLength(), G4FastSimulationManagerProcess::AtRestGetPhysicalInteractionLength(), G4ParallelGeometriesLimiterProcess::AtRestGetPhysicalInteractionLength(), G4ParallelWorldProcess::AtRestGetPhysicalInteractionLength(), G4ParallelWorldScoringProcess::AtRestGetPhysicalInteractionLength(), G4ScoreSplittingProcess::AtRestGetPhysicalInteractionLength(), G4VRestContinuousDiscreteProcess::AtRestGetPhysicalInteractionLength(), G4VRestDiscreteProcess::AtRestGetPhysicalInteractionLength(), G4VRestProcess::AtRestGetPhysicalInteractionLength(), G4ParticleHPContAngularPar::BuildByInterpolation(), G4VCrossSectionHandler::BuildMeanFreePathForMaterials(), G4VLEPTSModel::BuildMeanFreePathTable(), G4GammaGeneralProcess::BuildPhysicsTable(), G4VLEPTSModel::BuildPhysicsTable(), G4DNAIndependentReactionTimeStepper::CalculateMinTimeStep(), G4DNAMoleculeEncounterStepper::CalculateMinTimeStep(), G4ITModelProcessor::CalculateMinTimeStep(), G4DNAIndependentReactionTimeStepper::CalculateStep(), G4DNAIRTMoleculeEncounterStepper::CalculateStep(), G4DNAMoleculeEncounterStepper::CalculateStep(), G4DNAPolyNucleotideReactionProcess::CalculateTimeStep(), G4HadronicProcess::CheckEnergyMomentumConservation(), G4ITStepProcessor::CleanProcessor(), G4ParticleHPVector::CleanUp(), G4BetheBlochNoDeltaModel::ComputeDEDXPerVolume(), G4BraggNoDeltaModel::ComputeDEDXPerVolume(), G4ICRU73NoDeltaModel::ComputeDEDXPerVolume(), G4DNABrownianTransportation::ComputeGeomLimit(), G4WentzelVIModel::ComputeGeomPathLength(), G4ITStepProcessor::ComputeInteractionLength(), G4EmCalculator::ComputeMeanFreePath(), G4GammaConversionToMuons::ComputeMeanFreePath(), G4VEmModel::ComputeMeanFreePath(), G4PathFinder::ComputeSafety(), G4DNABrownianTransportation::ComputeStep(), G4ErrorPropagationNavigator::ComputeStep(), G4NormalNavigation::ComputeStep(), G4ParameterisedNavigation::ComputeStep(), G4VoxelNavigation::ComputeStep(), G4DummyModel::ComputeTruePathLengthLimit(), G4WentzelVIModel::ComputeTrueStepLength(), G4AtimaEnergyLossModel::CorrectionsAlongStep(), G4IonParametrisedLossModel::CorrectionsAlongStep(), G4DNACPA100ElasticModel::CrossSectionPerVolume(), G4DNAELSEPAElasticModel::CrossSectionPerVolume(), G4DNAIonElasticModel::CrossSectionPerVolume(), G4DNAPTBElasticModel::CrossSectionPerVolume(), G4DNARuddIonisationExtendedModel::CrossSectionPerVolume(), G4DNATransformElectronModel::CrossSectionPerVolume(), G4LEPTSElasticModel::CrossSectionPerVolume(), G4MicroElecElasticModel::CrossSectionPerVolume(), G4MicroElecElasticModel_new::CrossSectionPerVolume(), G4MicroElecInelasticModel_new::CrossSectionPerVolume(), G4MicroElecLOPhononModel::CrossSectionPerVolume(), G4TDNAOneStepThermalizationModel< MODEL >::CrossSectionPerVolume(), G4DNAMolecularDissociation::DecayIt(), G4VEmProcess::DefineMaterial(), G4BOptnChangeCrossSection::DistanceToApplyOperation(), G4BOptnForceCommonTruncatedExp::DistanceToApplyOperation(), G4BOptnForceFreeFlight::DistanceToApplyOperation(), G4Box::DistanceToIn(), G4Ellipsoid::DistanceToIn(), G4EllipticalTube::DistanceToIn(), G4ExtrudedSolid::DistanceToIn(), G4Para::DistanceToIn(), G4Tet::DistanceToIn(), G4Trap::DistanceToIn(), G4Trd::DistanceToIn(), G4Box::DistanceToOut(), G4Ellipsoid::DistanceToOut(), G4EllipticalTube::DistanceToOut(), G4ExtrudedSolid::DistanceToOut(), G4Para::DistanceToOut(), G4Tet::DistanceToOut(), G4Trap::DistanceToOut(), G4Trd::DistanceToOut(), G4ITStepProcessor::DoDefinePhysicalStepLength(), G4PathFinder::DoNextCurvedStep(), G4ScoringBox::Draw(), G4ScoringCylinder::Draw(), G4ScoringBox::DrawColumn(), G4ScoringCylinder::DrawColumn(), G4GMocrenFileSceneHandler::EndSavingGdd(), G4EmModelManager::FillDEDXVector(), G4EmModelManager::FillLambdaVector(), G4EmUtility::FillPeaksStructure(), G4HadXSHelper::FillPeaksStructure(), G4Absorber::FindAbsorbers(), G4EmUtility::FindCrossSectionMax(), G4EmUtility::FindCrossSectionMax(), G4HadXSHelper::FindCrossSectionMax(), G4ITStepProcessor::FindTransportationStep(), G4DNAScavengerProcess::G4DNAScavengerProcess(), G4EmCalculator::G4EmCalculator(), G4ITModelProcessor::G4ITModelProcessor(), G4ITStepProcessor::G4ITStepProcessor(), G4ITStepProcessor::G4ITStepProcessor(), G4LFission::G4LFission(), G4NeutronKiller::G4NeutronKiller(), G4ParticleHPVector::G4ParticleHPVector(), G4ParticleHPVector::G4ParticleHPVector(), G4SteppingManager::G4SteppingManager(), G4VXTRenergyLoss::G4VXTRenergyLoss(), G4XAnnihilationChannel::G4XAnnihilationChannel(), G4XAnnihilationChannel::G4XAnnihilationChannel(), G4XMesonBaryonElastic::G4XMesonBaryonElastic(), G4VAtomDeexcitation::GenerateParticles(), GFlashHomoShowerParameterisation::GenerateRadius(), GFlashSamplingShowerParameterisation::GenerateRadius(), G4PrimaryTransformer::GenerateSingleTrack(), G4ParticleHPVector::Get15percentBorder(), G4ParticleHPVector::Get50percentBorder(), G4DensityEffectData::GetAdensity(), G4DensityEffectData::GetAdjustmentFactor(), G4ParticleHPFFFissionFS::GetAFissionFragment(), G4ITStepProcessor::GetAtRestIL(), G4DensityEffectData::GetCdensity(), G4MesonAbsorption::GetCollisions(), G4Scatterer::GetCollisions(), G4AdjointAlongStepWeightCorrection::GetContinuousStepLimit(), G4AdjointForcedInteractionForGamma::GetContinuousStepLimit(), G4VEnergyLossProcess::GetContinuousStepLimit(), G4EmCalculator::GetCrossSectionPerVolume(), G4LossTableManager::GetCSDARange(), G4VEnergyLossProcess::GetCSDARange(), G4DensityEffectData::GetDelta0density(), G4ErrorTarget::GetDistanceFromPoint(), G4ErrorTarget::GetDistanceFromPoint(), G4ErrorTrackLengthTarget::GetDistanceFromPoint(), G4ErrorTrackLengthTarget::GetDistanceFromPoint(), G4tgrUtils::GetDouble(), G4TheoFSGenerator::GetEnergyMomentumCheckLevels(), GFlashParticleBounds::GetEneToKill(), G4DensityEffectData::GetErrorDensity(), G4LENDFission::GetFatalEnergyCheckLevels(), G4NuclideTable::GetIsotope(), G4DensityEffectData::GetMdensity(), G4AnnihiToMuPair::GetMeanFreePath(), G4Channeling::GetMeanFreePath(), G4Decay::GetMeanFreePath(), G4DNAElectronHoleRecombination::GetMeanFreePath(), G4DNAPolyNucleotideReactionProcess::GetMeanFreePath(), G4ElNeutrinoNucleusProcess::GetMeanFreePath(), G4EmCalculator::GetMeanFreePath(), G4ForwardXrayTR::GetMeanFreePath(), G4HadronicProcess::GetMeanFreePath(), G4hImpactIonisation::GetMeanFreePath(), G4LowECapture::GetMeanFreePath(), G4MicroElecCapture::GetMeanFreePath(), G4MicroElecSurface::GetMeanFreePath(), G4MuNeutrinoNucleusProcess::GetMeanFreePath(), G4MuonicAtomDecay::GetMeanFreePath(), G4NeutrinoElectronProcess::GetMeanFreePath(), G4NeutronKiller::GetMeanFreePath(), G4OpAbsorption::GetMeanFreePath(), G4OpBoundaryProcess::GetMeanFreePath(), G4OpMieHG::GetMeanFreePath(), G4OpRayleigh::GetMeanFreePath(), G4OpWLS2::GetMeanFreePath(), G4OpWLS::GetMeanFreePath(), G4PhononReflection::GetMeanFreePath(), G4PolarizedAnnihilation::GetMeanFreePath(), G4PolarizedCompton::GetMeanFreePath(), G4PolarizedIonisation::GetMeanFreePath(), G4RadioactiveDecay::GetMeanFreePath(), G4Scintillation::GetMeanFreePath(), G4SynchrotronRadiation::GetMeanFreePath(), G4SynchrotronRadiationInMat::GetMeanFreePath(), G4TauNeutrinoNucleusProcess::GetMeanFreePath(), G4TransitionRadiation::GetMeanFreePath(), G4UCNAbsorption::GetMeanFreePath(), G4UCNBoundaryProcess::GetMeanFreePath(), G4UCNLoss::GetMeanFreePath(), G4UCNMultiScattering::GetMeanFreePath(), G4VLEPTSModel::GetMeanFreePath(), G4VMultipleScattering::GetMeanFreePath(), G4VTransitionRadiation::GetMeanFreePath(), G4VXTRenergyLoss::GetMeanFreePath(), G4XrayReflection::GetMeanFreePath(), G4DensityEffectData::GetMeanIonisationPotential(), G4DNAElectronHoleRecombination::GetMeanLifeTime(), G4RadioactiveDecay::GetMeanLifeTime(), G4Scintillation::GetMeanLifeTime(), G4HadronicInteraction::GetMinEnergy(), GFlashParticleBounds::GetMinEneToParametrise(), G4SampleResonance::GetMinimumMass(), G4CollisionManager::GetNextCollision(), G4ITTrackHolder::GetNextTime(), G4Scheduler::GetNextWatchedTime(), G4PAIxSection::GetPhotonRange(), G4ParticleHPPhotonDist::GetPhotons(), G4DensityEffectData::GetPlasmaEnergy(), G4EnergyLossTables::GetPreciseEnergyFromRange(), G4NuclearFermiDensity::GetRadius(), G4NuclearShellModelDensity::GetRadius(), G4EnergyLossTables::GetRange(), G4LossTableManager::GetRange(), G4LossTableManager::GetRangeFromRestricteDEDX(), G4EmBiasingManager::GetStepLimit(), G4Scatterer::GetTimeToInteraction(), G4VMscModel::GetTransportMeanFreePath(), G4VMscModel::GetTransportMeanFreePath(), G4DensityEffectData::GetX0density(), G4DensityEffectData::GetX1density(), G4VCrossSectionSource::HighLimit(), G4ParticleHPDeExGammas::Init(), G4TablesForExtrapolator::Initialisation(), G4DNAModelInterface::Initialise(), G4FermiFragmentsPoolVI::Initialise(), G4IonCoulombCrossSection::Initialise(), G4ScreeningMottCrossSection::Initialise(), G4WentzelOKandVIxSection::Initialise(), G4EmUtility::InitialiseElementSelectors(), G4ITStepProcessor::Initialize(), HepPolyhedron::JoinCoplanarFacets(), G4VEmProcess::MeanFreePath(), G4VEnergyLossProcess::MeanFreePath(), G4KDTree::Nearest(), nf_gammaFunction(), G4BorisDriver::OneGoodStep(), G4DNAScavengerProcess::PostStepDoIt(), G4DNASecondOrderReaction::PostStepDoIt(), G4GammaConversionToMuons::PostStepDoIt(), G4HadronElasticProcess::PostStepDoIt(), G4HadronicProcess::PostStepDoIt(), G4VEmProcess::PostStepDoIt(), G4VEnergyLossProcess::PostStepDoIt(), G4AdjointForcedInteractionForGamma::PostStepGetPhysicalInteractionLength(), G4BiasingProcessInterface::PostStepGetPhysicalInteractionLength(), G4Cerenkov::PostStepGetPhysicalInteractionLength(), G4Decay::PostStepGetPhysicalInteractionLength(), G4DNAScavengerProcess::PostStepGetPhysicalInteractionLength(), G4DNASecondOrderReaction::PostStepGetPhysicalInteractionLength(), G4FastSimulationManagerProcess::PostStepGetPhysicalInteractionLength(), G4GammaGeneralProcess::PostStepGetPhysicalInteractionLength(), G4HadronicProcess::PostStepGetPhysicalInteractionLength(), G4HadronStoppingProcess::PostStepGetPhysicalInteractionLength(), G4ImportanceProcess::PostStepGetPhysicalInteractionLength(), G4ITTransportation::PostStepGetPhysicalInteractionLength(), G4LowECapture::PostStepGetPhysicalInteractionLength(), G4MaxTimeCuts::PostStepGetPhysicalInteractionLength(), G4MinEkineCuts::PostStepGetPhysicalInteractionLength(), G4MuonicAtomDecay::PostStepGetPhysicalInteractionLength(), G4NeutronKiller::PostStepGetPhysicalInteractionLength(), G4ParallelGeometriesLimiterProcess::PostStepGetPhysicalInteractionLength(), G4ParallelWorldProcess::PostStepGetPhysicalInteractionLength(), G4ParallelWorldScoringProcess::PostStepGetPhysicalInteractionLength(), G4PolarizedAnnihilation::PostStepGetPhysicalInteractionLength(), G4PolarizedCompton::PostStepGetPhysicalInteractionLength(), G4PolarizedIonisation::PostStepGetPhysicalInteractionLength(), G4ScoreSplittingProcess::PostStepGetPhysicalInteractionLength(), G4SpecialCuts::PostStepGetPhysicalInteractionLength(), G4StepLimiter::PostStepGetPhysicalInteractionLength(), G4Transportation::PostStepGetPhysicalInteractionLength(), G4UserSpecialCuts::PostStepGetPhysicalInteractionLength(), G4VContinuousDiscreteProcess::PostStepGetPhysicalInteractionLength(), G4VDiscreteProcess::PostStepGetPhysicalInteractionLength(), G4VEmProcess::PostStepGetPhysicalInteractionLength(), G4VEnergyLossProcess::PostStepGetPhysicalInteractionLength(), G4VITDiscreteProcess::PostStepGetPhysicalInteractionLength(), G4VITRestDiscreteProcess::PostStepGetPhysicalInteractionLength(), G4VMultipleScattering::PostStepGetPhysicalInteractionLength(), G4VRestContinuousDiscreteProcess::PostStepGetPhysicalInteractionLength(), G4VRestDiscreteProcess::PostStepGetPhysicalInteractionLength(), G4WeightCutOffProcess::PostStepGetPhysicalInteractionLength(), G4WeightWindowProcess::PostStepGetPhysicalInteractionLength(), G4DNAIRTMoleculeEncounterStepper::Prepare(), G4IonParametrisedLossModel::PrintDEDXTable(), G4BOptnForceCommonTruncatedExp::ProposeAlongStepLimit(), G4VBiasingOperation::ProposeAlongStepLimit(), HepGeom::BasicVector3D< T >::pseudoRapidity(), G4AnalyticalPolSolver::QuarticRoots(), G4ChannelingECHARM::ReadFromECHARM(), G4ITNavigator2::RecheckDistanceToCurrentBoundary(), G4VIntersectionLocator::ReportImmediateHit(), G4Scheduler::Reset(), G4VoxelSafety::SafetyForVoxelHeader(), G4VoxelSafety::SafetyForVoxelNode(), G4ParticleHPLegendreStore::Sample(), G4ILawForceFreeFlight::SampleInteractionLength(), G4InteractionLawPhysical::SampleInteractionLength(), G4WentzelVIModel::SampleScattering(), G4DNAModelInterface::SampleSecondaries(), G4TDNAOneStepThermalizationModel< MODEL >::SampleSecondaries(), G4ChannelingMaterialData::SetBR(), G4ChannelingMaterialData::SetBR(), G4ChargeState::SetChargeSpinMoments(), G4PrimaryTransformer::SetDecayProducts(), CLHEP::RandStudentT::shoot(), G4VEmProcess::StartTracking(), G4VEnergyLossProcess::StartTracking(), G4Scheduler::Stepping(), G4CoulombScattering::StreamProcessInfo(), G4eBremsstrahlung::StreamProcessInfo(), G4ErrorPropagationNavigator::TargetSafetyFromPoint(), G4VisExtent::Transform(), G4RKPropagation::Transport(), G4ILawForceFreeFlight::UpdateInteractionLengthForStep(), G4VBiasingInteractionLaw::UpdateInteractionLengthForStep(), and G4VEmModel::Value().

◆ DBL_MIN

#define DBL_MIN   std::numeric_limits<double>::min()

◆ FLT_DIG

#define FLT_DIG   std::numeric_limits<float>::digits10

Definition at line 74 of file templates.hh.

◆ FLT_EPSILON

#define FLT_EPSILON   std::numeric_limits<float>::epsilon()

Definition at line 82 of file templates.hh.

◆ FLT_MAX

#define FLT_MAX   std::numeric_limits<float>::max()

◆ FLT_MIN

#define FLT_MIN   std::numeric_limits<float>::min()

Definition at line 70 of file templates.hh.

Referenced by G4tgrUtils::GetDouble().

◆ G4_SQR_DEFINED

#define G4_SQR_DEFINED

Definition at line 122 of file templates.hh.

◆ HIGH_PRECISION

#define HIGH_PRECISION   1

Definition at line 41 of file templates.hh.

◆ INT_MAX

◆ INT_MIN

#define INT_MIN   std::numeric_limits<int>::min()

Definition at line 94 of file templates.hh.

Referenced by G4UIparsing::ChkMax(), and G4tgrUtils::GetDouble().

◆ LOG_EKIN_MIN

#define LOG_EKIN_MIN   -30

Definition at line 98 of file templates.hh.

Referenced by G4UrbanMscModel::G4UrbanMscModel().

◆ MAXFLOAT

#define MAXFLOAT   std::numeric_limits<float>::max()

Definition at line 86 of file templates.hh.

Typedef Documentation

◆ Float

using Float = double

Definition at line 45 of file templates.hh.

Function Documentation

◆ G4ConsumeParameters()

template<typename... _Args>
void G4ConsumeParameters ( _Args && ...)
inline

◆ G4lrint()

int G4lrint ( double ad)
inline

Definition at line 134 of file templates.hh.

135{
136 return (int)std::lrint(ad);
137}

Referenced by G4EmBiasingManager::ActivateSecondaryBiasing(), G4BinaryLightIonReaction::ApplyYourself(), G4EMDissociation::ApplyYourself(), G4LowEIonFragmentation::ApplyYourself(), G4ParticleHPChannel::ApplyYourself(), G4ParticleHPInelasticBaseFS::BaseApply(), G4AdjointCSManager::BuildCrossSectionMatrices(), G4KokoulinMuonNuclearXS::BuildCrossSectionTable(), G4EmTableUtil::BuildLambdaTable(), G4EmTableUtil::BuildLambdaTable(), G4VEmProcess::BuildLambdaTable(), G4VEnergyLossProcess::BuildLambdaTable(), G4BGGNucleonElasticXS::BuildPhysicsTable(), G4BGGNucleonInelasticXS::BuildPhysicsTable(), G4BGGPionElasticXS::BuildPhysicsTable(), G4BGGPionInelasticXS::BuildPhysicsTable(), G4TransportationWithMsc::BuildPhysicsTable(), G4LossTableBuilder::BuildTableForModel(), G4PreCompoundTransitions::CalculateProbability(), G4HadronicProcess::CheckEnergyMomentumConservation(), G4ParticleHPInelasticCompFS::CompositeApply(), G4VEmAdjointModel::ComputeAdjointCrossSectionVectorPerAtomForScatProj(), G4VEmAdjointModel::ComputeAdjointCrossSectionVectorPerAtomForSecond(), G4BoldyshevTripletModel::ComputeCrossSectionPerAtom(), G4eBremsstrahlungRelModel::ComputeCrossSectionPerAtom(), G4eCoulombScatteringModel::ComputeCrossSectionPerAtom(), G4EmCalculator::ComputeCrossSectionPerAtom(), G4hCoulombScatteringModel::ComputeCrossSectionPerAtom(), G4IonCoulombScatteringModel::ComputeCrossSectionPerAtom(), G4JAEAElasticScatteringModel::ComputeCrossSectionPerAtom(), G4JAEAPolarizedElasticScatteringModel::ComputeCrossSectionPerAtom(), G4LivermoreComptonModel::ComputeCrossSectionPerAtom(), G4LivermoreGammaConversion5DModel::ComputeCrossSectionPerAtom(), G4LivermoreGammaConversionModel::ComputeCrossSectionPerAtom(), G4LivermorePhotoElectricModel::ComputeCrossSectionPerAtom(), G4LivermorePolarizedComptonModel::ComputeCrossSectionPerAtom(), G4LivermorePolarizedRayleighModel::ComputeCrossSectionPerAtom(), G4LivermoreRayleighModel::ComputeCrossSectionPerAtom(), G4LowEPComptonModel::ComputeCrossSectionPerAtom(), G4LowEPPolarizedComptonModel::ComputeCrossSectionPerAtom(), G4PairProductionRelModel::ComputeCrossSectionPerAtom(), G4SeltzerBergerModel::ComputeCrossSectionPerAtom(), G4UrbanAdjointMscModel::ComputeCrossSectionPerAtom(), G4UrbanMscModel::ComputeCrossSectionPerAtom(), G4WentzelVIModel::ComputeCrossSectionPerAtom(), G4WentzelVIRelModel::ComputeCrossSectionPerAtom(), G4AtimaEnergyLossModel::ComputeDEDXPerVolume(), G4hBremsstrahlungModel::ComputeDMicroscopicCrossSection(), G4MuBremsstrahlungModel::ComputeDMicroscopicCrossSection(), G4PairProductionRelModel::ComputeDXSectionPerAtom(), G4MuPairProductionModel::ComputeMicroscopicCrossSection(), G4PairProductionRelModel::ComputeRelDXSectionPerAtom(), G4PairProductionRelModel::ComputeXSectionPerAtom(), G4MuPairProductionModel::ComputMuPairLoss(), G4DNAELSEPAElasticModel::CrossSectionPerVolume(), G4KineticTrack::Decay(), G4PreCompoundModel::DeExcite(), G4Fissioner::deExcite(), G4AtimaFluctuations::Dispersion(), G4ionEffectiveCharge::EffectiveCharge(), G4HadXSHelper::FillPeaksStructure(), G4HadXSHelper::FindCrossSectionMax(), G4DNAELSEPAElasticModel::G4DNAELSEPAElasticModel(), G4Element::G4Element(), G4IonICRU73Data::G4IonICRU73Data(), G4IonisParamElm::G4IonisParamElm(), G4Material::G4Material(), G4mplIonisationWithDeltaModel::G4mplIonisationWithDeltaModel(), G4ComponentGGNuclNuclXsc::GetCoulombBarier(), G4ComponentGGHadronNucleusXsc::GetElasticElementCrossSection(), G4ComponentGGNuclNuclXsc::GetElasticElementCrossSection(), G4ComponentSAIDTotalXS::GetElasticElementCrossSection(), G4IonsShenCrossSection::GetElementCrossSection(), G4PionMinusField::GetField(), G4MesonAbsorption::GetFinalState(), G4ComponentGGHadronNucleusXsc::GetHadronNucleonXsc(), G4ComponentGGHadronNucleusXsc::GetHadronNucleonXscNS(), G4ComponentGGHadronNucleusXsc::GetHadronNucleonXscPDG(), G4ComponentGGHadronNucleusXsc::GetHNinelasticXsc(), G4ComponentGGHadronNucleusXsc::GetInelasticElementCrossSection(), G4ComponentGGNuclNuclXsc::GetInelasticElementCrossSection(), G4ComponentSAIDTotalXS::GetInelasticElementCrossSection(), G4IonsShenCrossSection::GetIsoCrossSection(), G4ParticleHPProduct::GetMultiplicity(), G4MuonMinusBoundDecay::GetMuonDecayRate(), G4ComponentGGHadronNucleusXsc::GetProductionElementCrossSection(), G4ComponentGGNuclNuclXsc::GetRatioQE(), G4ComponentGGNuclNuclXsc::GetRatioSD(), G4CollisionInitialState::GetTargetBaryonNumber(), G4CollisionInitialState::GetTargetCharge(), G4ComponentGGHadronNucleusXsc::GetTotalElementCrossSection(), G4ComponentGGNuclNuclXsc::GetTotalElementCrossSection(), G4ComponentSAIDTotalXS::GetTotalElementCrossSection(), G4NeutronHPCaptureFS::Init(), G4ParticleHPInelasticBaseFS::InitGammas(), G4ParticleHPInelasticCompFS::InitGammas(), G4DNAELSEPAElasticModel::Initialise(), G4DNAQuinnPlasmonExcitationModel::Initialise(), G4eplusTo2GammaOKVIModel::Initialise(), G4JAEAElasticScatteringModel::Initialise(), G4JAEAPolarizedElasticScatteringModel::Initialise(), G4LivermorePolarizedComptonModel::Initialise(), G4LowEPComptonModel::Initialise(), G4LowEPPolarizedComptonModel::Initialise(), G4WentzelVIModel::Initialise(), G4EmUtility::InitialiseElementSelectors(), G4hhIonisation::InitialiseEnergyLossProcess(), G4mplIonisation::InitialiseEnergyLossProcess(), G4GammaGeneralProcess::InitialiseProcess(), G4eDPWAElasticDCS::InitSCPCorrection(), G4GoudsmitSaundersonTable::InitSCPCorrection(), G4EmCorrections::IonHighOrderCorrections(), G4VXResonance::IsospinCorrection(), G4MuPairProductionModel::MaxSecondaryEnergyForElement(), G4eCoulombScatteringModel::MinPrimaryEnergy(), G4hCoulombScatteringModel::MinPrimaryEnergy(), G4EmParameters::NumberOfBins(), G4PreCompoundTransitions::PerformTransition(), G4NeutronGeneralProcess::PreparePhysicsTable(), G4VEnergyLossProcess::PreparePhysicsTable(), G4ElectronIonPair::SampleNumberOfIonsAlongStep(), G4DNAELSEPAElasticModel::SampleSecondaries(), G4eBremParametrizedModel::SampleSecondaries(), G4JAEAElasticScatteringModel::SampleSecondaries(), G4JAEAPolarizedElasticScatteringModel::SampleSecondaries(), G4PEEffectFluoModel::SampleSecondaries(), G4QuasiElasticChannel::Scatter(), G4Scatterer::Scatter(), G4Fragment::SetA(), G4ParticleHPDataUsed::SetA(), G4ParticleHPFinalState::SetA_Z(), G4ParticleHPFinalState::SetAZMs(), G4ParticleHPFinalState::SetAZMs(), G4KM_OpticalEqRhs::SetFactor(), G4VEmProcess::SetMaxKinEnergy(), G4VEmProcess::SetMinKinEnergy(), G4Nucleus::SetParameters(), G4ScreeningMottCrossSection::SetupKinematic(), G4IonCoulombCrossSection::SetupTarget(), G4Fragment::SetZ(), G4VEmProcess::StreamInfo(), and G4MuonToMuonPairProductionModel::U_func().

◆ G4SwapObj()

template<class T >
void G4SwapObj ( T * a,
T * b )
inline

Definition at line 112 of file templates.hh.

113{
114 T tmp = *a;
115 *a = *b;
116 *b = tmp;
117}

Referenced by G4KineticTrack::G4KineticTrack(), and G4MesonSplitter::SplitMeson().

◆ G4SwapPtr()

template<class T >
void G4SwapPtr ( T *& a,
T *& b )
inline

Definition at line 104 of file templates.hh.

105{
106 T* tmp = a;
107 a = b;
108 b = tmp;
109}

◆ sqr()

template<class T >
T sqr ( const T & x)
inline

Definition at line 128 of file templates.hh.

129{
130 return x * x;
131}

Referenced by G4CoupledTransportation::AlongStepGetPhysicalInteractionLength(), G4ITTransportation::AlongStepGetPhysicalInteractionLength(), G4Transportation::AlongStepGetPhysicalInteractionLength(), G4FTFAnnihilation::Annihilate(), G4KineticTrackVector::BoostBeam(), G4Reggeons::CalculateXs(), G4Reggeons::Chi_pomeron(), G4Reggeons::Chi_reggeon(), G4KDTree::HyperRect::CompareDistSqr(), G4PolarizedComptonModel::ComputeAsymmetryPerAtom(), G4Navigator::ComputeSafety(), G4PathFinder::ComputeStep(), G4AngularDistributionNP::CosTheta(), G4AngularDistributionPP::CosTheta(), G4DiffractiveExcitation::CreateStrings(), G4Parton::DefineMomentumInZ(), G4Parton::DefineMomentumInZ(), G4QGSParticipants::DeterminePartonMomenta(), G4AngularDistribution::DifferentialCrossSection(), G4PolyconeSide::DistanceAway(), G4PolyconeSide::DistanceAway(), G4EllipticalCone::DistanceToIn(), G4Paraboloid::DistanceToIn(), G4EllipticalCone::DistanceToOut(), G4Paraboloid::DistanceToOut(), G4ITPathFinder::DoNextLinearStep(), G4PathFinder::DoNextLinearStep(), G4ElasticHNScattering::ElasticScattering(), G4BrentLocator::EstimateIntersectionPoint(), G4MultiLevelLocator::EstimateIntersectionPoint(), G4SimpleLocator::EstimateIntersectionPoint(), G4ErrorMag_UsualEqRhs::EvaluateRhsGivenB(), G4Mag_SpinEqRhs::EvaluateRhsGivenB(), G4DiffractiveExcitation::ExciteParticipants(), G4QGSDiffractiveExcitation::ExciteParticipants(), G4QuarkExchange::ExciteParticipants(), G4SingleDiffractiveExcitation::ExciteParticipants(), G4ExcitedStringDecay::FragmentStrings(), G4Navigator::G4Navigator(), G4NuclearFermiDensity::G4NuclearFermiDensity(), G4QGSParticipants::G4QGSParticipants(), G4Reggeons::G4Reggeons(), G4NuclearFermiDensity::GetDeriv(), G4MesonAbsorption::GetFinalState(), G4FTFParticipants::GetList(), G4PolarizationHelper::GetParticleFrameX(), G4PolarizationHelper::GetParticleFrameY(), G4Hype::GetPointOnSurface(), G4Paraboloid::GetPointOnSurface(), G4TwistedTubs::GetPointOnSurface(), G4Reggeons::GetProbabilities(), G4PolarizationHelper::GetSpinInPRF(), G4FTFParameters::InitForInteraction(), G4PolarizedAnnihilationXS::Initialize(), G4PolarizedComptonXS::Initialize(), G4Paraboloid::Inside(), G4IntersectingCone::LineHitsCone1(), G4IntersectingCone::LineHitsCone2(), G4PathFinder::Locate(), G4KDTree::NearestInRange(), G4MagInt_Driver::OneGoodStep(), G4OldMagIntDriver::OneGoodStep(), G4VLongitudinalStringDecay::ProduceOneHadron(), G4GeneratorPrecompoundInterface::Propagate(), G4MagInt_Driver::QuickAdvance(), G4OldMagIntDriver::QuickAdvance(), G4PathFinder::ReLocate(), G4ITSafetyHelper::ReLocateWithinVolume(), G4SafetyHelper::ReLocateWithinVolume(), G4GeomTools::RemoveRedundantVertices(), G4SafetyCalculator::SafetyInCurrentVolume(), G4AntiNuclElastic::SampleInvariantT(), G4PolarizedAnnihilationModel::SampleSecondaries(), G4PolarizedComptonModel::SampleSecondaries(), G4PolarizedIonisationModel::SampleSecondaries(), G4QuasiElasticChannel::Scatter(), G4QGSParticipants::SelectInteractions(), G4EqEMFieldWithEDM::SetChargeMomentumMass(), G4EqEMFieldWithSpin::SetChargeMomentumMass(), G4Mag_SpinEqRhs::SetChargeMomentumMass(), G4RepleteEofM::SetChargeMomentumMass(), G4QGSDiffractiveExcitation::String(), G4PolyconeSide::SurfaceArea(), G4Paraboloid::SurfaceNormal(), G4PolarizedAnnihilationXS::TotalXSection(), G4PolarizedComptonXS::TotalXSection(), G4RKPropagation::Transport(), G4KineticTrack::Update4Momentum(), G4BorisScheme::UpdatePosition(), G4KineticTrack::UpdateTrackingMomentum(), and G4BorisScheme::UpdateVelocity().