Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4GeometryTolerance Class Reference

#include <G4GeometryTolerance.hh>

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 ()
 

Friends

class G4GeometryManager
 

Detailed Description

Definition at line 56 of file G4GeometryTolerance.hh.

Constructor & Destructor Documentation

G4GeometryTolerance::~G4GeometryTolerance ( )

Definition at line 64 of file G4GeometryTolerance.cc.

65 {
66 }
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 constexpr double mm
Definition: G4SIunits.hh:115
static constexpr double rad
Definition: G4SIunits.hh:149

Here is the caller graph for this function:

Member Function Documentation

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:

G4GeometryTolerance * G4GeometryTolerance::GetInstance ( )
static

Definition at line 73 of file G4GeometryTolerance.cc.

74 {
75  if (fpInstance == 0)
76  {
77  fpInstance = new G4GeometryTolerance;
78  G4AutoDelete::Register(fpInstance);
79  }
80  return fpInstance;
81 }
void Register(T *inst)
Definition: G4AutoDelete.hh:65

Here is the call graph for this function:

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:

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:

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 }
static constexpr double mm
Definition: G4SIunits.hh:115
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

Here is the call graph for this function:

Here is the caller graph for this function:

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: