34 #define INCLXX_IN_GEANT4_MODE 1
65 std::list<Intersection> theIntersections;
68 for(
ParticleIter p=projectiles.begin(), e=projectiles.end();
p!=e; ++
p) {
72 (*p)->getPropagationVelocity(),
75 theIntersections.push_back(intersection);
78 (*p)->setPosition(intersection.
position);
81 if(intersection.
time < theFirstEntryTime) {
82 theFirstEntryTime = intersection.
time;
83 theFirstID = (*p)->getID();
88 std::list<Intersection>::const_iterator intIter = theIntersections.begin();
89 for(
ParticleIter p=projectiles.begin(), e=projectiles.end();
p!=e; ++
p, ++intIter) {
91 if((*intIter).exists) {
94 if((*p)->getID() == theFirstID) {
104 return theAvatarList;
ParticleList const & getParticles() const
ThreeVector getPropagationVelocity() const
Get the propagation velocity of the particle.
Intersection getEarlierTrajectoryIntersection(const ThreeVector &x0, const ThreeVector &p, const G4double r)
Compute the first intersection of a straight particle trajectory with a sphere.
virtual void setPosition(const G4INCL::ThreeVector &position)
Placeholder class for no Coulomb distortion.
ParticleEntryAvatar * bringToSurface(Particle *const p, Nucleus *const n) const
Position the particle on the surface of the nucleus.
const G4INCL::ThreeVector & getPosition() const
G4double getUniverseRadius() const
Getter for theUniverseRadius.
Intersection-point structure.
ParticleList::const_iterator ParticleIter
Simple class for computing intersections between a straight line and a sphere.