Geant4 11.1.1
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
 
 ~G4GeometryTolerance ()=default
 

Static Public Member Functions

static G4GeometryToleranceGetInstance ()
 

Protected Member Functions

void SetSurfaceTolerance (G4double worldExtent)
 
 G4GeometryTolerance ()
 

Friends

class G4GeometryManager
 

Detailed Description

Definition at line 51 of file G4GeometryTolerance.hh.

Constructor & Destructor Documentation

◆ ~G4GeometryTolerance()

G4GeometryTolerance::~G4GeometryTolerance ( )
default

◆ G4GeometryTolerance()

G4GeometryTolerance::G4GeometryTolerance ( )
protected

Definition at line 46 of file G4GeometryTolerance.cc.

47{
48 fCarTolerance = 1E-9 * mm;
49 fAngTolerance = 1E-9 * rad;
50 fRadTolerance = 1E-9 * mm;
51}

Referenced by GetInstance().

Member Function Documentation

◆ GetAngularTolerance()

◆ GetInstance()

G4GeometryTolerance * G4GeometryTolerance::GetInstance ( )
static

Definition at line 58 of file G4GeometryTolerance.cc.

59{
60 if(fpInstance == nullptr)
61 {
62 fpInstance = new G4GeometryTolerance;
63 G4AutoDelete::Register(fpInstance);
64 }
65 return fpInstance;
66}
void Register(T *inst)
Definition: G4AutoDelete.hh:65

Referenced by G4NavigationLogger::AlongComputeStepLog(), G4VTwistSurface::AmIOnLeftSide(), G4tgbVolume::BuildSolidForDivision(), G4GPSModel::DescribeYourselfTo(), G4GeomTools::DiskExtent(), G4TwistTubsHypeSide::DistanceToSurface(), G4tgbVolume::FindOrConstructG4Solid(), G4ArrowModel::G4ArrowModel(), G4ClippablePolygon::G4ClippablePolygon(), G4Cons::G4Cons(), G4CutTubs::G4CutTubs(), G4EnclosingCylinder::G4EnclosingCylinder(), G4IntersectingCone::G4IntersectingCone(), G4ITNavigator1::G4ITNavigator1(), G4ITNavigator2::G4ITNavigator2(), G4ITPathFinder::G4ITPathFinder(), G4MicroElecSurface::G4MicroElecSurface(), G4MultiUnion::G4MultiUnion(), G4Navigator::G4Navigator(), G4OpBoundaryProcess::G4OpBoundaryProcess(), G4PathFinder::G4PathFinder(), G4PhantomParameterisation::G4PhantomParameterisation(), G4PolyconeSide::G4PolyconeSide(), G4PolyhedraSide::G4PolyhedraSide(), G4PolyPhiFace::G4PolyPhiFace(), G4PropagatorInField::G4PropagatorInField(), G4ReflectionFactory::G4ReflectionFactory(), G4RegularNavigation::G4RegularNavigation(), G4ReplicaNavigation::G4ReplicaNavigation(), G4Sphere::G4Sphere(), G4SteppingManager::G4SteppingManager(), G4Tubs::G4Tubs(), G4UCNBoundaryProcess::G4UCNBoundaryProcess(), G4VDivisionParameterisation::G4VDivisionParameterisation(), G4VFacet::G4VFacet(), G4VIntersectionLocator::G4VIntersectionLocator(), G4Voxelizer::G4Voxelizer(), G4VoxelNavigation::G4VoxelNavigation(), G4VoxelSafety::G4VoxelSafety(), G4VSolid::G4VSolid(), G4VTrackTerminator::G4VTrackTerminator(), G4VTwistedFaceted::G4VTwistedFaceted(), G4VTwistSurface::G4VTwistSurface(), G4TwistTubsFlatSide::GetAreaCode(), G4SolidExtentList::GetExtent(), G4tgrUtils::GetRotationFromDirection(), G4ErrorCylSurfaceTarget::GetTangentPlane(), G4ITStepProcessor::Initialize(), G4TwistTubsHypeSide::Inside(), G4UnionSolid::Inside(), G4TwistedTubs::Inside(), G4GeomTools::IsConvex(), G4PSFlatSurfaceCurrent::IsSelectedSurface(), G4PSFlatSurfaceFlux::IsSelectedSurface(), G4PSSphereSurfaceCurrent::IsSelectedSurface(), G4PSSphereSurfaceFlux::IsSelectedSurface(), G4PSCylinderSurfaceCurrent::IsSelectedSurface(), G4PSCylinderSurfaceFlux::IsSelectedSurface(), G4ForwardXrayTR::PostStepDoIt(), G4ErrorFreeTrajState::PropagateError(), G4PathFinder::ReLocate(), G4ITPathFinder::ReLocate(), G4AuxiliaryNavServices::ReportTolerances(), G4Torus::SetAllParameters(), G4ErrorSurfaceTrajParam::SetParameters(), G4GeometryManager::SetWorldMaximumExtent(), G4GeomTools::SphereExtent(), G4MagInt_Driver::WarnEndPointTooFar(), and G4OldMagIntDriver::WarnEndPointTooFar().

