templates.hh File Reference

#include <limits>
#include <climits>

Go to the source code of this file.

Defines

#define templates_h   1
#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()

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)


Define Documentation

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

Definition at line 79 of file templates.hh.

#define DBL_EPSILON   std::numeric_limits<double>::epsilon()

Definition at line 87 of file templates.hh.

Referenced by G4Polyhedra::Create(), G4Hype::DistanceToIn(), G4Polyhedra::G4Polyhedra(), G4TriangularFacet::Intersect(), G4TessellatedGeometryAlgorithms::IntersectLineAndLineSegment2D(), G4ErrorSymMatrix::invertBunchKaufman(), G4GDMLWriteParamvol::ParametersWrite(), and G4SampleResonance::SampleMass().

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

Definition at line 83 of file templates.hh.

Referenced by G4KDTree::__NearestInRange(), G4CollisionManager::AddCollision(), G4VAtomDeexcitation::AlongStepDeexcitation(), G4CoupledTransportation::AlongStepDoIt(), G4WeightWindowProcess::AlongStepGetPhysicalInteractionLength(), G4WeightCutOffProcess::AlongStepGetPhysicalInteractionLength(), G4VEnergyLossProcess::AlongStepGetPhysicalInteractionLength(), G4ScoreSplittingProcess::AlongStepGetPhysicalInteractionLength(), G4ParallelWorldScoringProcess::AlongStepGetPhysicalInteractionLength(), G4ParallelWorldProcess::AlongStepGetPhysicalInteractionLength(), G4NuclearStopping::AlongStepGetPhysicalInteractionLength(), G4ImportanceProcess::AlongStepGetPhysicalInteractionLength(), G4FastSimulationManagerProcess::AlongStepGetPhysicalInteractionLength(), G4ScoreSplittingProcess::AtRestGetPhysicalInteractionLength(), G4ParallelWorldScoringProcess::AtRestGetPhysicalInteractionLength(), G4ParallelWorldProcess::AtRestGetPhysicalInteractionLength(), G4FastSimulationManagerProcess::AtRestGetPhysicalInteractionLength(), G4QIonIonCollision::Breeder(), G4QFragmentation::Breeder(), G4PAIPhotonModel::BuildLambdaVector(), G4PAIModel::BuildLambdaVector(), G4VCrossSectionHandler::BuildMeanFreePathForMaterials(), G4DNAMoleculeEncounterStepper::CalculateStep(), G4HadronicProcess::CheckEnergyMomentumConservation(), G4ITStepProcessor::CleanProcessor(), G4NeutronHPVector::CleanUp(), G4ICRU73NoDeltaModel::ComputeDEDXPerVolume(), G4BraggNoDeltaModel::ComputeDEDXPerVolume(), G4BetheBlochNoDeltaModel::ComputeDEDXPerVolume(), G4WentzelVIRelModel::ComputeGeomPathLength(), G4WentzelVIModel::ComputeGeomPathLength(), G4VEmModel::ComputeMeanFreePath(), G4GammaConversionToMuons::ComputeMeanFreePath(), G4EmCalculator::ComputeMeanFreePath(), G4ErrorPropagationNavigator::ComputeStep(), G4DNABrownianTransportation::ComputeStep(), G4VMscModel::ComputeTruePathLengthLimit(), G4WentzelVIRelModel::ComputeTrueStepLength(), G4WentzelVIModel::ComputeTrueStepLength(), G4IonParametrisedLossModel::CorrectionsAlongStep(), G4DNATransformElectronModel::CrossSectionPerVolume(), G4DNAScreenedRutherfordElasticModel::CrossSectionPerVolume(), G4DNASancheSolvatationModel::CrossSectionPerVolume(), G4DNAChampionElasticModel::CrossSectionPerVolume(), G4ITStepProcessor::DoDefinePhysicalStepLength(), G4ScoringCylinder::Draw(), G4ScoringBox::Draw(), G4ScoringCylinder::DrawColumn(), G4ScoringBox::DrawColumn(), G4GMocrenFileSceneHandler::EndSavingGdd(), G4EmModelManager::FillDEDXVector(), G4EmModelManager::FillLambdaVector(), G4Absorber::FindAbsorbers(), G4ITStepProcessor::FindTransportationStep(), G4ChordFinder::G4ChordFinder(), G4eeToHadronsMultiModel::G4eeToHadronsMultiModel(), G4GammaConversionToMuons::G4GammaConversionToMuons(), G4ITStepProcessor::G4ITStepProcessor(), G4LCapture::G4LCapture(), G4LElastic::G4LElastic(), G4LFission::G4LFission(), G4NeutronHPVector::G4NeutronHPVector(), G4NeutronKiller::G4NeutronKiller(), G4PhotonEvaporation::G4PhotonEvaporation(), G4QFragmentation::G4QFragmentation(), G4QIonIonCollision::G4QIonIonCollision(), G4SteppingManager::G4SteppingManager(), G4VEmProcess::G4VEmProcess(), G4VGammaDeexcitation::G4VGammaDeexcitation(), G4VMscModel::G4VMscModel(), G4VXTRenergyLoss::G4VXTRenergyLoss(), G4WentzelOKandVIxSection::G4WentzelOKandVIxSection(), G4XAnnihilationChannel::G4XAnnihilationChannel(), G4XMesonBaryonElastic::G4XMesonBaryonElastic(), G4VAtomDeexcitation::GenerateParticles(), GFlashSamplingShowerParameterisation::GenerateRadius(), GFlashHomoShowerParameterisation::GenerateRadius(), G4PrimaryTransformer::GenerateSingleTrack(), G4NeutronHPVector::Get15percentBorder(), G4NeutronHPVector::Get50percentBorder(), G4DensityEffectData::GetAdensity(), G4DensityEffectData::GetAdjustmentFactor(), G4NeutronHPFFFissionFS::GetAFissionFragment(), G4PAIPhotonModel::GetAlongStepTransfer(), G4ITStepProcessor::GetAtRestIL(), G4DensityEffectData::GetCdensity(), G4Scatterer::GetCollisions(), G4MesonAbsorption::GetCollisions(), G4VEnergyLossProcess::GetContinuousStepLimit(), G4ErrorEnergyLoss::GetContinuousStepLimit(), G4ContinuousGainOfEnergy::GetContinuousStepLimit(), G4AdjointAlongStepWeightCorrection::GetContinuousStepLimit(), G4VEnergyLossProcess::GetCSDARange(), G4LossTableManager::GetCSDARange(), G4DensityEffectData::GetDelta0density(), G4ErrorTrackLengthTarget::GetDistanceFromPoint(), G4ErrorTarget::GetDistanceFromPoint(), G4tgrUtils::GetDouble(), G4TheoFSGenerator::GetEnergyMomentumCheckLevels(), GFlashParticleBounds::GetEneToKill(), G4DensityEffectData::GetErrorDensity(), G4NeutronHPThermalScattering::GetFatalEnergyCheckLevels(), G4NeutronHPorLFission::GetFatalEnergyCheckLevels(), G4NeutronHPorLElastic::GetFatalEnergyCheckLevels(), G4NeutronHPorLEInelastic::GetFatalEnergyCheckLevels(), G4NeutronHPorLCapture::GetFatalEnergyCheckLevels(), G4NeutronHPInelastic::GetFatalEnergyCheckLevels(), G4NeutronHPFission::GetFatalEnergyCheckLevels(), G4NeutronHPElastic::GetFatalEnergyCheckLevels(), G4NeutronHPCapture::GetFatalEnergyCheckLevels(), G4StepPoint::GetGamma(), G4FTFParticipants::GetList(), G4DensityEffectData::GetMdensity(), G4VXTRenergyLoss::GetMeanFreePath(), G4VTransitionRadiation::GetMeanFreePath(), G4VMultipleScattering::GetMeanFreePath(), G4VLowEnergyDiscretePhotonProcess::GetMeanFreePath(), G4TransitionRadiation::GetMeanFreePath(), G4SynchrotronRadiationInMat::GetMeanFreePath(), G4SynchrotronRadiation::GetMeanFreePath(), G4Scintillation::GetMeanFreePath(), G4RadioactiveDecay::GetMeanFreePath(), G4QSynchRad::GetMeanFreePath(), G4QNGamma::GetMeanFreePath(), G4QLowEnergy::GetMeanFreePath(), G4QIonIonElastic::GetMeanFreePath(), G4QInelastic::GetMeanFreePath(), G4QElastic::GetMeanFreePath(), G4QDiscProcessMixer::GetMeanFreePath(), G4QDiffraction::GetMeanFreePath(), G4QCoherentChargeExchange::GetMeanFreePath(), G4QAtomicElectronScattering::GetMeanFreePath(), G4PolarizedCompton::GetMeanFreePath(), G4OpWLS::GetMeanFreePath(), G4OpRayleigh::GetMeanFreePath(), G4OpMieHG::GetMeanFreePath(), G4OpBoundaryProcess::GetMeanFreePath(), G4OpAbsorption::GetMeanFreePath(), G4NeutronKiller::GetMeanFreePath(), G4hImpactIonisation::GetMeanFreePath(), G4HadronicProcess::GetMeanFreePath(), G4GammaConversionToMuons::GetMeanFreePath(), G4ForwardXrayTR::GetMeanFreePath(), G4ePolarizedIonisation::GetMeanFreePath(), G4eplusPolarizedAnnihilation::GetMeanFreePath(), G4EmCalculator::GetMeanFreePath(), G4Decay::GetMeanFreePath(), G4AnnihiToMuPair::GetMeanFreePath(), G4Scintillation::GetMeanLifeTime(), G4RadioactiveDecay::GetMeanLifeTime(), G4PiMinusAbsorptionAtRest::GetMeanLifeTime(), G4KaonMinusAbsorptionAtRest::GetMeanLifeTime(), G4Decay::GetMeanLifeTime(), GFlashParticleBounds::GetMinEneToParametrise(), G4SampleResonance::GetMinimumMass(), G4CollisionManager::GetNextCollision(), G4PAIxSection::GetPhotonRange(), G4NeutronHPPhotonDist::GetPhotons(), G4DensityEffectData::GetPlasmaEnergy(), G4EnergyLossTables::GetPreciseEnergyFromRange(), G4QNucleus::GetRadius(), G4NuclearShellModelDensity::GetRadius(), G4NuclearFermiDensity::GetRadius(), G4EnergyLossTables::GetRange(), G4MolecularDecayChannel::GetRMSRadialDisplacementOfProduct(), G4EmBiasingManager::GetStepLimit(), G4Scatterer::GetTimeToInteraction(), G4VMscModel::GetTransportMeanFreePath(), G4DensityEffectData::GetX0density(), G4DensityEffectData::GetX1density(), G4HEInelastic::HighEnergyClusterProduction(), G4VCrossSectionSource::HighLimit(), G4WentzelVIRelXSection::Initialise(), G4WentzelOKandVIxSection::Initialise(), G4ScreeningMottCrossSection::Initialise(), G4MuBremsstrahlungModel::Initialise(), G4IonCoulombCrossSection::Initialise(), G4EmModelManager::Initialise(), G4eBremsstrahlungModel::Initialise(), G4ITStepProcessor::Initialize(), G4ChordFinder::InvParabolic(), G4VEnergyLossProcess::MeanFreePath(), G4VEmProcess::MeanFreePath(), G4HEInelastic::MediumEnergyClusterProduction(), G4KDTree::Nearest(), operator<<(), G4VEnergyLossProcess::PostStepDoIt(), G4VEmProcess::PostStepDoIt(), G4DNASecondOrderReaction::PostStepDoIt(), SpecialCuts::PostStepGetPhysicalInteractionLength(), MinEkineCuts::PostStepGetPhysicalInteractionLength(), MaxTimeCuts::PostStepGetPhysicalInteractionLength(), G4WeightWindowProcess::PostStepGetPhysicalInteractionLength(), G4WeightCutOffProcess::PostStepGetPhysicalInteractionLength(), G4VRestDiscreteProcess::PostStepGetPhysicalInteractionLength(), G4VRestContinuousDiscreteProcess::PostStepGetPhysicalInteractionLength(), G4VMultipleScattering::PostStepGetPhysicalInteractionLength(), G4VITRestDiscreteProcess::PostStepGetPhysicalInteractionLength(), G4VEnergyLossProcess::PostStepGetPhysicalInteractionLength(), G4VEmProcess::PostStepGetPhysicalInteractionLength(), G4VDiscreteProcess::PostStepGetPhysicalInteractionLength(), G4VContinuousDiscreteProcess::PostStepGetPhysicalInteractionLength(), G4UserSpecialCuts::PostStepGetPhysicalInteractionLength(), G4Transportation::PostStepGetPhysicalInteractionLength(), G4StepLimiter::PostStepGetPhysicalInteractionLength(), G4ScoreSplittingProcess::PostStepGetPhysicalInteractionLength(), G4QDiscProcessMixer::PostStepGetPhysicalInteractionLength(), G4PolarizedCompton::PostStepGetPhysicalInteractionLength(), G4ParallelWorldScoringProcess::PostStepGetPhysicalInteractionLength(), G4ParallelWorldProcess::PostStepGetPhysicalInteractionLength(), G4NeutronKiller::PostStepGetPhysicalInteractionLength(), G4IVRestDiscreteProcess::PostStepGetPhysicalInteractionLength(), G4IVContinuousDiscreteProcess::PostStepGetPhysicalInteractionLength(), G4ITTransportation::PostStepGetPhysicalInteractionLength(), G4ImportanceProcess::PostStepGetPhysicalInteractionLength(), G4HadronStoppingProcess::PostStepGetPhysicalInteractionLength(), G4FastSimulationManagerProcess::PostStepGetPhysicalInteractionLength(), G4ePolarizedIonisation::PostStepGetPhysicalInteractionLength(), G4eplusPolarizedAnnihilation::PostStepGetPhysicalInteractionLength(), G4DNASecondOrderReaction::PostStepGetPhysicalInteractionLength(), G4Decay::PostStepGetPhysicalInteractionLength(), G4CoupledTransportation::PostStepGetPhysicalInteractionLength(), G4Cerenkov::PostStepGetPhysicalInteractionLength(), G4VEnergyLossProcess::PreparePhysicsTable(), G4VEmProcess::PreparePhysicsTable(), G4IonParametrisedLossModel::PrintDEDXTable(), G4eBremsstrahlung::PrintInfo(), G4CoulombScattering::PrintInfo(), G4AnalyticalPolSolver::QuarticRoots(), G4QNucleus::ReduceSum(), G4ChordFinder::ResetStepEstimate(), G4PhysicsVector::Retrieve(), G4VoxelSafety::SafetyForVoxelHeader(), G4VoxelSafety::SafetyForVoxelNode(), G4NeutronHPLegendreStore::Sample(), G4PAIModel::SampleFluctuations(), G4WentzelVIRelModel::SampleScattering(), G4WentzelVIModel::SampleScattering(), G4PrimaryTransformer::SetDecayProducts(), G4VEnergyLossProcess::SetLambdaTable(), G4VEnergyLossProcess::SetStepFunction(), G4QHadron::SplitUp(), G4VEnergyLossProcess::StartTracking(), G4VEmProcess::StartTracking(), G4QIonIonCollision::SwapPartons(), G4QFragmentation::SwapPartons(), G4RKPropagation::Transport(), and G4VEmModel::Value().

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

