Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4INCL::IntersectionFactory Class Reference

#include <G4INCLIntersection.hh>

Static Public Member Functions

static Intersection getEarlierTrajectoryIntersection (const ThreeVector &x0, const ThreeVector &p, const G4double r)
 Compute the first intersection of a straight particle trajectory with a sphere.
 
static Intersection getLaterTrajectoryIntersection (const ThreeVector &x0, const ThreeVector &p, const G4double r)
 
static std::pair< Intersection, IntersectiongetTrajectoryIntersections (const ThreeVector &x0, const ThreeVector &p, const G4double r)
 

Detailed Description

Definition at line 66 of file G4INCLIntersection.hh.

Member Function Documentation

◆ getEarlierTrajectoryIntersection()

static Intersection G4INCL::IntersectionFactory::getEarlierTrajectoryIntersection ( const ThreeVector x0,
const ThreeVector p,
const G4double  r 
)
inlinestatic

Compute the first intersection of a straight particle trajectory with a sphere.

Parameters
x0the starting position of the trajectory
pthe trajectory direction
rthe radius of the sphere (centred in the origin)
Returns
an Intersection. The G4bool is true if an intersection exists, in which case its position is stored in the ThreeVector and its time in the G4double.

Definition at line 78 of file G4INCLIntersection.hh.

78 {
79 return getTrajectoryIntersection(x0, p, r, true);
80 }

Referenced by G4INCL::CoulombNone::bringToSurface().

◆ getLaterTrajectoryIntersection()

static Intersection G4INCL::IntersectionFactory::getLaterTrajectoryIntersection ( const ThreeVector x0,
const ThreeVector p,
const G4double  r 
)
inlinestatic

Definition at line 81 of file G4INCLIntersection.hh.

81 {
82 return getTrajectoryIntersection(x0, p, r, false);
83 }

Referenced by G4INCL::StandardPropagationModel::getReflectionTime().

◆ getTrajectoryIntersections()

static std::pair< Intersection, Intersection > G4INCL::IntersectionFactory::getTrajectoryIntersections ( const ThreeVector x0,
const ThreeVector p,
const G4double  r 
)
inlinestatic

Definition at line 84 of file G4INCLIntersection.hh.

84 {
85 return std::make_pair(
86 getTrajectoryIntersection(x0, p, r, true),
87 getTrajectoryIntersection(x0, p, r, false)
88 );
89 }

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