Geant4  10.01.p01
templates.hh File Reference
#include <limits>
#include <climits>
+ Include dependency graph for templates.hh:
+ This graph shows which files directly or indirectly include this file:

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 G4_SQR_DEFINED
 

Typedefs

typedef double Float
 

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)
 
int G4lint (double ad)
 
int G4rint (double ad)
 

Macro Definition Documentation

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

Definition at line 79 of file templates.hh.

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

Definition at line 83 of file templates.hh.

Referenced by G4CollisionManager::AddCollision(), G4VAtomDeexcitation::AlongStepDeexcitation(), G4CoupledTransportation::AlongStepDoIt(), G4DNABrownianTransportation::AlongStepDoIt(), G4NuclearStopping::AlongStepGetPhysicalInteractionLength(), G4WeightCutOffProcess::AlongStepGetPhysicalInteractionLength(), G4ParallelWorldProcess::AlongStepGetPhysicalInteractionLength(), G4ScoreSplittingProcess::AlongStepGetPhysicalInteractionLength(), G4ImportanceProcess::AlongStepGetPhysicalInteractionLength(), G4ParallelWorldScoringProcess::AlongStepGetPhysicalInteractionLength(), G4WeightWindowProcess::AlongStepGetPhysicalInteractionLength(), G4FastSimulationManagerProcess::AlongStepGetPhysicalInteractionLength(), G4BiasingProcessInterface::AlongStepGetPhysicalInteractionLength(), G4VEnergyLossProcess::AlongStepGetPhysicalInteractionLength(), G4EllipticalTube::ApproxSurfaceNormal(), G4ScoreSplittingProcess::AtRestGetPhysicalInteractionLength(), G4ParallelWorldScoringProcess::AtRestGetPhysicalInteractionLength(), G4ParallelWorldProcess::AtRestGetPhysicalInteractionLength(), G4FastSimulationManagerProcess::AtRestGetPhysicalInteractionLength(), RunAction::BeginOfRunAction(), G4hImpactIonisation::BuildLambdaTable(), G4PAIPhotonModel::BuildLambdaVector(), G4BinaryCascade::BuildLateParticleCollisions(), G4RDVCrossSectionHandler::BuildMeanFreePathForMaterials(), G4VCrossSectionHandler::BuildMeanFreePathForMaterials(), G4VLEPTSModel::BuildMeanFreePathTable(), G4VLEPTSModel::BuildPhysicsTable(), G4IonParametrisedLossModel::BuildRangeVector(), G4QGSMSplitableHadron::BuildSeaQuark(), G4DNAMoleculeEncounterStepper::CalculateStep(), G4HadronicProcess::CheckEnergyMomentumConservation(), G4ITStepProcessor::CleanProcessor(), G4NeutronHPVector::CleanUp(), G4ParticleHPVector::CleanUp(), G4VEmProcess::Clear(), G4BraggNoDeltaModel::ComputeDEDXPerVolume(), G4ICRU73NoDeltaModel::ComputeDEDXPerVolume(), G4BetheBlochNoDeltaModel::ComputeDEDXPerVolume(), XCrystalCharacteristicArray::ComputeEC(), G4DNABrownianTransportation::ComputeGeomLimit(), G4WentzelVIRelModel::ComputeGeomPathLength(), G4WentzelVIModel::ComputeGeomPathLength(), G4SandiaTable::ComputeMatSandiaMatrix(), XVCrystalPlanarAnalytical::ComputeMaximum(), XVCrystalCharacteristic::ComputeMaximum(), G4GammaConversionToMuons::ComputeMeanFreePath(), G4EmCalculator::ComputeMeanFreePath(), G4VEmModel::ComputeMeanFreePath(), XVCrystalPlanarAnalytical::ComputeMinimum(), XVCrystalCharacteristic::ComputeMinimum(), G4Material::ComputeNuclearInterLength(), XCrystalCharacteristicArray::ComputePositionInUnitCell(), G4Material::ComputeRadiationLength(), G4ErrorPropagationNavigator::ComputeStep(), G4DNABrownianTransportation::ComputeStep(), G4VMscModel::ComputeTruePathLengthLimit(), G4WentzelVIModel::ComputeTrueStepLength(), G4WentzelVIRelModel::ComputeTrueStepLength(), ExUCNDetectorConstruction::Construct(), F06DetectorConstruction::Construct(), DMXDetectorConstruction::Construct(), WLSDetectorConstruction::ConstructFiber(), G4IonParametrisedLossModel::CorrectionsAlongStep(), G4DNASecondOrderReaction::Create(), G4Scheduler::Create(), G4LEPTSElasticModel::CrossSectionPerVolume(), G4DNAScreenedRutherfordElasticModel::CrossSectionPerVolume(), G4DNAChampionElasticModel::CrossSectionPerVolume(), G4MicroElecElasticModel::CrossSectionPerVolume(), G4DNATransformElectronModel::CrossSectionPerVolume(), G4DNAOneStepSolvatationModel::CrossSectionPerVolume(), G4VEmProcess::DefineMaterial(), G4VEnergyLossProcess::DefineMaterial(), G4SteppingManager::DefinePhysicalStepLength(), G4BOptnChangeCrossSection::DistanceToApplyOperation(), GB03BOptnSplitOrKillOnBoundary::DistanceToApplyOperation(), G4BOptnForceFreeFlight::DistanceToApplyOperation(), GB04BOptnBremSplitting::DistanceToApplyOperation(), G4BOptnForceCommonTruncatedExp::DistanceToApplyOperation(), DMXDetectorConstruction::DMXDetectorConstruction(), G4ITStepProcessor::DoDefinePhysicalStepLength(), G4ScoringCylinder::Draw(), G4ScoringBox::Draw(), G4ScoringCylinder::DrawColumn(), G4ScoringBox::DrawColumn(), Run::EndOfRun(), HistoManager::EndOfRun(), G4GMocrenFileSceneHandler::EndSavingGdd(), ExExChParticleUserInfo::ExExChParticleUserInfo(), F04ElementField::F04ElementField(), F04PhysicsList::F04PhysicsList(), G4EmModelManager::FillDEDXVector(), G4EmModelManager::FillLambdaVector(), G4ScoreQuantityMessenger::FilterCommands(), G4Absorber::FindAbsorbers(), G4MesonAbsorption::FindAndFillCluster(), G4VEmProcess::FindLambdaMax(), RE06Run::FindMinimum(), G4ITStepProcessor::FindTransportationStep(), G4ChordFinder::G4ChordFinder(), G4eeToHadronsMultiModel::G4eeToHadronsMultiModel(), G4EmParameters::G4EmParameters(), G4GammaConversionToMuons::G4GammaConversionToMuons(), G4ITStepProcessor::G4ITStepProcessor(), G4LFission::G4LFission(), G4NeutronHPVector::G4NeutronHPVector(), G4NeutronKiller::G4NeutronKiller(), G4ParticleHPContAngularPar::G4ParticleHPContAngularPar(), G4ParticleHPVector::G4ParticleHPVector(), G4PhotonEvaporation::G4PhotonEvaporation(), G4SteppingManager::G4SteppingManager(), G4UniversalFluctuation::G4UniversalFluctuation(), G4VEmProcess::G4VEmProcess(), G4VEnergyLossProcess::G4VEnergyLossProcess(), G4VGammaDeexcitation::G4VGammaDeexcitation(), G4VMscModel::G4VMscModel(), G4VXTRenergyLoss::G4VXTRenergyLoss(), G4WentzelOKandVIxSection::G4WentzelOKandVIxSection(), G4XAnnihilationChannel::G4XAnnihilationChannel(), G4XMesonBaryonElastic::G4XMesonBaryonElastic(), MedicalBeam::GenerateBeamDirection(), G4VAtomDeexcitation::GenerateParticles(), GFlashHomoShowerParameterisation::GenerateRadius(), GFlashSamplingShowerParameterisation::GenerateRadius(), G4PrimaryTransformer::GenerateSingleTrack(), G4NeutronHPVector::Get15percentBorder(), G4ParticleHPVector::Get15percentBorder(), G4NeutronHPVector::Get50percentBorder(), G4ParticleHPVector::Get50percentBorder(), G4DensityEffectData::GetAdensity(), G4DensityEffectData::GetAdjustmentFactor(), G4NeutronHPFFFissionFS::GetAFissionFragment(), G4ParticleHPFFFissionFS::GetAFissionFragment(), G4PAIPhotonModel::GetAlongStepTransfer(), G4ITStepProcessor::GetAtRestIL(), G4DensityEffectData::GetCdensity(), G4MesonAbsorption::GetCollisions(), G4Scatterer::GetCollisions(), G4ErrorEnergyLoss::GetContinuousStepLimit(), G4AdjointAlongStepWeightCorrection::GetContinuousStepLimit(), G4ContinuousGainOfEnergy::GetContinuousStepLimit(), XWrapperContinuousDiscreteProcess::GetContinuousStepLimit(), G4VEnergyLossProcess::GetContinuousStepLimit(), G4LossTableManager::GetCSDARange(), G4VEnergyLossProcess::GetCSDARange(), G4DensityEffectData::GetDelta0density(), G4ErrorTarget::GetDistanceFromPoint(), G4ErrorTrackLengthTarget::GetDistanceFromPoint(), G4tgrUtils::GetDouble(), G4HadronicProcess::GetEnergyMomentumCheckEnvvars(), G4TheoFSGenerator::GetEnergyMomentumCheckLevels(), GFlashParticleBounds::GetEneToKill(), G4DensityEffectData::GetErrorDensity(), G4NeutronHPCapture::GetFatalEnergyCheckLevels(), G4NeutronHPElastic::GetFatalEnergyCheckLevels(), G4ParticleHPElastic::GetFatalEnergyCheckLevels(), G4ParticleHPCapture::GetFatalEnergyCheckLevels(), G4LENDFission::GetFatalEnergyCheckLevels(), G4NeutronHPFission::GetFatalEnergyCheckLevels(), G4ParticleHPFission::GetFatalEnergyCheckLevels(), G4NeutronHPThermalScattering::GetFatalEnergyCheckLevels(), G4ParticleHPThermalScattering::GetFatalEnergyCheckLevels(), G4NeutronHPInelastic::GetFatalEnergyCheckLevels(), G4ParticleHPInelastic::GetFatalEnergyCheckLevels(), G4NuclideTable::GetIsotope(), XVCrystalCharacteristic::GetMaximum(), G4DensityEffectData::GetMdensity(), G4PhononReflection::GetMeanFreePath(), ExExChProcessChanneling::GetMeanFreePath(), StepLimiter::GetMeanFreePath(), StepMax::GetMeanFreePath(), G4VTransitionRadiation::GetMeanFreePath(), G4VLEPTSModel::GetMeanFreePath(), G4TransitionRadiation::GetMeanFreePath(), G4SynchrotronRadiation::GetMeanFreePath(), G4OpMieHG::GetMeanFreePath(), G4LowEnergyRayleigh::GetMeanFreePath(), G4LowEnergyCompton::GetMeanFreePath(), G4LowEnergyGammaConversion::GetMeanFreePath(), G4SynchrotronRadiationInMat::GetMeanFreePath(), G4ForwardXrayTR::GetMeanFreePath(), G4ElectronCapture::GetMeanFreePath(), G4GammaConversionToMuons::GetMeanFreePath(), G4eplusPolarizedAnnihilation::GetMeanFreePath(), G4NeutronKiller::GetMeanFreePath(), G4AnnihiToMuPair::GetMeanFreePath(), G4hImpactIonisation::GetMeanFreePath(), XWrapperDiscreteProcess::GetMeanFreePath(), G4VXTRenergyLoss::GetMeanFreePath(), G4ePolarizedIonisation::GetMeanFreePath(), G4LowEnergyPolarizedCompton::GetMeanFreePath(), G4UCNAbsorption::GetMeanFreePath(), G4UCNLoss::GetMeanFreePath(), G4UCNMultiScattering::GetMeanFreePath(), G4LowEnergyPhotoElectric::GetMeanFreePath(), G4PolarizedCompton::GetMeanFreePath(), G4OpAbsorption::GetMeanFreePath(), G4OpRayleigh::GetMeanFreePath(), G4UCNBoundaryProcess::GetMeanFreePath(), G4OpWLS::GetMeanFreePath(), G4HadronicProcess::GetMeanFreePath(), G4Scintillation::GetMeanFreePath(), G4Decay::GetMeanFreePath(), XWrapperContinuousDiscreteProcess::GetMeanFreePath(), G4EmCalculator::GetMeanFreePath(), G4OpBoundaryProcess::GetMeanFreePath(), G4ScreenedNuclearRecoil::GetMeanFreePath(), G4VMultipleScattering::GetMeanFreePath(), G4RadioactiveDecay::GetMeanFreePath(), G4Scintillation::GetMeanLifeTime(), G4RadioactiveDecay::GetMeanLifeTime(), GFlashParticleBounds::GetMinEneToParametrise(), XVCrystalCharacteristic::GetMinimum(), G4SampleResonance::GetMinimumMass(), G4CollisionManager::GetNextCollision(), G4ITTrackHolder::GetNextTime(), G4PAIxSection::GetPhotonRange(), G4ParticleHPPhotonDist::GetPhotons(), G4NeutronHPPhotonDist::GetPhotons(), G4DensityEffectData::GetPlasmaEnergy(), G4EnergyLossTables::GetPreciseEnergyFromRange(), G4NuclearShellModelDensity::GetRadius(), G4NuclearFermiDensity::GetRadius(), G4LossTableManager::GetRange(), G4EnergyLossTables::GetRange(), G4LossTableManager::GetRangeFromRestricteDEDX(), G4MolecularDissociationChannel::GetRMSRadialDisplacementOfProduct(), G4EmBiasingManager::GetStepLimit(), G4MesonAbsorption::GetTimeToAbsorption(), G4Scatterer::GetTimeToInteraction(), G4VMscModel::GetTransportMeanFreePath(), G4DensityEffectData::GetX0density(), G4DensityEffectData::GetX1density(), G4VCrossSectionSource::HighLimit(), G4TablesForExtrapolator::Initialisation(), G4IonCoulombCrossSection::Initialise(), G4WentzelVIRelXSection::Initialise(), G4WentzelOKandVIxSection::Initialise(), G4ScreeningMottCrossSection::Initialise(), G4EmModelManager::Initialise(), G4VEmModel::InitialiseElementSelectors(), G4ITStepProcessor::Initialize(), G4DNAMoleculeEncounterStepper::InitializeForNewTrack(), G4SteppingManager::InvokeAtRestDoItProcs(), G4VTwistedFaceted::LastValue::LastValue(), G4TwistedTubs::LastValue::LastValue(), G4VTwistedFaceted::LastValueWithDoubleVector::LastValueWithDoubleVector(), G4TwistedTubs::LastValueWithDoubleVector::LastValueWithDoubleVector(), G4VEmProcess::MeanFreePath(), G4VEnergyLossProcess::MeanFreePath(), G4KDTree::Nearest(), operator<<(), G4DNASecondOrderReaction::PostStepDoIt(), G4VEmProcess::PostStepDoIt(), G4VEnergyLossProcess::PostStepDoIt(), Em10StepCut::PostStepGetPhysicalInteractionLength(), F03StepCut::PostStepGetPhysicalInteractionLength(), F01StepCut::PostStepGetPhysicalInteractionLength(), F02StepCut::PostStepGetPhysicalInteractionLength(), G4StepLimiter::PostStepGetPhysicalInteractionLength(), DMXMinEkineCuts::PostStepGetPhysicalInteractionLength(), G4MinEkineCuts::PostStepGetPhysicalInteractionLength(), G4UserSpecialCuts::PostStepGetPhysicalInteractionLength(), F04StepMax::PostStepGetPhysicalInteractionLength(), HadrontherapyStepMax::PostStepGetPhysicalInteractionLength(), DMXSpecialCuts::PostStepGetPhysicalInteractionLength(), G4SpecialCuts::PostStepGetPhysicalInteractionLength(), WLSStepMax::PostStepGetPhysicalInteractionLength(), G4MaxTimeCuts::PostStepGetPhysicalInteractionLength(), DMXMaxTimeCuts::PostStepGetPhysicalInteractionLength(), IORTStepMax::PostStepGetPhysicalInteractionLength(), ML2StepMax::PostStepGetPhysicalInteractionLength(), XrayTelStepCut::PostStepGetPhysicalInteractionLength(), G4VContinuousDiscreteProcess::PostStepGetPhysicalInteractionLength(), G4VRestDiscreteProcess::PostStepGetPhysicalInteractionLength(), G4VRestContinuousDiscreteProcess::PostStepGetPhysicalInteractionLength(), G4VDiscreteProcess::PostStepGetPhysicalInteractionLength(), G4DNASecondOrderReaction::PostStepGetPhysicalInteractionLength(), G4VITRestDiscreteProcess::PostStepGetPhysicalInteractionLength(), G4ElectronCapture::PostStepGetPhysicalInteractionLength(), G4HadronStoppingProcess::PostStepGetPhysicalInteractionLength(), G4NeutronKiller::PostStepGetPhysicalInteractionLength(), G4Transportation::PostStepGetPhysicalInteractionLength(), G4WeightCutOffProcess::PostStepGetPhysicalInteractionLength(), G4ePolarizedIonisation::PostStepGetPhysicalInteractionLength(), G4ImportanceProcess::PostStepGetPhysicalInteractionLength(), G4CoupledTransportation::PostStepGetPhysicalInteractionLength(), G4eplusPolarizedAnnihilation::PostStepGetPhysicalInteractionLength(), G4MonopoleTransportation::PostStepGetPhysicalInteractionLength(), G4WeightWindowProcess::PostStepGetPhysicalInteractionLength(), G4PolarizedCompton::PostStepGetPhysicalInteractionLength(), G4ParallelWorldProcess::PostStepGetPhysicalInteractionLength(), G4FastSimulationManagerProcess::PostStepGetPhysicalInteractionLength(), G4ITTransportation::PostStepGetPhysicalInteractionLength(), G4Cerenkov::PostStepGetPhysicalInteractionLength(), G4ScoreSplittingProcess::PostStepGetPhysicalInteractionLength(), G4Decay::PostStepGetPhysicalInteractionLength(), G4ParallelWorldScoringProcess::PostStepGetPhysicalInteractionLength(), G4VEmProcess::PostStepGetPhysicalInteractionLength(), G4VMultipleScattering::PostStepGetPhysicalInteractionLength(), G4BiasingProcessInterface::PostStepGetPhysicalInteractionLength(), G4VEnergyLossProcess::PostStepGetPhysicalInteractionLength(), G4VEmProcess::PreparePhysicsTable(), G4VEnergyLossProcess::PreparePhysicsTable(), G4IonParametrisedLossModel::PrintDEDXTable(), G4CoulombScattering::PrintInfo(), G4eBremsstrahlung::PrintInfo(), G4BOptnForceCommonTruncatedExp::ProposeAlongStepLimit(), G4VBiasingOperation::ProposeAlongStepLimit(), G4BOptrForceCollision::ProposeOccurenceBiasingOperation(), GB01BOptrChangeCrossSection::ProposeOccurenceBiasingOperation(), G4AnalyticalPolSolver::QuarticRoots(), RE01Trajectory::RE01Trajectory(), XVCrystalPlanarAnalytical::ReadFromECHARM(), XVCrystalIntegratedDensity::ReadFromFile(), DicomPartialDetectorConstruction::ReadVoxelDensitiesPartial(), G4Navigator::RecheckDistanceToCurrentBoundary(), G4ITNavigator2::RecheckDistanceToCurrentBoundary(), G4Scheduler::Reset(), G4VoxelSafety::SafetyForVoxelHeader(), G4VoxelSafety::SafetyForVoxelNode(), G4NeutronHPLegendreStore::Sample(), G4ParticleHPLegendreStore::Sample(), G4InteractionLawPhysical::SampleInteractionLength(), G4ILawForceFreeFlight::SampleInteractionLength(), G4WentzelVIRelModel::SampleScattering(), G4WentzelVIModel::SampleScattering(), G4QMDGroundStateNucleus::samplingMomentum(), G4ChargeState::SetChargeSpinMoments(), G4PrimaryTransformer::SetDecayProducts(), F04ElementField::SetGlobalPoint(), G4VEnergyLossProcess::SetLambdaTable(), G4UniversalFluctuation::SetParticleAndCharge(), XDetectorConstruction::SetupGeometry(), G4VEmProcess::StartTracking(), G4VEnergyLossProcess::StartTracking(), StepMax::StepMax(), G4BinaryCascade::StepParticlesOut(), G4Scheduler::Stepping(), G4ErrorPropagationNavigator::TargetSafetyFromPoint(), G4RKPropagation::Transport(), G4ContinuumGammaTransition::Update(), G4ILawForceFreeFlight::UpdateInteractionLengthForStep(), G4VBiasingInteractionLaw::UpdateInteractionLengthForStep(), ExExChProcessChanneling::UpdateMomentum(), ExExChProcessChanneling::UpdatePosition(), G4VEmModel::Value(), and XVCrystalCharacteristic::XVCrystalCharacteristic().

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