Definition at line 75 of file templates.hh.

Referenced by G4ITStepProcessor::ApplyProductionCut(), G4Hype::ApproxDistInside(), G4Hype::ApproxDistOutside(), G4Decay::AtRestGetPhysicalInteractionLength(), G4DecayProducts::Boost(), G4PAIPhotonModel::BuildLambdaVector(), G4PAIPhotonModel::BuildPAIonisationTable(), G4PAIModel::BuildPAIonisationTable(), G4PolyconeSide::CalculateExtent(), G4Track::CalculateVelocity(), G4VEmModel::ComputeMeanFreePath(), G4GammaConversionToMuons::ComputeMeanFreePath(), G4PAIModel::CrossSectionPerVolume(), G4ITStepProcessor::DealWithSecondaries(), G4Hype::DistanceToIn(), G4EllipticalTube::DistanceToIn(), G4Hype::DistanceToOut(), G4EllipticalTube::DistanceToOut(), G4TwistTubsSide::DistanceToSurface(), G4TwistTubsHypeSide::DistanceToSurface(), G4PolyhedraSide::Extent(), G4PolyconeSide::Extent(), G4PolyPhiFace::G4PolyPhiFace(), G4TwistedTubs::G4TwistedTubs(), G4tgrUtils::GetDouble(), G4TripathiCrossSection::GetElementCrossSection(), G4EnergyRangeManager::GetHadronicInteraction(), G4VXTRenergyLoss::GetMeanFreePath(), G4UnknownDecay::GetMeanFreePath(), G4RadioactiveDecay::GetMeanFreePath(), G4Decay::GetMeanFreePath(), G4AnnihiToMuPair::GetMeanFreePath(), G4PAIxSection::GetPhotonRange(), G4ScreeningMottCrossSection::Initialise(), G4IonCoulombCrossSection::Initialise(), G4Hype::InnerSurfaceExists(), G4TwistTubsHypeSide::Inside(), G4PolyconeSide::Intersect(), G4Hype::IntersectHype(), G4EllipticalTube::IntersectXY(), G4ITStepProcessor::InvokeAlongStepDoItProcs(), G4ChordFinder::InvParabolic(), G4DecayProducts::IsChecked(), G4VXResonance::IsospinCorrection(), operator<<(), G4PolyconeSide::PointOnCone(), G4UserSpecialCuts::PostStepGetPhysicalInteractionLength(), G4UnknownDecay::PostStepGetPhysicalInteractionLength(), G4Decay::PostStepGetPhysicalInteractionLength(), G4PolarizedMollerBhabhaModel::SampleSecondaries(), G4PolarizedComptonModel::SampleSecondaries(), G4PolarizedAnnihilationModel::SampleSecondaries(), G4KleinNishinaCompton::SampleSecondaries(), G4HeatedKleinNishinaCompton::SampleSecondaries(), G4ReactionProduct::SetDefinitionAndUpdateE(), G4GeometryMessenger::SetNewValue(), G4RPGInelastic::SetUpChange(), and G4InelasticInteraction::SetUpChange().

