Geant4  10.02.p03
G4GeometryTolerance Class Reference

#include <G4GeometryTolerance.hh>

Collaboration diagram for G4GeometryTolerance:

Public Member Functions

G4double GetSurfaceTolerance () const
 
G4double GetAngularTolerance () const
 
G4double GetRadialTolerance () const
 
 ~G4GeometryTolerance ()
 

Static Public Member Functions

static G4GeometryTolerance * GetInstance ()
 

Protected Member Functions

void SetSurfaceTolerance (G4double worldExtent)
 
 G4GeometryTolerance ()
 

Private Attributes

G4double fCarTolerance
 
G4double fAngTolerance
 
G4double fRadTolerance
 
G4bool fInitialised
 

Static Private Attributes

static G4ThreadLocal G4GeometryTolerance * fpInstance = 0
 

Friends

class G4GeometryManager
 

Detailed Description

Definition at line 56 of file G4GeometryTolerance.hh.

Constructor & Destructor Documentation

◆ ~G4GeometryTolerance()

G4GeometryTolerance::~G4GeometryTolerance ( )

Definition at line 64 of file G4GeometryTolerance.cc.

65 {
66 }

◆ G4GeometryTolerance()

G4GeometryTolerance::G4GeometryTolerance ( )
protected

Definition at line 53 of file G4GeometryTolerance.cc.

53  : fInitialised(false)
54 {
55  fCarTolerance = 1E-9*mm;
56  fAngTolerance = 1E-9*rad;
57  fRadTolerance = 1E-9*mm;
58 }
static const double rad
Definition: G4SIunits.hh:148
static const double mm
Definition: G4SIunits.hh:114
Here is the caller graph for this function:

Member Function Documentation

◆ GetAngularTolerance()

G4double G4GeometryTolerance::GetAngularTolerance ( ) const

Definition at line 92 of file G4GeometryTolerance.cc.

93 {
94  return fAngTolerance;
95 }
Here is the caller graph for this function:

◆ GetInstance()

G4GeometryTolerance * G4GeometryTolerance::GetInstance ( void  )
static

Definition at line 73 of file G4GeometryTolerance.cc.

74 {
75  if (fpInstance == 0)
76  {
79  }
80  return fpInstance;
81 }
static G4ThreadLocal G4GeometryTolerance * fpInstance
void Register(T *inst)
Definition: G4AutoDelete.hh:65
Here is the call graph for this function:

◆ GetRadialTolerance()

G4double G4GeometryTolerance::GetRadialTolerance ( ) const

Definition at line 97 of file G4GeometryTolerance.cc.

98 {
99  return fRadTolerance;
100 }
Here is the caller graph for this function:

◆ GetSurfaceTolerance()

G4double G4GeometryTolerance::GetSurfaceTolerance ( ) const

Definition at line 87 of file G4GeometryTolerance.cc.

88 {
89  return fCarTolerance;
90 }
Here is the caller graph for this function:

◆ SetSurfaceTolerance()

void G4GeometryTolerance::SetSurfaceTolerance ( G4double  worldExtent)
protected

Definition at line 107 of file G4GeometryTolerance.cc.

108 {
109  if (!fInitialised)
110  {
111  fCarTolerance = fRadTolerance = 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
static const double mm
Definition: G4SIunits.hh:114
Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ G4GeometryManager

friend class G4GeometryManager
friend

Definition at line 58 of file G4GeometryTolerance.hh.

Member Data Documentation

◆ fAngTolerance

G4double G4GeometryTolerance::fAngTolerance
private

Definition at line 92 of file G4GeometryTolerance.hh.

◆ fCarTolerance

G4double G4GeometryTolerance::fCarTolerance
private

Definition at line 91 of file G4GeometryTolerance.hh.

◆ fInitialised

G4bool G4GeometryTolerance::fInitialised
private

Definition at line 94 of file G4GeometryTolerance.hh.

◆ fpInstance

G4ThreadLocal G4GeometryTolerance * G4GeometryTolerance::fpInstance = 0
staticprivate

Definition at line 90 of file G4GeometryTolerance.hh.

◆ fRadTolerance

G4double G4GeometryTolerance::fRadTolerance
private

Definition at line 93 of file G4GeometryTolerance.hh.


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