Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
G4INCL::IntersectionFactory Namespace Reference

Functions

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

Function Documentation

Intersection G4INCL::IntersectionFactory::getEarlierTrajectoryIntersection ( const ThreeVector &  x0,
const ThreeVector &  p,
const G4double  r 
)
inline

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 123 of file G4INCLIntersection.hh.

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

123  {
124  return getTrajectoryIntersection(x0, p, r, true);
125  }
const char * p
Definition: xmltok.h:285
Intersection G4INCL::IntersectionFactory::getLaterTrajectoryIntersection ( const ThreeVector &  x0,
const ThreeVector &  p,
const G4double  r 
)
inline

Compute the second 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 127 of file G4INCLIntersection.hh.

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

127  {
128  return getTrajectoryIntersection(x0, p, r, false);
129  }
const char * p
Definition: xmltok.h:285
std::pair< Intersection, Intersection > G4INCL::IntersectionFactory::getTrajectoryIntersections ( const ThreeVector &  x0,
const ThreeVector &  p,
const G4double  r 
)
inline

Compute both intersections 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 131 of file G4INCLIntersection.hh.

131  {
132  return std::make_pair(
133  getTrajectoryIntersection(x0, p, r, true),
134  getTrajectoryIntersection(x0, p, r, false)
135  );
136  }
const char * p
Definition: xmltok.h:285