Definition at line 75 of file templates.hh.

Referenced by HistoManager::AddTargetStep(), G4PreCompoundEmission::AngularDistribution(), G4BOptnForceFreeFlight::ApplyFinalStateBiasing(), G4ITStepProcessor::ApplyProductionCut(), G4SteppingManager::ApplyProductionCut(), G4Hype::ApproxDistInside(), G4Hype::ApproxDistOutside(), G4EllipticalTube::ApproxSurfaceNormal(), G4Decay::AtRestGetPhysicalInteractionLength(), G4DecayProducts::Boost(), G4hRDEnergyLoss::BuildInverseRangeTable(), G4PAIPhotonModel::BuildLambdaVector(), G4VLEPTSModel::BuildMeanFreePathTable(), G4PAIPhotonModel::BuildPAIonisationTable(), G4hRDEnergyLoss::BuildRangeCoeffATable(), G4hRDEnergyLoss::BuildRangeCoeffBTable(), G4PolyconeSide::CalculateExtent(), G4Track::CalculateVelocity(), G4GammaConversionToMuons::ComputeMeanFreePath(), G4VEmModel::ComputeMeanFreePath(), RunAction::ComputeMscHighland(), Run::ComputeMscHighland(), G4BGGPionInelasticXS::CoulombFactor(), G4ITStepProcessor::DealWithSecondaries(), G4BOptnForceFreeFlight::DenyProcessPostStepDoIt(), UPolyconeSide::Distance(), G4EllipticalTube::DistanceToIn(), G4Hype::DistanceToIn(), G4EllipticalTube::DistanceToOut(), G4Hype::DistanceToOut(), G4TwistTubsSide::DistanceToSurface(), G4TwistTubsHypeSide::DistanceToSurface(), UPolyhedraSide::Extent(), UPolyconeSide::Extent(), G4PolyconeSide::Extent(), G4PolyhedraSide::Extent(), G4PolyPhiFace::G4PolyPhiFace(), G4TwistedTubs::G4TwistedTubs(), G4tgrUtils::GetDouble(), G4TripathiCrossSection::GetElementCrossSection(), G4AnnihiToMuPair::GetMeanFreePath(), G4VXTRenergyLoss::GetMeanFreePath(), G4UnknownDecay::GetMeanFreePath(), G4Decay::GetMeanFreePath(), G4RadioactiveDecay::GetMeanFreePath(), G4PAIxSection::GetPhotonRange(), G4IonCoulombCrossSection::Initialise(), G4ScreeningMottCrossSection::Initialise(), G4BOptnForceCommonTruncatedExp::Initialize(), G4TwistTubsHypeSide::Inside(), G4PolyconeSide::Intersect(), G4Hype::IntersectHype(), G4EllipticalTube::IntersectXY(), G4ITStepProcessor::InvokeAlongStepDoItProcs(), G4SteppingManager::InvokeAlongStepDoItProcs(), G4SteppingManager::InvokeAtRestDoItProcs(), G4SteppingManager::InvokePSDIP(), G4DecayProducts::IsChecked(), G4VXResonance::IsospinCorrection(), operator<<(), UPolyconeSide::PointOnCone(), G4PolyconeSide::PointOnCone(), G4UserSpecialCuts::PostStepGetPhysicalInteractionLength(), G4UnknownDecay::PostStepGetPhysicalInteractionLength(), G4Decay::PostStepGetPhysicalInteractionLength(), G4BOptrForceCollision::ProposeOccurenceBiasingOperation(), MyKleinNishinaCompton::SampleSecondaries(), G4PolarizedMollerBhabhaModel::SampleSecondaries(), G4PolarizedAnnihilationModel::SampleSecondaries(), DetectorConstruction::SetAbsorSizeYZ(), DetectorConstruction::SetAbsorThickness(), G4ReactionProduct::SetDefinitionAndUpdateE(), DetectorConstruction::SetMaxStepLength(), DetectorConstruction::SetMaxStepSize(), G4RPGInelastic::SetUpChange(), and UPolyPhiFace::UPolyPhiFace().

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

