Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
|
#include <G4INCLStandardPropagationModel.hh>
Additional Inherited Members | |
virtual G4double | shootParticle (ParticleType const t, const G4double kineticEnergy, const G4double impactParameter, const G4double phi)=0 |
virtual G4double | shootComposite (ParticleSpecies const s, const G4double kineticEnergy, const G4double impactParameter, const G4double phi)=0 |
Standard INCL4 particle propagation and avatar prediction
This class implements the standard INCL4 avatar prediction and particle propagation logic. The main idea is to predict all collisions between particles and their reflections from the potential wall. After this we select the avatar with the smallest time, propagate all particles to their positions at that time and return the avatar to the INCL kernel
The particle trajectories in this propagation model are straight lines and all particles are assumed to move with constant velocity.
Definition at line 70 of file G4INCLStandardPropagationModel.hh.
G4INCL::StandardPropagationModel::StandardPropagationModel | ( | LocalEnergyType | localEnergyType, |
LocalEnergyType | localEnergyDeltaType | ||
) |
Definition at line 64 of file G4INCLStandardPropagationModel.cc.
|
virtual |
Definition at line 71 of file G4INCLStandardPropagationModel.cc.
void G4INCL::StandardPropagationModel::generateAllAvatars | ( | G4bool | excludeUpdated = false | ) |
(Re)Generate all possible avatars.
excludeUpdated | exclude collisions between updated particles. |
Definition at line 428 of file G4INCLStandardPropagationModel.cc.
Referenced by propagate(), shootComposite(), and shootParticle().
IAvatar * G4INCL::StandardPropagationModel::generateBinaryCollisionAvatar | ( | Particle *const | p1, |
Particle *const | p2 | ||
) | const |
Generate a two-particle avatar.
Generate a two-particle avatar, if all the appropriate conditions are met.
Definition at line 265 of file G4INCLStandardPropagationModel.cc.
Referenced by generateCollisions(), and generateUpdatedCollisions().
void G4INCL::StandardPropagationModel::generateCollisions | ( | const ParticleList & | particles, |
const ParticleList & | except | ||
) |
Generate and register collisions among particles in a list, except between those in another list.
This method generates all possible collisions among the particles. Each collision is generated only once. The collision is NOT generated if BOTH collision partners belong to the except list.
You should pass an empty list as the except parameter if you want to generate all possible collisions among particles.
particles | list of particles |
except | list of excluded particles |
Definition at line 397 of file G4INCLStandardPropagationModel.cc.
Referenced by generateAllAvatars().
void G4INCL::StandardPropagationModel::generateDecays | ( | const ParticleList & | particles | ) |
Generate decays for particles that can decay.
The list of particles given as an argument is allowed to contain also stable particles.
particles | list of particles to (possibly) generate decays for |
Definition at line 442 of file G4INCLStandardPropagationModel.cc.
Referenced by generateAllAvatars(), and propagate().
void G4INCL::StandardPropagationModel::generateUpdatedCollisions | ( | const ParticleList & | updatedParticles, |
const ParticleList & | particles | ||
) |
Generate and register collisions between a list of updated particles and all the other particles.
This method does not generate collisions among the particles in updatedParticles; in other words, it generates a collision between one of the updatedParticles and one of the particles ONLY IF the latter does not belong to updatedParticles.
If you intend to generate all possible collisions among particles in a list, use generateCollisions().
updatedParticles | list of updated particles |
particles | list of particles |
Definition at line 378 of file G4INCLStandardPropagationModel.cc.
Referenced by updateAvatars().
|
virtual |
Returns the current global time of the system.
Implements G4INCL::IPropagationModel.
Definition at line 251 of file G4INCLStandardPropagationModel.cc.
|
virtual |
Get the nucleus.
Implements G4INCL::IPropagationModel.
Definition at line 76 of file G4INCLStandardPropagationModel.cc.
G4double G4INCL::StandardPropagationModel::getReflectionTime | ( | G4INCL::Particle const *const | aParticle | ) |
Get the reflection time.
Returns the reflection time of a particle on the potential wall.
aParticle | pointer to the particle |
Definition at line 341 of file G4INCLStandardPropagationModel.cc.
Referenced by generateAllAvatars(), and updateAvatars().
|
virtual |
Get the current stopping time.
Implements G4INCL::IPropagationModel.
Definition at line 242 of file G4INCLStandardPropagationModel.cc.
G4double G4INCL::StandardPropagationModel::getTime | ( | G4INCL::Particle const *const | particleA, |
G4INCL::Particle const *const | particleB, | ||
G4double * | minDistOfApproach | ||
) | const |
Get the predicted time of the collision between two particles.
Definition at line 358 of file G4INCLStandardPropagationModel.cc.
Referenced by generateBinaryCollisionAvatar().
|
virtual |
Propagate all particles and return the first avatar.
Implements G4INCL::IPropagationModel.
Definition at line 454 of file G4INCLStandardPropagationModel.cc.
void G4INCL::StandardPropagationModel::registerAvatar | ( | G4INCL::IAvatar * | anAvatar | ) |
Add an avatar to the storage.
Definition at line 260 of file G4INCLStandardPropagationModel.cc.
Referenced by generateAllAvatars(), generateCollisions(), generateDecays(), generateUpdatedCollisions(), and updateAvatars().
|
virtual |
Set the nucleus for this propagation model.
Implements G4INCL::IPropagationModel.
Definition at line 255 of file G4INCLStandardPropagationModel.cc.
|
virtual |
Set the stopping time of the simulation.
Implements G4INCL::IPropagationModel.
Definition at line 246 of file G4INCLStandardPropagationModel.cc.
|
virtual |
Implements G4INCL::IPropagationModel.
Definition at line 81 of file G4INCLStandardPropagationModel.cc.
|
virtual |
Implements G4INCL::IPropagationModel.
Definition at line 162 of file G4INCLStandardPropagationModel.cc.
Referenced by shoot().
|
virtual |
Implements G4INCL::IPropagationModel.
Definition at line 88 of file G4INCLStandardPropagationModel.cc.
Referenced by shoot().
void G4INCL::StandardPropagationModel::updateAvatars | ( | const ParticleList & | particles | ) |
Update all avatars related to a particle.
Definition at line 418 of file G4INCLStandardPropagationModel.cc.
Referenced by propagate().