|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
#include <G4INCLInteractionAvatar.hh>
Public Member Functions | |
| InteractionAvatar (G4double, G4INCL::Nucleus *, G4INCL::Particle *) | |
| InteractionAvatar (G4double, G4INCL::Nucleus *, G4INCL::Particle *, G4INCL::Particle *) | |
| virtual | ~InteractionAvatar () |
| void | setSrcPartner (Particle *p) |
| void | preInteractionLocalEnergy (Particle *const p) |
| Apply local-energy transformation, if appropriate. | |
| ThreeVector | getboostVector () |
| void | setboostVector (ThreeVector &v) |
| Public Member Functions inherited from G4INCL::IAvatar | |
| IAvatar () | |
| IAvatar (G4double time) | |
| virtual | ~IAvatar () |
| FinalState * | getFinalState () |
| void | fillFinalState (FinalState *fs) |
| G4double | getTime () const |
| G4double | setTime (G4double t) const |
| virtual ParticleList | getParticles () const =0 |
| virtual std::string | dump () const =0 |
| AvatarType | getType () const |
| G4bool | isACollision () const |
| G4bool | isADecay () const |
| void | setType (AvatarType t) |
| long | getID () const |
| std::string | toString () |
Static Public Member Functions | |
| static void | deleteBackupParticles () |
| Release the memory allocated for the backup particles. | |
| static InteractionAvatar * | Instance () |
Static Public Attributes | |
| static const G4double | locEAccuracy = 1.E-4 |
| Target accuracy in the determination of the local-energy Q-value. | |
| static const G4int | maxIterLocE = 50 |
| Max number of iterations for the determination of the local-energy Q-value. | |
Protected Member Functions | |
| virtual G4INCL::IChannel * | getChannel ()=0 |
| G4bool | bringParticleInside (Particle *const p) |
| void | preInteractionBlocking () |
| Store the state of the particles before the interaction. | |
| void | preInteraction () |
| void | postInteraction (FinalState *) |
| void | restoreParticles () const |
| Restore the state of both particles. | |
| void | restoreSrcPartner (FinalState *fs) |
| G4bool | shouldUseLocalEnergy () const |
| true if the given avatar should use local energy | |
| G4bool | enforceEnergyConservation (FinalState *const fs) |
| Enforce energy conservation. | |
Protected Attributes | |
| EventInfo | theEventInfo |
| Nucleus * | theNucleus |
| Particle * | particle1 |
| Particle * | particle2 |
| ThreeVector | boostVector |
| G4double | oldTotalEnergy |
| G4double | oldXSec |
| G4bool | isPiN |
| G4double | weight |
| ParticleList | modified |
| ParticleList | created |
| ParticleList | modifiedAndCreated |
| ParticleList | Destroyed |
| ParticleList | ModifiedAndDestroyed |
| Protected Attributes inherited from G4INCL::IAvatar | |
| G4double | theTime |
Static Protected Attributes | |
| static G4ThreadLocal Particle * | backupParticle1 = NULL |
| static G4ThreadLocal Particle * | backupParticle2 = NULL |
Definition at line 61 of file G4INCLInteractionAvatar.hh.
| G4INCL::InteractionAvatar::InteractionAvatar | ( | G4double | time, |
| G4INCL::Nucleus * | n, | ||
| G4INCL::Particle * | p1 ) |
Definition at line 71 of file G4INCLInteractionAvatar.cc.
Referenced by G4INCL::BinaryCollisionAvatar::BinaryCollisionAvatar(), G4INCL::DecayAvatar::DecayAvatar(), G4INCL::DecayAvatar::DecayAvatar(), and Instance().
| G4INCL::InteractionAvatar::InteractionAvatar | ( | G4double | time, |
| G4INCL::Nucleus * | n, | ||
| G4INCL::Particle * | p1, | ||
| G4INCL::Particle * | p2 ) |
Definition at line 81 of file G4INCLInteractionAvatar.cc.
|
virtual |
Definition at line 94 of file G4INCLInteractionAvatar.cc.
Definition at line 162 of file G4INCLInteractionAvatar.cc.
Referenced by postInteraction().
|
static |
Release the memory allocated for the backup particles.
Definition at line 109 of file G4INCLInteractionAvatar.cc.
Referenced by G4INCL::INCL::~INCL().
|
protected |
Enforce energy conservation.
Final states generated by the channels might violate energy conservation because of different reasons (energy-dependent potentials, local energy...). This conservation law must therefore be enforced by hand. We do so by rescaling the momenta of the final-state particles in the CM frame. If this turns out to be impossible, this method returns false.
Definition at line 522 of file G4INCLInteractionAvatar.cc.
Referenced by G4INCL::DecayAvatar::postInteraction(), and postInteraction().
|
inline |
Definition at line 88 of file G4INCLInteractionAvatar.hh.
|
protectedpure virtual |
Implements G4INCL::IAvatar.
Implemented in G4INCL::BinaryCollisionAvatar, and G4INCL::DecayAvatar.
|
static |
static instance
Definition at line 92 of file G4INCLInteractionAvatar.cc.
Referenced by G4INCL::SrcChannel::fillFinalState().
|
protectedvirtual |
Implements G4INCL::IAvatar.
Definition at line 191 of file G4INCLInteractionAvatar.cc.
Referenced by G4INCL::BinaryCollisionAvatar::postInteraction(), and G4INCL::DecayAvatar::postInteraction().
|
protectedvirtual |
Implements G4INCL::IAvatar.
Definition at line 147 of file G4INCLInteractionAvatar.cc.
Referenced by G4INCL::BinaryCollisionAvatar::preInteraction(), and G4INCL::DecayAvatar::preInteraction().
|
protected |
Store the state of the particles before the interaction.
If the interaction cannot be realised for any reason, we will need to restore the particle state as it was before. This is done by calling the restoreParticles() method.
Definition at line 120 of file G4INCLInteractionAvatar.cc.
Referenced by preInteraction().
| void G4INCL::InteractionAvatar::preInteractionLocalEnergy | ( | Particle *const | p | ) |
Apply local-energy transformation, if appropriate.
| p | particle to apply the transformation to |
Definition at line 140 of file G4INCLInteractionAvatar.cc.
Referenced by preInteraction().
|
protected |
Restore the state of both particles.
The state must first be stored by calling preInteractionBlocking().
Definition at line 474 of file G4INCLInteractionAvatar.cc.
Referenced by G4INCL::BinaryCollisionAvatar::getChannel(), G4INCL::DecayAvatar::postInteraction(), and postInteraction().
|
protected |
Definition at line 483 of file G4INCLInteractionAvatar.cc.
Referenced by postInteraction().
|
inline |
Definition at line 90 of file G4INCLInteractionAvatar.hh.
| void G4INCL::InteractionAvatar::setSrcPartner | ( | Particle * | p | ) |
Definition at line 97 of file G4INCLInteractionAvatar.cc.
|
protected |
true if the given avatar should use local energy
Definition at line 504 of file G4INCLInteractionAvatar.cc.
Referenced by enforceEnergyConservation(), and preInteractionLocalEnergy().
|
staticprotected |
Definition at line 123 of file G4INCLInteractionAvatar.hh.
Referenced by deleteBackupParticles(), G4INCL::BinaryCollisionAvatar::postInteraction(), postInteraction(), and preInteractionBlocking().
|
staticprotected |
Definition at line 123 of file G4INCLInteractionAvatar.hh.
Referenced by deleteBackupParticles(), G4INCL::BinaryCollisionAvatar::postInteraction(), postInteraction(), and preInteractionBlocking().
|
protected |
Definition at line 124 of file G4INCLInteractionAvatar.hh.
Referenced by enforceEnergyConservation(), getboostVector(), G4INCL::BinaryCollisionAvatar::getChannel(), postInteraction(), preInteraction(), and setboostVector().
|
protected |
Definition at line 242 of file G4INCLInteractionAvatar.hh.
Referenced by enforceEnergyConservation(), G4INCL::DecayAvatar::postInteraction(), and postInteraction().
|
protected |
Definition at line 242 of file G4INCLInteractionAvatar.hh.
Referenced by G4INCL::DecayAvatar::postInteraction(), and postInteraction().
|
protected |
Definition at line 126 of file G4INCLInteractionAvatar.hh.
Referenced by G4INCL::BinaryCollisionAvatar::getChannel(), InteractionAvatar(), InteractionAvatar(), and shouldUseLocalEnergy().
|
static |
Target accuracy in the determination of the local-energy Q-value.
Definition at line 68 of file G4INCLInteractionAvatar.hh.
|
static |
Max number of iterations for the determination of the local-energy Q-value.
Definition at line 70 of file G4INCLInteractionAvatar.hh.
|
protected |
Definition at line 242 of file G4INCLInteractionAvatar.hh.
Referenced by enforceEnergyConservation(), G4INCL::DecayAvatar::postInteraction(), and postInteraction().
|
protected |
Definition at line 242 of file G4INCLInteractionAvatar.hh.
Referenced by enforceEnergyConservation(), G4INCL::DecayAvatar::postInteraction(), and postInteraction().
|
protected |
Definition at line 242 of file G4INCLInteractionAvatar.hh.
Referenced by G4INCL::DecayAvatar::postInteraction(), and postInteraction().
|
protected |
Definition at line 125 of file G4INCLInteractionAvatar.hh.
Referenced by G4INCL::DecayAvatar::postInteraction(), postInteraction(), and preInteractionBlocking().
|
protected |
Definition at line 125 of file G4INCLInteractionAvatar.hh.
Referenced by G4INCL::BinaryCollisionAvatar::postInteraction(), and preInteractionBlocking().
|
protected |
Definition at line 122 of file G4INCLInteractionAvatar.hh.
Referenced by G4INCL::BinaryCollisionAvatar::dump(), G4INCL::DecayAvatar::dump(), G4INCL::BinaryCollisionAvatar::getChannel(), G4INCL::DecayAvatar::getChannel(), G4INCL::BinaryCollisionAvatar::getParticles(), G4INCL::DecayAvatar::getParticles(), InteractionAvatar(), InteractionAvatar(), G4INCL::DecayAvatar::postInteraction(), G4INCL::BinaryCollisionAvatar::preInteraction(), preInteraction(), preInteractionBlocking(), and restoreParticles().
|
protected |
Definition at line 122 of file G4INCLInteractionAvatar.hh.
Referenced by G4INCL::BinaryCollisionAvatar::dump(), G4INCL::BinaryCollisionAvatar::getChannel(), G4INCL::DecayAvatar::getChannel(), G4INCL::BinaryCollisionAvatar::getParticles(), InteractionAvatar(), InteractionAvatar(), G4INCL::BinaryCollisionAvatar::preInteraction(), preInteraction(), preInteractionBlocking(), and restoreParticles().
|
protected |
Definition at line 97 of file G4INCLInteractionAvatar.hh.
Referenced by postInteraction().
|
protected |
Definition at line 121 of file G4INCLInteractionAvatar.hh.
Referenced by bringParticleInside(), enforceEnergyConservation(), G4INCL::BinaryCollisionAvatar::getChannel(), InteractionAvatar(), InteractionAvatar(), G4INCL::BinaryCollisionAvatar::postInteraction(), G4INCL::DecayAvatar::postInteraction(), postInteraction(), preInteractionLocalEnergy(), restoreSrcPartner(), and shouldUseLocalEnergy().
|
protected |
Definition at line 127 of file G4INCLInteractionAvatar.hh.
Referenced by G4INCL::BinaryCollisionAvatar::getChannel(), InteractionAvatar(), InteractionAvatar(), and postInteraction().