Definition at line 95 of file templates.hh.

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

Definition at line 103 of file templates.hh.

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

Definition at line 99 of file templates.hh.

Referenced by G4tgrUtils::GetDouble(), and tpia_misc_sampleEqualProbableBin().

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

Definition at line 139 of file templates.hh.

#define HIGH_PRECISION   1

Definition at line 62 of file templates.hh.

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

Definition at line 115 of file templates.hh.

Referenced by G4tgrUtils::GetDouble().

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

Definition at line 107 of file templates.hh.

Typedef Documentation

typedef double Float

Definition at line 66 of file templates.hh.

Function Documentation

int G4lint ( double  ad)
inline

Definition at line 168 of file templates.hh.

int G4lrint ( double  ad)
inline

Definition at line 163 of file templates.hh.

Referenced by G4EmBiasingManager::ActivateSecondaryBiasing(), G4Material::AddElement(), G4Material::AddMaterial(), G4Element::AddNaturalIsotopes(), G4VAtomDeexcitation::AlongStepDeexcitation(), G4BinaryCascade::ApplyCollision(), G4BinaryLightIonReaction::ApplyYourself(), G4LowEIonFragmentation::ApplyYourself(), G4KokoulinMuonNuclearXS::BuildCrossSectionTable(), G4VEnergyLossProcess::BuildLambdaTable(), G4VEmProcess::BuildLambdaTable(), G4BinaryCascade::BuildLateParticleCollisions(), G4NistMaterialBuilder::BuildMaterial(), G4CrossSectionPairGG::BuildPhysicsTable(), G4BGGNucleonInelasticXS::BuildPhysicsTable(), G4BGGPionElasticXS::BuildPhysicsTable(), G4BGGNucleonElasticXS::BuildPhysicsTable(), G4NeutronInelasticXS::BuildPhysicsTable(), G4BGGPionInelasticXS::BuildPhysicsTable(), G4BinaryCascade::CheckChargeAndBaryonNumber(), G4HadronicProcess::CheckEnergyMomentumConservation(), G4Clebsch::ClebschGordan(), G4VCrossSectionDataSet::ComputeCrossSection(), G4LivermorePolarizedPhotoElectricModel::ComputeCrossSectionPerAtom(), G4LivermoreRayleighModel::ComputeCrossSectionPerAtom(), G4LivermoreComptonModel::ComputeCrossSectionPerAtom(), G4LivermorePhotoElectricModel::ComputeCrossSectionPerAtom(), G4WentzelVIModel::ComputeCrossSectionPerAtom(), G4WentzelVIRelModel::ComputeCrossSectionPerAtom(), G4UrbanMscModel::ComputeCrossSectionPerAtom(), G4GammaConversionToMuons::ComputeCrossSectionPerAtom(), G4EmCalculator::ComputeCrossSectionPerAtom(), G4IonisParamMat::ComputeDensityEffect(), G4MuBremsstrahlungModel::ComputeDMicroscopicCrossSection(), G4LivermoreBremsstrahlungModel::ComputeDXSectionPerAtom(), G4SeltzerBergerModel::ComputeDXSectionPerAtom(), G4Material::ComputeNuclearInterLength(), G4eBremParametrizedModel::ComputeParametrizedDXSectionPerAtom(), G4WentzelVIModel::ComputeSecondMoment(), G4WentzelVIModel::ComputeTransportXSectionPerVolume(), G4WentzelVIRelModel::ComputeXSectionPerVolume(), G4MonopolePhysics::ConstructProcess(), G4BinaryCascade::CorrectBarionsOnBoundary(), G4KineticTrack::Decay(), G4Fissioner::deExcite(), G4PreCompoundModel::DeExcite(), G4IonFluctuations::Factor(), G4MesonAbsorption::FindAndFillCluster(), G4BinaryCascade::FindFragments(), G4CompetitiveFission::FissionAtomicNumber(), G4Element::G4Element(), G4Material::G4Material(), G4mplIonisationWithDeltaModel::G4mplIonisationWithDeltaModel(), G4WilsonAbrasionModel::GetAbradedNucleons(), G4CrossSectionDataStore::GetCrossSection(), G4ComponentSAIDTotalXS::GetElasticElementCrossSection(), G4TripathiCrossSection::GetElementCrossSection(), G4HadronInelasticDataSet::GetElementCrossSection(), G4HadronElasticDataSet::GetElementCrossSection(), G4IonsKoxCrossSection::GetElementCrossSection(), G4IonsSihverCrossSection::GetElementCrossSection(), G4IonsShenCrossSection::GetElementCrossSection(), G4GGNuclNuclCrossSection::GetElementCrossSection(), G4CrossSectionPairGG::GetElementCrossSection(), G4IonProtonCrossSection::GetElementCrossSection(), G4NeutronElasticXS::GetElementCrossSection(), G4NeutronInelasticXS::GetElementCrossSection(), G4TripathiLightCrossSection::GetElementCrossSection(), G4GeneralSpaceNNCrossSection::GetElementCrossSection(), G4ComponentGGNuclNuclXsc::GetElementCrossSection(), G4PionMinusField::GetField(), G4MesonAbsorption::GetFinalState(), G4GlauberGribovCrossSection::GetHadronNucleonXsc(), G4GGNuclNuclCrossSection::GetHadronNucleonXsc(), G4ComponentGGHadronNucleusXsc::GetHadronNucleonXsc(), G4ComponentGGNuclNuclXsc::GetHadronNucleonXsc(), G4GlauberGribovCrossSection::GetHadronNucleonXscNS(), G4ComponentGGHadronNucleusXsc::GetHadronNucleonXscNS(), G4GlauberGribovCrossSection::GetHadronNucleonXscPDG(), G4ComponentGGHadronNucleusXsc::GetHadronNucleonXscPDG(), G4GlauberGribovCrossSection::GetHNinelasticXsc(), G4ComponentGGHadronNucleusXsc::GetHNinelasticXsc(), G4ComponentSAIDTotalXS::GetInelasticElementCrossSection(), G4IonsShenCrossSection::GetIsoCrossSection(), G4GlauberGribovCrossSection::GetNucleusRadius(), G4ComponentGGHadronNucleusXsc::GetNucleusRadius(), G4ProtonInelasticCrossSection::GetProtonCrossSection(), G4CollisionInitialState::GetTargetBaryonNumber(), G4CollisionInitialState::GetTargetCharge(), G4BinaryCascade::GetTotalBaryonCharge(), G4BinaryCascade::GetTotalCharge(), G4ComponentSAIDTotalXS::GetTotalElementCrossSection(), G4LivermoreRayleighModel::Initialise(), G4LivermoreComptonModel::Initialise(), G4WentzelVIModel::Initialise(), G4NeutronElasticXS::Initialise(), G4NeutronInelasticXS::Initialise(), G4VAtomDeexcitation::InitialiseAtomicDeexcitation(), G4mplIonisation::InitialiseEnergyLossProcess(), G4hhIonisation::InitialiseEnergyLossProcess(), G4VEmModel::InitialiseForMaterial(), G4HadronNucleonXsc::IsApplicable(), G4TripathiLightCrossSection::IsElementApplicable(), G4VXResonance::IsospinCorrection(), G4MuPairProductionModel::MaxSecondaryEnergyForElement(), G4eCoulombScatteringModel::MinPrimaryEnergy(), G4GammaConversionToMuons::PostStepDoIt(), G4VEnergyLossProcess::PreparePhysicsTable(), G4VEmProcess::PrintInfoProcess(), G4NeutronHPChannel::Register(), G4ParticleHPChannel::Register(), G4ElectronIonPair::SampleNumberOfIonsAlongStep(), G4WentzelVIRelModel::SampleScattering(), G4WentzelVIModel::SampleScattering(), G4LivermorePolarizedPhotoElectricModel::SampleSecondaries(), G4LivermoreRayleighModel::SampleSecondaries(), G4LivermoreComptonModel::SampleSecondaries(), G4LivermorePhotoElectricModel::SampleSecondaries(), G4KleinNishinaModel::SampleSecondaries(), G4PEEffectFluoModel::SampleSecondaries(), G4eBremsstrahlungRelModel::SampleSecondaries(), G4PAIPhotModel::SampleSecondaries(), G4eBremParametrizedModel::SampleSecondaries(), G4PAIModel::SampleSecondaries(), G4CrossSectionDataStore::SampleZandA(), G4Scatterer::Scatter(), G4QuasiElasticChannel::Scatter(), HistoManager::ScoreNewTrack(), G4NeutronCaptureXS::SelectIsotope(), G4NeutronInelasticXS::SelectIsotope(), G4VEmModel::SelectIsotopeNumber(), G4VEmModel::SelectRandomAtomNumber(), G4ElementSelector::SelectZandA(), G4Fragment::SetA(), G4KM_OpticalEqRhs::SetFactor(), G4EmParameters::SetMaxEnergy(), G4VEmProcess::SetMaxKinEnergy(), G4EmParameters::SetMinEnergy(), G4VEmProcess::SetMinKinEnergy(), G4EmParameters::SetNumberOfBins(), G4EmParameters::SetNumberOfBinsPerDecade(), G4Nucleus::SetParameters(), G4IonCoulombCrossSection::SetScreenRSquare(), G4IonCoulombCrossSection::SetupTarget(), G4Fragment::SetZ(), G4EmCorrections::ShellCorrection(), G4BinaryLightIonReaction::SortResult(), HadrontherapyDetectorConstruction::UpdateGeometry(), IORTDetectorConstruction::UpdateGeometry(), and G4Clebsch::Wigner3J().

