Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4AuxiliaryNavServices.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26// G4AuxiliaryNavServices
27//
28// Class description:
29//
30// Utility class for navigation.
31
32// Author: Paul Kent (CERN), August 1996
33// --------------------------------------------------------------------
34#ifndef G4AuxiliaryNavServices_hh
35#define G4AuxiliaryNavServices_hh 1
36
37#include "G4Types.hh"
38#include "G4ThreeVector.hh"
39#include "G4VSolid.hh"
40#include "G4AffineTransform.hh"
41
42/**
43 * @brief G4AuxiliaryNavServices a utility class for navigation.
44 */
45
47{
48 public:
49
50 /**
51 * Is the track (point, direction) inside the solid 'sampleSolid' ?
52 * @param[in] sampleSolid Pointer to the shape to check.
53 * @param[in,out] localPoint Point in local coordinates system.
54 * @param[in,out] globalDirection Pointer to global direction or null.
55 * @param[in] sampleTransform Affine transformation in space.
56 * @param[in] pLocatedOnEdge Flag specifying if point is located on edge.
57 * @returns True if we are going to enter the volume, which is the case
58 * if the point is inside, or the point is on the surface and
59 * the direction points inside or along it. Else returns false.
60 */
61 static G4bool CheckPointOnSurface( const G4VSolid* sampleSolid,
62 const G4ThreeVector& localPoint,
63 const G4ThreeVector* globalDirection,
64 const G4AffineTransform& sampleTransform,
65 const G4bool locatedOnEdge);
66
67 /**
68 * Is the track (point, direction) exiting the solid 'sampleSolid' ?
69 * @returns True if we are going to exit the volume.
70 * @param[in] sampleSolid Pointer to the shape to check.
71 * @param[in,out] localPoint Point in local coordinates system.
72 * @param[in,out] globalDirection Pointer to global direction or null.
73 * @param[in] sampleTransform Affine transformation in space.
74 */
75 static G4bool CheckPointExiting( const G4VSolid* sampleSolid,
76 const G4ThreeVector& localPoint,
77 const G4ThreeVector* globalDirection,
78 const G4AffineTransform& sampleTransform );
79
80 /**
81 * Prints global values of Cartesian, Radial and Angle Tolerances.
82 */
83 static void ReportTolerances();
84};
85
86#include "G4AuxiliaryNavServices.icc"
87
88#endif
CLHEP::Hep3Vector G4ThreeVector
bool G4bool
Definition G4Types.hh:86
G4AffineTransform is a class for geometric affine transformations. It supports efficient arbitrary ro...
G4AuxiliaryNavServices a utility class for navigation.
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)
G4VSolid is an abstract base class for solids, physical shapes that can be tracked through....
Definition G4VSolid.hh:80