Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4INCLIntersection.hh File Reference

Simple class for computing intersections between a straight line and a sphere. More...

#include "globals.hh"
#include "G4INCLThreeVector.hh"
#include <utility>

Go to the source code of this file.

Classes

struct  G4INCL::Intersection
 Intersection-point structure. More...
 

Namespaces

namespace  G4INCL
 
namespace  G4INCL::IntersectionFactory
 

Macros

#define INCLXX_IN_GEANT4_MODE   1
 
#define G4INCLINTERSECTION_HH   1
 

Functions

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

Detailed Description

Simple class for computing intersections between a straight line and a sphere.

Date
12 December 2011
Author
Davide Mancusi

Definition in file G4INCLIntersection.hh.

Macro Definition Documentation

◆ G4INCLINTERSECTION_HH

#define G4INCLINTERSECTION_HH   1

Definition at line 46 of file G4INCLIntersection.hh.

◆ INCLXX_IN_GEANT4_MODE

#define INCLXX_IN_GEANT4_MODE   1

Definition at line 34 of file G4INCLIntersection.hh.