int G4rint ( double  ad)
inline

Definition at line 173 of file templates.hh.

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

Definition at line 129 of file templates.hh.

References a.

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

+ Here is the caller graph for this function:

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

Definition at line 121 of file templates.hh.

References a.

Referenced by G4OpBoundaryProcess::DielectricDielectric().

+ Here is the caller graph for this function:

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

Definition at line 145 of file templates.hh.

Referenced by G4FTFModel::AdjustNucleons(), G4Transportation::AlongStepGetPhysicalInteractionLength(), G4CoupledTransportation::AlongStepGetPhysicalInteractionLength(), G4MonopoleTransportation::AlongStepGetPhysicalInteractionLength(), G4ITTransportation::AlongStepGetPhysicalInteractionLength(), G4FTFAnnihilation::Annihilate(), G4Hype::asinh(), G4KineticTrackVector::BoostBeam(), G4BinaryCascade::BuildTargetList(), G4PairProductionRelModel::CalcLPMFunctions(), G4eBremsstrahlungRelModel::CalcLPMFunctions(), G4Ellipsoid::CalculateExtent(), CalculatePointSafety(), G4RPGKPlusInelastic::Cascade(), G4FTFModel::CheckKinematics(), G4BinaryCascade::CheckPauliPrinciple(), G4Fancy3DNucleus::ChooseFermiMomenta(), G4Fancy3DNucleus::ChoosePositions(), G4KDTree::HyperRect::CompareDistSqr(), G4PolarizedComptonModel::ComputeAsymmetryPerAtom(), G4FTFModel::ComputeNucleusProperties(), G4Navigator::ComputeStepLog(), G4ITNavigator1::ComputeStepLog(), G4ITNavigator2::ComputeStepLog(), G4AngularDistributionNP::CosTheta(), G4AngularDistributionPP::CosTheta(), G4Paraboloid::CreateRotatedVertices(), G4DiffractiveExcitation::CreateStrings(), G4BinaryCascade::DecayVoidNucleus(), G4Parton::DefineMomentumInZ(), G4GHEKinematicsVector::Defs1(), G4AngularDistribution::DifferentialCrossSection(), G4QGSMSplitableHadron::DiffractiveSplitUp(), G4LundStringFragmentation::Diquark_AntiDiquark_aboveThreshold_lastSplitting(), G4PolyconeSide::DistanceAway(), G4Ellipsoid::DistanceToIn(), G4Paraboloid::DistanceToIn(), G4EllipticalCone::DistanceToIn(), G4Ellipsoid::DistanceToOut(), G4Paraboloid::DistanceToOut(), G4EllipticalCone::DistanceToOut(), G4PathFinder::DoNextLinearStep(), G4ITPathFinder::DoNextLinearStep(), G4ElasticHNScattering::ElasticScattering(), G4BinaryLightIonReaction::EnergyAndMomentumCorrector(), G4ExcitedStringDecay::EnergyAndMomentumCorrector(), G4BrentLocator::EstimateIntersectionPoint(), G4MultiLevelLocator::EstimateIntersectionPoint(), G4SimpleLocator::EstimateIntersectionPoint(), G4ErrorMag_UsualEqRhs::EvaluateRhsGivenB(), G4Mag_SpinEqRhs::EvaluateRhsGivenB(), G4DiffractiveExcitation::ExciteParticipants(), G4SingleDiffractiveExcitation::ExciteParticipants(), ExN04Field::ExN04Field(), G4PomeronCrossSection::Expand(), G4RKPropagation::FieldTransport(), G4FTFModel::FinalizeKinematics(), G4BinaryLightIonReaction::FuseNucleiAndPrompound(), G4FTFParameters::G4FTFParameters(), G4NuclearFermiDensity::G4NuclearFermiDensity(), G4PolarizedComptonCrossSection::G4PolarizedComptonCrossSection(), MedicalBeam::GenerateBeamDirection(), G4FTFModel::GenerateDeltaIsobar(), MedicalBeam::GeneratePrimaries(), G4NuclearFermiDensity::GetDeriv(), H02Field::GetFieldValue(), ExN04Field::GetFieldValue(), RE01Field::GetFieldValue(), RE05Field::GetFieldValue(), G4MesonAbsorption::GetFinalState(), G4VKinkyStringDecay::GetLightConeGluonZ(), G4FTFParticipants::GetList(), G4PolarizationHelper::GetParticleFrameX(), G4PolarizationHelper::GetParticleFrameY(), G4Polycone::GetPointOnCone(), G4EllipticalTube::GetPointOnSurface(), G4Polycone::GetPointOnSurface(), G4Orb::GetPointOnSurface(), G4Ellipsoid::GetPointOnSurface(), G4Paraboloid::GetPointOnSurface(), G4Polyhedra::GetPointOnSurface(), G4Hype::GetPointOnSurface(), G4EllipticalCone::GetPointOnSurface(), G4Cons::GetPointOnSurface(), G4Sphere::GetPointOnSurface(), G4TwistedTubs::GetPointOnSurface(), G4ChipsAntiBaryonElasticXS::GetQ2max(), G4DiffractiveExcitation::GetQuarkFractionOfKink(), G4CSGSolid::GetRadiusInRing(), UUtils::GetRadiusInRing(), G4BinaryCascade::GetSpherePoint(), G4PolarizationHelper::GetSpinInPRF(), G4ChipsKaonPlusElasticXS::GetTabValues(), G4ChipsKaonMinusElasticXS::GetTabValues(), G4GHEKinematicsVector::Impu(), G4PolarizedAnnihilationCrossSection::Initialize(), G4PolarizedComptonCrossSection::Initialize(), G4Ellipsoid::Inside(), G4Paraboloid::Inside(), G4EllipticalCone::Inside(), G4BinaryLightIonReaction::Interact(), G4QGSMFragmentation::IsFragmentable(), G4LundStringFragmentation::lambda(), G4VLongitudinalStringDecay::LightFragmentationTest(), G4IntersectingCone::LineHitsCone1(), G4IntersectingCone::LineHitsCone2(), G4GHEKinematicsVector::Lor(), G4KDTree::NearestInRange(), G4MagInt_Driver::OneGoodStep(), G4eBremsstrahlungRelModel::Phi1(), ExN04MuonSD::ProcessHits(), RE05MuonSD::ProcessHits(), G4eBremsstrahlungRelModel::Psi1(), G4FTFModel::PutOnMassShell(), G4LundStringFragmentation::Quark_AntiQuark_lastSplitting(), G4LundStringFragmentation::Quark_Diquark_lastSplitting(), G4MagInt_Driver::QuickAdvance(), RE01Field::RE01Field(), RE05Field::RE05Field(), G4FTFModel::ReggeonCascade(), G4SafetyHelper::ReLocateWithinVolume(), G4ITSafetyHelper::ReLocateWithinVolume(), G4QGSMFragmentation::Sample4Momentum(), G4LundStringFragmentation::Sample4Momentum(), G4AntiNuclElastic::SampleInvariantT(), G4VLongitudinalStringDecay::SampleQuarkPt(), G4PolarizedMollerBhabhaModel::SampleSecondaries(), G4PolarizedComptonModel::SampleSecondaries(), G4PolarizedAnnihilationModel::SampleSecondaries(), G4FTFModel::SamplingNucleonKinematics(), G4QuasiElasticChannel::Scatter(), G4GammaParticipants::SelectInteractions(), G4QGSParticipants::SelectInteractions(), G4EqEMFieldWithSpin::SetChargeMomentumMass(), G4RepleteEofM::SetChargeMomentumMass(), G4EqEMFieldWithEDM::SetChargeMomentumMass(), G4Mag_SpinEqRhs::SetChargeMomentumMass(), G4DecayWithSpin::Spin_Precession(), G4QGSMFragmentation::SplitEandP(), G4LundStringFragmentation::SplitEandP(), G4QGSMFragmentation::StopFragmenting(), G4QGSDiffractiveExcitation::String(), G4PolyconeSide::SurfaceArea(), G4Paraboloid::SurfaceNormal(), G4EllipticalCone::SurfaceNormal(), G4PolarizedAnnihilationCrossSection::TotalXSection(), G4PolarizedComptonCrossSection::TotalXSection(), G4RKPropagation::Transport(), G4KineticTrack::Update4Momentum(), and G4KineticTrack::UpdateTrackingMomentum().