Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4GeometryTolerance Class Reference

#include <G4GeometryTolerance.hh>

Public Member Functions

G4double GetSurfaceTolerance () const
 
G4double GetAngularTolerance () const
 
G4double GetRadialTolerance () const
 

Static Public Member Functions

static G4GeometryToleranceGetInstance ()
 

Protected Member Functions

 G4GeometryTolerance ()
 
 ~G4GeometryTolerance ()
 

Static Protected Member Functions

static void SetSurfaceTolerance (G4double worldExtent)
 

Friends

class G4GeometryManager
 

Detailed Description

Definition at line 56 of file G4GeometryTolerance.hh.

Constructor & Destructor Documentation

◆ G4GeometryTolerance()

G4GeometryTolerance::G4GeometryTolerance ( )
protected

Definition at line 56 of file G4GeometryTolerance.cc.

57{
58}

◆ ~G4GeometryTolerance()

G4GeometryTolerance::~G4GeometryTolerance ( )
protected

Definition at line 64 of file G4GeometryTolerance.cc.

65{
66}

Member Function Documentation

◆ GetAngularTolerance()

◆ GetInstance()

G4GeometryTolerance * G4GeometryTolerance::GetInstance ( )
static

Definition at line 73 of file G4GeometryTolerance.cc.

74{
75 static G4GeometryTolerance theToleranceManager;
76 if (!fInstance)
77 {
78 fInstance = &theToleranceManager;
79 }
80 return fInstance;
81}

Referenced by G4NavigationLogger::AlongComputeStepLog(), G4VTwistSurface::AmIOnLeftSide(), G4PAIPhotonModel::BuildLambdaVector(), G4tgbVolume::BuildSolidForDivision(), G4TwistTubsHypeSide::DistanceToSurface(), G4tgbVolume::FindOrConstructG4Solid(), G4BoundingBox3D::G4BoundingBox3D(), G4ClippablePolygon::G4ClippablePolygon(), G4Cons::G4Cons(), G4Curve::G4Curve(), G4CurveRayIntersection::G4CurveRayIntersection(), G4CutTubs::G4CutTubs(), G4Ellipsoid::G4Ellipsoid(), G4EllipticalCone::G4EllipticalCone(), G4EnclosingCylinder::G4EnclosingCylinder(), G4GeomTestSegment::G4GeomTestSegment(), G4IntersectingCone::G4IntersectingCone(), G4ITNavigator::G4ITNavigator(), G4KnotVector::G4KnotVector(), G4Navigator::G4Navigator(), G4OpBoundaryProcess::G4OpBoundaryProcess(), G4Orb::G4Orb(), G4PathFinder::G4PathFinder(), G4PhantomParameterisation::G4PhantomParameterisation(), G4PlacedSolid::G4PlacedSolid(), G4PolyconeSide::G4PolyconeSide(), G4PolyhedraSide::G4PolyhedraSide(), G4PolyPhiFace::G4PolyPhiFace(), G4PropagatorInField::G4PropagatorInField(), G4ReflectionFactory::G4ReflectionFactory(), G4RegularNavigation::G4RegularNavigation(), G4ReplicaNavigation::G4ReplicaNavigation(), G4Sphere::G4Sphere(), G4SteppingManager::G4SteppingManager(), G4Surface::G4Surface(), G4SurfaceVoxelizer::G4SurfaceVoxelizer(), G4Tubs::G4Tubs(), G4VDivisionParameterisation::G4VDivisionParameterisation(), G4VIntersectionLocator::G4VIntersectionLocator(), G4VoxelSafety::G4VoxelSafety(), G4VSolid::G4VSolid(), G4VTrackTerminator::G4VTrackTerminator(), G4VTwistedFaceted::G4VTwistedFaceted(), G4VTwistSurface::G4VTwistSurface(), G4TwistTubsFlatSide::GetAreaCode(), G4SolidExtentList::GetExtent(), G4tgrUtils::GetRotationFromDirection(), G4ErrorCylSurfaceTarget::GetTangentPlane(), G4BoundingBox3D::Init(), G4Hyperbola::InitBounded(), G4Parabola::InitBounded(), G4ITStepProcessor::Initialize(), G4TwistTubsHypeSide::Inside(), G4SubtractionSolid::Inside(), G4UnionSolid::Inside(), G4TwistedTubs::Inside(), G4PSFlatSurfaceCurrent::IsSelectedSurface(), G4PSFlatSurfaceFlux::IsSelectedSurface(), G4PSSphereSurfaceCurrent::IsSelectedSurface(), G4PSSphereSurfaceFlux::IsSelectedSurface(), G4PSCylinderSurfaceCurrent::IsSelectedSurface(), G4PSCylinderSurfaceFlux::IsSelectedSurface(), G4VoxelNavigation::LocateNextVoxel(), G4ForwardXrayTR::PostStepDoIt(), G4Ellipse::Project(), G4Hyperbola::Project(), G4Parabola::Project(), G4ErrorFreeTrajState::PropagateError(), G4PathFinder::ReLocate(), G4Torus::SetAllParameters(), G4ErrorSurfaceTrajParam::SetParameters(), G4GeometryManager::SetWorldMaximumExtent(), and G4MagInt_Driver::WarnEndPointTooFar().