◆ GetRadialTolerance()

◆ GetSurfaceTolerance()

G4double G4GeometryTolerance::GetSurfaceTolerance ( ) const

Definition at line 72 of file G4GeometryTolerance.cc.

73{
74 return fCarTolerance;
75}

Referenced by G4tgbVolume::BuildSolidForDivision(), G4GPSModel::DescribeYourselfTo(), G4GeomTools::DiskExtent(), G4ClippablePolygon::G4ClippablePolygon(), G4EnclosingCylinder::G4EnclosingCylinder(), G4IntersectingCone::G4IntersectingCone(), G4ITNavigator1::G4ITNavigator1(), G4ITNavigator2::G4ITNavigator2(), G4ITPathFinder::G4ITPathFinder(), G4MicroElecSurface::G4MicroElecSurface(), G4Navigator::G4Navigator(), G4OpBoundaryProcess::G4OpBoundaryProcess(), G4PathFinder::G4PathFinder(), G4PhantomParameterisation::G4PhantomParameterisation(), G4PolyconeSide::G4PolyconeSide(), G4PolyhedraSide::G4PolyhedraSide(), G4PolyPhiFace::G4PolyPhiFace(), G4PropagatorInField::G4PropagatorInField(), G4ReflectionFactory::G4ReflectionFactory(), G4RegularNavigation::G4RegularNavigation(), G4ReplicaNavigation::G4ReplicaNavigation(), G4SteppingManager::G4SteppingManager(), G4UCNBoundaryProcess::G4UCNBoundaryProcess(), G4VDivisionParameterisation::G4VDivisionParameterisation(), G4VFacet::G4VFacet(), G4VIntersectionLocator::G4VIntersectionLocator(), G4Voxelizer::G4Voxelizer(), G4VoxelNavigation::G4VoxelNavigation(), G4VoxelSafety::G4VoxelSafety(), G4VSolid::G4VSolid(), G4VTrackTerminator::G4VTrackTerminator(), G4VTwistSurface::G4VTwistSurface(), G4SolidExtentList::GetExtent(), G4tgrUtils::GetRotationFromDirection(), G4ErrorCylSurfaceTarget::GetTangentPlane(), G4ITStepProcessor::Initialize(), G4GeomTools::IsConvex(), G4PSFlatSurfaceCurrent::IsSelectedSurface(), G4PSFlatSurfaceFlux::IsSelectedSurface(), G4PSSphereSurfaceCurrent::IsSelectedSurface(), G4PSSphereSurfaceFlux::IsSelectedSurface(), G4PSCylinderSurfaceCurrent::IsSelectedSurface(), G4PSCylinderSurfaceFlux::IsSelectedSurface(), G4ForwardXrayTR::PostStepDoIt(), G4ErrorFreeTrajState::PropagateError(), G4AuxiliaryNavServices::ReportTolerances(), G4ErrorSurfaceTrajParam::SetParameters(), G4GeomTools::SphereExtent(), G4MagInt_Driver::WarnEndPointTooFar(), and G4OldMagIntDriver::WarnEndPointTooFar().

◆ SetSurfaceTolerance()

void G4GeometryTolerance::SetSurfaceTolerance ( G4double  worldExtent)
protected

Definition at line 92 of file G4GeometryTolerance.cc.

93{
94 if(!fInitialised)
95 {
96 fCarTolerance = fRadTolerance = worldExtent * 1E-11;
97 fInitialised = true;
98 }
99 else
100 {
101 G4cout << "WARNING - G4GeometryTolerance::SetSurfaceTolerance()" << G4endl
102 << " Tolerance can only be set once. Currently set to: "
103 << fCarTolerance / mm << " mm." << G4endl;
104 G4Exception("G4GeometryTolerance::SetSurfaceTolerance()", "NotApplicable",
105 JustWarning, "The tolerance has been already set!");
106 }
107}
@ JustWarning
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:59
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout

Referenced by G4GeometryManager::SetWorldMaximumExtent().

Friends And Related Function Documentation

◆ G4GeometryManager

friend class G4GeometryManager
friend

Definition at line 53 of file G4GeometryTolerance.hh.


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