#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(), G4HEInelastic::NBodyPhaseSpace(), and G4Ellipse::Project().

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

Definition at line 91 of file templates.hh.

Referenced by G4tgrUtils::GetDouble().

#define HIGH_PRECISION   1

Definition at line 62 of file templates.hh.

#define INT_MAX   std::numeric_limits<int>::max()

Definition at line 111 of file templates.hh.

Referenced by G4ITStepProcessor::CleanProcessor(), G4ProcessManager::FindInsertPosition(), G4SolidExtentList::G4SolidExtentList(), G4tgrUtils::GetDouble(), G4MolecularConfiguration::GetMoleculeID(), G4NeutronHPInelasticBaseFS::Init(), and G4ProcessManager::SetProcessOrderingToSecond().

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

#define templates_h   1

Definition at line 51 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.

00169 {
00170   return (ad>0) ? static_cast<int>(ad) : static_cast<int>(ad-1.);
00171 }

int G4lrint ( double  ad  )  [inline]

Definition at line 163 of file templates.hh.

Referenced by G4EmBiasingManager::ActivateSecondaryBiasing(), G4VAtomDeexcitation::AlongStepDeexcitation(), G4LowEIonFragmentation::ApplyYourself(), G4BinaryLightIonReaction::ApplyYourself(), G4CrossSectionPairGG::BuildPhysicsTable(), G4BGGPionInelasticXS::BuildPhysicsTable(), G4BGGPionElasticXS::BuildPhysicsTable(), G4BGGNucleonInelasticXS::BuildPhysicsTable(), G4BGGNucleonElasticXS::BuildPhysicsTable(), G4HadronicProcess::CheckEnergyMomentumConservation(), G4Clebsch::ClebschGordan(), G4Fissioner::collide(), G4VCrossSectionDataSet::ComputeCrossSection(), G4WentzelVIRelModel::ComputeCrossSectionPerAtom(), G4WentzelVIModel::ComputeCrossSectionPerAtom(), G4UrbanMscModel96::ComputeCrossSectionPerAtom(), G4UrbanMscModel95::ComputeCrossSectionPerAtom(), G4LivermoreRayleighModel::ComputeCrossSectionPerAtom(), G4LivermorePolarizedPhotoElectricModel::ComputeCrossSectionPerAtom(), G4LivermorePhotoElectricModel::ComputeCrossSectionPerAtom(), G4KineticTrack::Decay(), G4PreCompoundModel::DeExcite(), G4mplIonisationWithDeltaModel::G4mplIonisationWithDeltaModel(), G4CrossSectionDataStore::GetCrossSection(), G4ComponentSAIDTotalXS::GetElasticElementCrossSection(), G4TripathiLightCrossSection::GetElementCrossSection(), G4TripathiCrossSection::GetElementCrossSection(), G4IonsSihverCrossSection::GetElementCrossSection(), G4IonsShenCrossSection::GetElementCrossSection(), G4IonsKoxCrossSection::GetElementCrossSection(), G4IonProtonCrossSection::GetElementCrossSection(), G4HadronInelasticDataSet::GetElementCrossSection(), G4HadronElasticDataSet::GetElementCrossSection(), G4GGNuclNuclCrossSection::GetElementCrossSection(), G4GeneralSpaceNNCrossSection::GetElementCrossSection(), G4CrossSectionPairGG::GetElementCrossSection(), G4ComponentGGNuclNuclXsc::GetElementCrossSection(), G4PionMinusField::GetField(), G4MesonAbsorption::GetFinalState(), G4GlauberGribovCrossSection::GetHadronNucleonXsc(), G4GGNuclNuclCrossSection::GetHadronNucleonXsc(), G4ComponentGGNuclNuclXsc::GetHadronNucleonXsc(), G4ComponentGGHadronNucleusXsc::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(), G4ComponentSAIDTotalXS::GetTotalElementCrossSection(), G4LivermoreRayleighModel::Initialise(), G4VAtomDeexcitation::InitialiseAtomicDeexcitation(), G4mplIonisation::InitialiseEnergyLossProcess(), G4hhIonisation::InitialiseEnergyLossProcess(), G4HadronNucleonXsc::IsApplicable(), G4TripathiLightCrossSection::IsElementApplicable(), G4VXResonance::IsospinCorrection(), G4NeutronHPChannel::Register(), G4ElectronIonPair::SampleNumberOfIonsAlongStep(), G4WentzelVIRelModel::SampleScattering(), G4WentzelVIModel::SampleScattering(), G4PEEffectFluoModel::SampleSecondaries(), G4LowEPComptonModel::SampleSecondaries(), G4LivermoreRayleighModel::SampleSecondaries(), G4LivermorePolarizedPhotoElectricModel::SampleSecondaries(), G4LivermorePhotoElectricModel::SampleSecondaries(), G4KleinNishinaModel::SampleSecondaries(), G4eBremsstrahlungRelModel::SampleSecondaries(), G4eBremsstrahlungModel::SampleSecondaries(), G4eBremParametrizedModel::SampleSecondaries(), G4CrossSectionDataStore::SampleZandA(), G4Scatterer::Scatter(), G4QuasiElasticChannel::Scatter(), G4NeutronCaptureXS::SelectIsotope(), G4ElementSelector::SelectZandA(), G4Fragment::SetA(), G4KM_OpticalEqRhs::SetFactor(), G4VEmProcess::SetMaxKinEnergy(), G4VEmProcess::SetMinKinEnergy(), G4Nucleus::SetParameters(), G4Fragment::SetZ(), and G4Clebsch::Wigner3J().