◆ GetRadialTolerance()

◆ GetSurfaceTolerance()

G4double G4GeometryTolerance::GetSurfaceTolerance ( ) const

Definition at line 87 of file G4GeometryTolerance.cc.

88{
89 return fCarTolerance;
90}

Referenced by G4PAIPhotonModel::BuildLambdaVector(), G4tgbVolume::BuildSolidForDivision(), G4BoundingBox3D::G4BoundingBox3D(), G4ClippablePolygon::G4ClippablePolygon(), G4Curve::G4Curve(), G4CurveRayIntersection::G4CurveRayIntersection(), G4EnclosingCylinder::G4EnclosingCylinder(), G4GeomTestSegment::G4GeomTestSegment(), G4IntersectingCone::G4IntersectingCone(), G4ITNavigator::G4ITNavigator(), G4KnotVector::G4KnotVector(), G4Navigator::G4Navigator(), G4OpBoundaryProcess::G4OpBoundaryProcess(), G4PathFinder::G4PathFinder(), G4PhantomParameterisation::G4PhantomParameterisation(), G4PlacedSolid::G4PlacedSolid(), G4PolyconeSide::G4PolyconeSide(), G4PolyhedraSide::G4PolyhedraSide(), G4PolyPhiFace::G4PolyPhiFace(), G4PropagatorInField::G4PropagatorInField(), G4ReflectionFactory::G4ReflectionFactory(), G4RegularNavigation::G4RegularNavigation(), G4ReplicaNavigation::G4ReplicaNavigation(), G4SteppingManager::G4SteppingManager(), G4Surface::G4Surface(), G4SurfaceVoxelizer::G4SurfaceVoxelizer(), G4VDivisionParameterisation::G4VDivisionParameterisation(), G4VIntersectionLocator::G4VIntersectionLocator(), G4VoxelSafety::G4VoxelSafety(), G4VSolid::G4VSolid(), G4VTrackTerminator::G4VTrackTerminator(), G4VTwistSurface::G4VTwistSurface(), G4SolidExtentList::GetExtent(), G4tgrUtils::GetRotationFromDirection(), G4ErrorCylSurfaceTarget::GetTangentPlane(), G4BoundingBox3D::Init(), G4ITStepProcessor::Initialize(), G4PSFlatSurfaceCurrent::IsSelectedSurface(), G4PSFlatSurfaceFlux::IsSelectedSurface(), G4PSSphereSurfaceCurrent::IsSelectedSurface(), G4PSSphereSurfaceFlux::IsSelectedSurface(), G4PSCylinderSurfaceCurrent::IsSelectedSurface(), G4PSCylinderSurfaceFlux::IsSelectedSurface(), G4VoxelNavigation::LocateNextVoxel(), G4ForwardXrayTR::PostStepDoIt(), G4ErrorFreeTrajState::PropagateError(), G4ErrorSurfaceTrajParam::SetParameters(), and G4MagInt_Driver::WarnEndPointTooFar().

◆ SetSurfaceTolerance()

void G4GeometryTolerance::SetSurfaceTolerance ( G4double  worldExtent)
staticprotected

Definition at line 107 of file G4GeometryTolerance.cc.

108{
109 if (!fInitialised)
110 {
111 fCarTolerance = worldExtent*1E-11;
112 fInitialised = true;
113 }
114 else
115 {
116 G4cout << "WARNING - G4GeometryTolerance::SetSurfaceTolerance()" << G4endl
117 << " Tolerance can only be set once. Currently set to: "
118 << fCarTolerance/mm << " mm." << G4endl;
119 G4Exception("G4GeometryTolerance::SetSurfaceTolerance()",
120 "NotApplicable", JustWarning,
121 "The tolerance has been already set!");
122 }
123}
@ JustWarning
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

Referenced by G4GeometryManager::SetWorldMaximumExtent().

Friends And Related Function Documentation

◆ G4GeometryManager

friend class G4GeometryManager
friend

Definition at line 58 of file G4GeometryTolerance.hh.


The documentation for this class was generated from the following files: