Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Friends
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 ( )
protected

Definition at line 56 of file G4GeometryTolerance.cc.

Referenced by GetInstance().

57 {
58 }
G4GeometryTolerance::~G4GeometryTolerance ( )
protected

Definition at line 64 of file G4GeometryTolerance.cc.

65 {
66  delete fpInstance; fpInstance = 0;
67 }

Member Function Documentation

G4double G4GeometryTolerance::GetAngularTolerance ( ) const
G4GeometryTolerance * G4GeometryTolerance::GetInstance ( void  )
static

Definition at line 74 of file G4GeometryTolerance.cc.

References G4GeometryTolerance().

Referenced by G4NavigationLogger::AlongComputeStepLog(), G4VTwistSurface::AmIOnLeftSide(), G4PAIPhotonModel::BuildLambdaVector(), G4tgbVolume::BuildSolidForDivision(), ExN02DetectorConstruction::Construct(), G4TwistTubsHypeSide::DistanceToSurface(), G4tgbVolume::FindOrConstructG4Solid(), G4ClippablePolygon::G4ClippablePolygon(), G4Cons::G4Cons(), G4CutTubs::G4CutTubs(), G4Ellipsoid::G4Ellipsoid(), G4EllipticalCone::G4EllipticalCone(), G4EnclosingCylinder::G4EnclosingCylinder(), G4IntersectingCone::G4IntersectingCone(), G4ITNavigator::G4ITNavigator(), G4Navigator::G4Navigator(), G4OpBoundaryProcess::G4OpBoundaryProcess(), G4Orb::G4Orb(), G4OTubs::G4OTubs(), G4PathFinder::G4PathFinder(), G4PhantomParameterisation::G4PhantomParameterisation(), G4PolyconeSide::G4PolyconeSide(), G4PolyhedraSide::G4PolyhedraSide(), G4PolyPhiFace::G4PolyPhiFace(), G4PropagatorInField::G4PropagatorInField(), G4ReflectionFactory::G4ReflectionFactory(), G4RegularNavigation::G4RegularNavigation(), G4ReplicaNavigation::G4ReplicaNavigation(), G4Sphere::G4Sphere(), G4SteppingManager::G4SteppingManager(), 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(), G4ITStepProcessor::Initialize(), G4UnionSolid::Inside(), G4SubtractionSolid::Inside(), G4TwistTubsHypeSide::Inside(), G4TwistedTubs::Inside(), G4PSSphereSurfaceCurrent::IsSelectedSurface(), G4PSCylinderSurfaceFlux::IsSelectedSurface(), G4PSCylinderSurfaceCurrent::IsSelectedSurface(), G4PSFlatSurfaceCurrent::IsSelectedSurface(), G4PSSphereSurfaceFlux::IsSelectedSurface(), G4PSFlatSurfaceFlux::IsSelectedSurface(), G4VoxelNavigation::LocateNextVoxel(), DicomPhantomZSliceHeader::operator+(), G4ForwardXrayTR::PostStepDoIt(), G4ErrorFreeTrajState::PropagateError(), G4PathFinder::ReLocate(), G4Torus::SetAllParameters(), G4ErrorSurfaceTrajParam::SetParameters(), G4GeometryManager::SetWorldMaximumExtent(), and G4MagInt_Driver::WarnEndPointTooFar().

75 {
76  if (fpInstance == 0)
77  {
78  fpInstance = new G4GeometryTolerance;
79  }
80  return fpInstance;
81 }
G4double G4GeometryTolerance::GetRadialTolerance ( ) const
G4double G4GeometryTolerance::GetSurfaceTolerance ( ) const

Definition at line 87 of file G4GeometryTolerance.cc.

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

88 {
89  return fCarTolerance;
90 }
void G4GeometryTolerance::SetSurfaceTolerance ( G4double  worldExtent)
staticprotected

Definition at line 107 of file G4GeometryTolerance.cc.

References G4cout, G4endl, G4Exception(), JustWarning, and python.hepunit::mm.

Referenced by G4GeometryManager::SetWorldMaximumExtent().

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 }
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
#define G4endl
Definition: G4ios.hh:61

Friends And Related Function Documentation

friend class G4GeometryManager
friend

Definition at line 58 of file G4GeometryTolerance.hh.


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