Import Geant4 10.7.0.beta source tree
This commit is contained in:
@@ -23,12 +23,9 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// G4GeometryTolerance
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// Class Description:
|
||||
// Class description:
|
||||
//
|
||||
// A singleton class for computation and storage of the tolerance values
|
||||
// used by the geometry modeler for precision on boundaries.
|
||||
@@ -44,9 +41,8 @@
|
||||
|
||||
// ---------------- G4GeometryTolerance ----------------
|
||||
//
|
||||
// Author: G.Cosmo (CERN), October 2006
|
||||
// ------------------------------------------------------------
|
||||
|
||||
// Author: G.Cosmo (CERN), 30 October 2006
|
||||
// --------------------------------------------------------------------
|
||||
#ifndef G4GeometryTolerance_hh
|
||||
#define G4GeometryTolerance_hh
|
||||
|
||||
@@ -56,42 +52,37 @@ class G4GeometryTolerance
|
||||
{
|
||||
friend class G4GeometryManager;
|
||||
|
||||
public: // with description
|
||||
public: // with description
|
||||
static G4GeometryTolerance* GetInstance();
|
||||
// Get a pointer to the unique G4GeometryTolerance,
|
||||
// creating it if necessary and setting the tolerances.
|
||||
G4double GetSurfaceTolerance() const;
|
||||
// Returns the current Cartesian tolerance of a surface.
|
||||
G4double GetAngularTolerance() const;
|
||||
// Returns the current angular tolerance.
|
||||
G4double GetRadialTolerance() const;
|
||||
// Returns the current radial tolerance.
|
||||
|
||||
static G4GeometryTolerance* GetInstance();
|
||||
// Get a pointer to the unique G4GeometryTolerance,
|
||||
// creating it if necessary and setting the tolerances.
|
||||
G4double GetSurfaceTolerance() const;
|
||||
// Returns the current Cartesian tolerance of a surface.
|
||||
G4double GetAngularTolerance() const;
|
||||
// Returns the current angular tolerance.
|
||||
G4double GetRadialTolerance() const;
|
||||
// Returns the current radial tolerance.
|
||||
public: // without description
|
||||
~G4GeometryTolerance();
|
||||
// Destructor.
|
||||
|
||||
public: // without description
|
||||
protected:
|
||||
void SetSurfaceTolerance(G4double worldExtent);
|
||||
// Sets the Cartesian and Radial surface tolerance to a value computed
|
||||
// from the maximum extent of the world volume. This method
|
||||
// can be called only once, and is done only through the
|
||||
// G4GeometryManager class.
|
||||
|
||||
~G4GeometryTolerance();
|
||||
// Destructor.
|
||||
G4GeometryTolerance();
|
||||
// Protected constructor.
|
||||
|
||||
protected:
|
||||
|
||||
void SetSurfaceTolerance(G4double worldExtent);
|
||||
// Sets the Cartesian and Radial surface tolerance to a value computed
|
||||
// from the maximum extent of the world volume. This method
|
||||
// can be called only once, and is done only through the
|
||||
// G4GeometryManager class.
|
||||
|
||||
G4GeometryTolerance();
|
||||
// Protected constructor.
|
||||
|
||||
private:
|
||||
|
||||
static G4ThreadLocal G4GeometryTolerance* fpInstance;
|
||||
G4double fCarTolerance;
|
||||
G4double fAngTolerance;
|
||||
G4double fRadTolerance;
|
||||
G4bool fInitialised;
|
||||
};
|
||||
|
||||
#endif // G4GeometryTolerance_hh
|
||||
private:
|
||||
static G4ThreadLocal G4GeometryTolerance* fpInstance;
|
||||
G4double fCarTolerance;
|
||||
G4double fAngTolerance;
|
||||
G4double fRadTolerance;
|
||||
G4bool fInitialised = false;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user