00164 {
00165   return (ad>0) ? static_cast<int>(ad+.5) : static_cast<int>(ad-.5);
00166 }

int G4rint ( double  ad  )  [inline]

Definition at line 173 of file templates.hh.

00174 {
00175   return (ad>0) ? static_cast<int>(ad+1) : static_cast<int>(ad);
00176 }

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

Definition at line 129 of file templates.hh.

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

00130 {
00131   T tmp= *a;
00132   *a = *b;
00133   *b = tmp;
00134 }

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

Definition at line 121 of file templates.hh.

00122 {
00123   T* tmp= a;
00124   a = b;
00125   b = tmp;
00126 }

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

Definition at line 145 of file templates.hh.

Referenced by G4KDTree::__NearestInRange(), G4KDTree::__NearestToNode(), G4KDTree::__NearestToPosition(), G4Transportation::AlongStepGetPhysicalInteractionLength(), G4ITTransportation::AlongStepGetPhysicalInteractionLength(), G4CoupledTransportation::AlongStepGetPhysicalInteractionLength(), G4FTFAnnihilation::Annihilate(), G4KineticTrackVector::BoostBeam(), G4QIonIonCollision::Breeder(), G4QFragmentation::Breeder(), G4PairProductionRelModel::CalcLPMFunctions(), G4Ellipsoid::CalculateExtent(), CalculatePointSafety(), G4Paraboloid::CalculateSurfaceArea(), G4QIonIonCollision::ChooseX(), G4QFragmentation::ChooseX(), HyperRect::CompareDistSqr(), G4PolarizedComptonModel::ComputeAsymmetryPerAtom(), G4AngularDistributionPP::CosTheta(), G4AngularDistributionNP::CosTheta(), G4DiffractiveExcitation::CreateStrings(), G4QParton::DefineMomentumInZ(), G4Parton::DefineMomentumInZ(), G4GHEKinematicsVector::Defs1(), G4AngularDistribution::DifferentialCrossSection(), G4PolyconeSide::DistanceAway(), G4Paraboloid::DistanceToIn(), G4EllipticalCone::DistanceToIn(), G4Ellipsoid::DistanceToIn(), G4Paraboloid::DistanceToOut(), G4EllipticalCone::DistanceToOut(), G4Ellipsoid::DistanceToOut(), G4PathFinder::DoNextLinearStep(), G4HEInelastic::ElasticScattering(), G4SimpleLocator::EstimateIntersectionPoint(), G4MultiLevelLocator::EstimateIntersectionPoint(), G4BrentLocator::EstimateIntersectionPoint(), G4Mag_SpinEqRhs::EvaluateRhsGivenB(), G4ErrorMag_UsualEqRhs::EvaluateRhsGivenB(), G4QFragmentation::EvaporateResidual(), G4QIonIonCollision::ExciteDiffParticipants(), G4QFragmentation::ExciteDiffParticipants(), G4SingleDiffractiveExcitation::ExciteParticipants(), G4QIonIonCollision::ExciteSingDiffParticipants(), G4QFragmentation::ExciteSingDiffParticipants(), G4HEAntiNeutronInelastic::FirstIntInCasAntiNeutron(), G4HEAntiProtonInelastic::FirstIntInCasAntiProton(), G4HEKaonPlusInelastic::FirstIntInCasKaonPlus(), G4HEKaonZeroShortInelastic::FirstIntInCasKaonZero(), G4HEKaonZeroLongInelastic::FirstIntInCasKaonZero(), G4HEKaonZeroInelastic::FirstIntInCasKaonZero(), G4HENeutronInelastic::FirstIntInCasNeutron(), G4HEPionMinusInelastic::FirstIntInCasPionMinus(), G4HEPionPlusInelastic::FirstIntInCasPionPlus(), G4HEProtonInelastic::FirstIntInCasProton(), G4FTFParameters::G4FTFParameters(), G4NuclearFermiDensity::G4NuclearFermiDensity(), G4PolarizedComptonCrossSection::G4PolarizedComptonCrossSection(), G4QEnvironment::G4QEnvironment(), G4QFragmentation::G4QFragmentation(), G4QIonIonCollision::G4QIonIonCollision(), G4HEInelastic::GammaRand(), G4QIonIonCollision::GaussianPt(), G4QFragmentation::GaussianPt(), G4ReactionDynamics::GenerateXandPt(), G4EllipticalCone::GetCubicVolume(), G4Ellipsoid::GetCubicVolume(), G4NuclearFermiDensity::GetDeriv(), G4MesonAbsorption::GetFinalState(), G4VKinkyStringDecay::GetLightConeGluonZ(), G4FTFParticipants::GetList(), G4QNucleus::GetNucleons4Momentum(), G4PolarizationHelper::GetParticleFrameX(), G4PolarizationHelper::GetParticleFrameY(), G4Polycone::GetPointOnCone(), G4TwistedTubs::GetPointOnSurface(), G4Sphere::GetPointOnSurface(), G4Polyhedra::GetPointOnSurface(), G4Polycone::GetPointOnSurface(), G4Paraboloid::GetPointOnSurface(), G4Orb::GetPointOnSurface(), G4Hype::GetPointOnSurface(), G4EllipticalTube::GetPointOnSurface(), G4EllipticalCone::GetPointOnSurface(), G4Ellipsoid::GetPointOnSurface(), G4Cons::GetPointOnSurface(), G4QProbability::GetPomCohProbability(), G4QProbability::GetPomDubDiffProbability(), G4QProbability::GetQexDubDiffProbability(), G4QProbability::GetQexElProbability(), G4QProbability::GetQexInelProbability(), G4QProbability::GetQexTotProbability(), G4CSGSolid::GetRadiusInRing(), G4PolarizationHelper::GetSpinInPRF(), G4HEInelastic::HighEnergyCascading(), G4HEInelastic::HighEnergyClusterProduction(), G4HEVector::Impu(), G4GHEKinematicsVector::Impu(), G4PolarizedComptonCrossSection::Initialize(), G4PolarizedAnnihilationCrossSection::Initialize(), G4Paraboloid::Inside(), G4EllipticalCone::Inside(), G4Ellipsoid::Inside(), G4VIntersectionLocator::IntersectChord(), G4VLongitudinalStringDecay::LightFragmentationTest(), G4QString::LightFragmentationTest(), G4IntersectingCone::LineHitsCone1(), G4IntersectingCone::LineHitsCone2(), G4HEVector::Lor(), G4GHEKinematicsVector::Lor(), G4HEInelastic::MediumEnergyCascading(), G4HEInelastic::MediumEnergyClusterProduction(), G4HEInelastic::NBodyPhaseSpace(), G4KDTree::NearestInRange(), G4MagInt_Driver::OneGoodStep(), G4HEInelastic::QuasiElasticScattering(), G4MagInt_Driver::QuickAdvance(), G4SafetyHelper::ReLocateWithinVolume(), G4AntiNuclElastic::SampleInvariantT(), G4VLongitudinalStringDecay::SampleQuarkPt(), G4PolarizedMollerBhabhaModel::SampleSecondaries(), G4PolarizedComptonModel::SampleSecondaries(), G4PolarizedAnnihilationModel::SampleSecondaries(), G4QuasiElasticChannel::Scatter(), G4QGSParticipants::SelectInteractions(), G4Mag_SpinEqRhs::SetChargeMomentumMass(), G4EqEMFieldWithSpin::SetChargeMomentumMass(), G4EqEMFieldWithEDM::SetChargeMomentumMass(), G4Paraboloid::SetRadiusMinusZ(), G4Paraboloid::SetRadiusPlusZ(), G4Paraboloid::SetZHalfLength(), G4QHadron::SplitUp(), G4QGSDiffractiveExcitation::String(), G4QNucleus::SubtractNucleon(), G4PolyconeSide::SurfaceArea(), G4Paraboloid::SurfaceNormal(), G4EllipticalCone::SurfaceNormal(), G4PolarizedComptonCrossSection::TotalXSection(), G4PolarizedAnnihilationCrossSection::TotalXSection(), G4RKPropagation::Transport(), G4HEInelastic::TuningOfHighEnergyCascading(), G4KineticTrack::Update4Momentum(), and G4KineticTrack::UpdateTrackingMomentum().

00146 {
00147   return x*x;
00148 }


Generated on Mon May 27 17:51:16 2013 for Geant4 by  doxygen 1.4.7