48 fCarTolerance = 1E-9 * mm;
49 fAngTolerance = 1E-9 * rad;
50 fRadTolerance = 1E-9 * mm;
60 if(fpInstance ==
nullptr)
96 fCarTolerance = fRadTolerance = worldExtent * 1E-11;
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!");
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
G4double GetSurfaceTolerance() const
G4double GetRadialTolerance() const
void SetSurfaceTolerance(G4double worldExtent)
static G4GeometryTolerance * GetInstance()
G4double GetAngularTolerance() const