Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4AuxiliaryNavServices Class Reference

G4AuxiliaryNavServices a utility class for navigation. More...

#include <G4AuxiliaryNavServices.hh>

Static Public Member Functions

static G4bool CheckPointOnSurface (const G4VSolid *sampleSolid, const G4ThreeVector &localPoint, const G4ThreeVector *globalDirection, const G4AffineTransform &sampleTransform, const G4bool locatedOnEdge)
static G4bool CheckPointExiting (const G4VSolid *sampleSolid, const G4ThreeVector &localPoint, const G4ThreeVector *globalDirection, const G4AffineTransform &sampleTransform)
static void ReportTolerances ()

Detailed Description

G4AuxiliaryNavServices a utility class for navigation.

Definition at line 46 of file G4AuxiliaryNavServices.hh.

Member Function Documentation

◆ CheckPointExiting()

G4bool G4AuxiliaryNavServices::CheckPointExiting ( const G4VSolid * sampleSolid,
const G4ThreeVector & localPoint,
const G4ThreeVector * globalDirection,
const G4AffineTransform & sampleTransform )
static

Is the track (point, direction) exiting the solid 'sampleSolid' ?

Returns
True if we are going to exit the volume.
Parameters
[in]sampleSolidPointer to the shape to check.
[in,out]localPointPoint in local coordinates system.
[in,out]globalDirectionPointer to global direction or null.
[in]sampleTransformAffine transformation in space.

◆ CheckPointOnSurface()

G4bool G4AuxiliaryNavServices::CheckPointOnSurface ( const G4VSolid * sampleSolid,
const G4ThreeVector & localPoint,
const G4ThreeVector * globalDirection,
const G4AffineTransform & sampleTransform,
const G4bool locatedOnEdge )
static

Is the track (point, direction) inside the solid 'sampleSolid' ?

Parameters
[in]sampleSolidPointer to the shape to check.
[in,out]localPointPoint in local coordinates system.
[in,out]globalDirectionPointer to global direction or null.
[in]sampleTransformAffine transformation in space.
[in]pLocatedOnEdgeFlag specifying if point is located on edge.
Returns
True if we are going to enter the volume, which is the case if the point is inside, or the point is on the surface and the direction points inside or along it. Else returns false.

Referenced by G4ParameterisedNavigation::LevelLocate().

◆ ReportTolerances()

void G4AuxiliaryNavServices::ReportTolerances ( )
static

Prints global values of Cartesian, Radial and Angle Tolerances.

Definition at line 40 of file G4AuxiliaryNavServices.cc.

41{
42 G4long oldPrec = G4cout.precision(16);
43
44 G4cout << " Cartesian Tolerance (kCarTolerance): "
46 << " (global) " << G4endl;
47 G4cout << " Radial Tolerance (kRadTolerance): "
49 << " (global) " << G4endl;
50 G4cout << " Angular Tolerance (kAngTolerance): "
52 << " (global) " << G4endl;
53 G4cout.precision(oldPrec);
54}
long G4long
Definition G4Types.hh:87
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
G4double GetSurfaceTolerance() const
G4double GetRadialTolerance() const
static G4GeometryTolerance * GetInstance()
G4double GetAngularTolerance() const

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