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

#include <G4INCLCoulombNone.hh>

+ Inheritance diagram for G4INCL::CoulombNone:

Public Member Functions

 CoulombNone ()
 
virtual ~CoulombNone ()
 
ParticleEntryAvatarbringToSurface (Particle *const p, Nucleus *const n) const
 Position the particle on the surface of the nucleus.
 
IAvatarList bringToSurface (Cluster *const c, Nucleus *const n) const
 Position the cluster on the surface of the nucleus.
 
void distortOut (ParticleList const &, Nucleus const *const) const
 Modify the momenta of the outgoing particles.
 
G4double maxImpactParameter (ParticleSpecies const &p, const G4double, Nucleus const *const n) const
 Return the maximum impact parameter for Coulomb-distorted trajectories.
 
- Public Member Functions inherited from G4INCL::ICoulomb
 ICoulomb ()
 
virtual ~ICoulomb ()
 
virtual ParticleEntryAvatarbringToSurface (Particle *const p, Nucleus *const n) const =0
 Modify the momentum of an incoming particle and position it on the surface of the nucleus.
 
virtual IAvatarList bringToSurface (Cluster *const c, Nucleus *const n) const =0
 Modify the momentum of an incoming cluster and position it on the surface of the target.
 
virtual void distortOut (ParticleList const &pL, Nucleus const *const n) const =0
 Modify the momenta of the outgoing particles.
 
virtual G4double maxImpactParameter (ParticleSpecies const &p, const G4double kinE, Nucleus const *const n) const =0
 Return the maximum impact parameter for Coulomb-distorted trajectories.
 

Detailed Description

Definition at line 56 of file G4INCLCoulombNone.hh.

Constructor & Destructor Documentation

◆ CoulombNone()

G4INCL::CoulombNone::CoulombNone ( )
inline

Definition at line 59 of file G4INCLCoulombNone.hh.

59{}

◆ ~CoulombNone()

virtual G4INCL::CoulombNone::~CoulombNone ( )
inlinevirtual

Definition at line 60 of file G4INCLCoulombNone.hh.

60{}

Member Function Documentation

◆ bringToSurface() [1/2]

IAvatarList G4INCL::CoulombNone::bringToSurface ( Cluster *const  c,
Nucleus *const  n 
) const
virtual

Position the cluster on the surface of the nucleus.

This method does not perform any distortion.

Parameters
cincoming cluster
ndistorting nucleus

Implements G4INCL::ICoulomb.

Definition at line 60 of file G4INCLCoulombNone.cc.

60 {
61 // The avatar list that we will return
62 IAvatarList theAvatarList;
63
64 // Loop over the particles in the cluster
65 ParticleList projectiles = c->getParticles();
66 std::list<Intersection> theIntersections;
67 G4double theFirstEntryTime = 1E+60; // a large time
68 G4int theFirstID = 0;
69 for(ParticleIter p=projectiles.begin(); p!=projectiles.end(); ++p) {
70 // Check if the particle enters the nucleus
72 (*p)->getPosition(),
73 (*p)->getPropagationVelocity(),
74 n->getUniverseRadius()));
75 // Store the intersections
76 theIntersections.push_back(intersection);
77 if(intersection.exists) {
78 // Position the particle at the entry point
79 (*p)->setPosition(intersection.position);
80
81 // Keep track of the first entering particle
82 if(intersection.time < theFirstEntryTime) {
83 theFirstEntryTime = intersection.time;
84 theFirstID = (*p)->getID();
85 }
86 }
87 }
88
89 std::list<Intersection>::const_iterator intIter = theIntersections.begin();
90 for( ParticleIter p=projectiles.begin(); p!=projectiles.end(); ++p, ++intIter) {
91
92 if((*intIter).exists) {
93 // If the particle enters the nucleus, generate a ParticleEntryAvatar
94 // for it and add it to the list of avatars that we will return
95 if((*p)->getID() == theFirstID) {
96 // The first particle always enters exactly at t=0 (in order to
97 // avoid negative entry times due to rounding)
98 theAvatarList.push_back(new ParticleEntryAvatar(0.0, n, *p));
99 } else
100 theAvatarList.push_back(new ParticleEntryAvatar(intIter->time - theFirstEntryTime, n, *p));
101 }
102
103 }
104
105 return theAvatarList;
106 }
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
static Intersection getEarlierTrajectoryIntersection(const ThreeVector &x0, const ThreeVector &p, const G4double r)
Compute the first intersection of a straight particle trajectory with a sphere.
std::list< IAvatar * > IAvatarList
std::list< G4INCL::Particle * > ParticleList
std::list< G4INCL::Particle * >::const_iterator ParticleIter

◆ bringToSurface() [2/2]

ParticleEntryAvatar * G4INCL::CoulombNone::bringToSurface ( Particle *const  p,
Nucleus *const  n 
) const
virtual

Position the particle on the surface of the nucleus.

This method does not perform any distortion.

Parameters
pincoming particle
ndistorting nucleus

Implements G4INCL::ICoulomb.

Definition at line 51 of file G4INCLCoulombNone.cc.

51 {
52 Intersection intersection = IntersectionFactory::getEarlierTrajectoryIntersection(p->getPosition(), p->getPropagationVelocity(), n->getUniverseRadius());
53 if(intersection.exists) { // If the particle enters the nucleus
54 p->setPosition(intersection.position);
55 return new ParticleEntryAvatar(0.0, n, p);
56 } else // If the particle does NOT enter the nucleus
57 return NULL;
58 }

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

◆ distortOut()

void G4INCL::CoulombNone::distortOut ( ParticleList const ,
Nucleus const * const   
) const
inlinevirtual

Modify the momenta of the outgoing particles.

This method does not perform any distortion.

Implements G4INCL::ICoulomb.

Definition at line 84 of file G4INCLCoulombNone.hh.

84{}

◆ maxImpactParameter()

G4double G4INCL::CoulombNone::maxImpactParameter ( ParticleSpecies const p,
const  G4double,
Nucleus const *const  n 
) const
inlinevirtual

Return the maximum impact parameter for Coulomb-distorted trajectories.

Implements G4INCL::ICoulomb.

Definition at line 88 of file G4INCLCoulombNone.hh.

89 {
90 if(p.theType == Composite)
91 return 2.*ParticleTable::getNuclearRadius(p.theA, p.theZ)
92 + n->getUniverseRadius();
93 else
94 return n->getUniverseRadius();
95 }
static G4double getNuclearRadius(const G4int A, const G4int Z)

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