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,
Intersection
getTrajectoryIntersections (const ThreeVector &x0, const ThreeVector &p, const G4double r)


Detailed Description

Definition at line 64 of file G4INCLIntersection.hh.


Member Function Documentation

static Intersection G4INCL::IntersectionFactory::getEarlierTrajectoryIntersection ( const ThreeVector x0,
const ThreeVector p,
const G4double  r 
) [inline, static]

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

Parameters:
x0 the starting position of the trajectory
p the trajectory direction
r the 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 76 of file G4INCLIntersection.hh.

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

00076                                                                                                                                  {
00077         return getTrajectoryIntersection(x0, p, r, true);
00078       }

static Intersection G4INCL::IntersectionFactory::getLaterTrajectoryIntersection ( const ThreeVector x0,
const ThreeVector p,
const G4double  r 
) [inline, static]

Definition at line 79 of file G4INCLIntersection.hh.

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

00079                                                                                                                                {
00080         return getTrajectoryIntersection(x0, p, r, false);
00081       }

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

Definition at line 82 of file G4INCLIntersection.hh.

00082                                                                                                                                                  {
00083         return std::make_pair(
00084             getTrajectoryIntersection(x0, p, r, true),
00085             getTrajectoryIntersection(x0, p, r, false)
00086             );
00087       }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:54:08 2013 for Geant4 by  doxygen 1.4.7