34 #define INCLXX_IN_GEANT4_MODE 1
38 #ifndef G4INCLCascade_hh
39 #define G4INCLCascade_hh 1
123 if(aPR && aPR->
getA()>0) {
170 const G4double mass = (*i)->getMass();
171 const G4double newKineticEnergy = (*iE) * rescale;
173 (*i)->setMomentum(*iP);
174 (*i)->setEnergy(mass + newKineticEnergy);
175 (*i)->adjustMomentumFromEnergy();
177 pBalance -= (*i)->getMomentum();
183 const G4double recoilEnergy = pRem2/
184 (std::sqrt(pRem2+remnantMass*remnantMass) + remnantMass);
208 if(aPR && aPR->
getA()>0) {
256 (*i)->setMomentum(*iP * rescale);
257 (*i)->adjustEnergyFromMomentum();
260 remnantMomentum -= (*i)->getMomentum();
266 const G4double recoilEnergy = pRem2/
267 (std::sqrt(pRem2+remnantMass*remnantMass) + remnantMass);
279 #ifndef INCLXX_IN_GEANT4_MODE
289 void globalConservationChecks(
G4bool afterRecoil);
EventInfo const & theEventInfo
void scaleParticleCMMomenta(const G4double rescale) const
Scale the kinetic energies of the outgoing particles.
void finalizeGlobalInfo(Random::SeedVector const &initialSeeds)
ParticleList::const_iterator ParticleIter
Nucleus * nucleus
Pointer to the nucleus.
G4double getProjectileKineticEnergy() const
Get the projectile kinetic energy.
G4int minRemnantSize
Remnant size below which cascade stops.
void boost(const ThreeVector &aBoostVector)
Boost the cluster with the indicated velocity.
Nucleus * nucleus
Pointer to the nucleus.
Static root-finder algorithm.
G4bool preCascade(ParticleSpecies const &projectileSpecies, const G4double kineticEnergy)
Initialise the cascade.
G4double operator()(const G4double x) const
Compute the energy-conservation violation.
G4double getKineticEnergy() const
Get the particle kinetic energy.
CascadeAction * cascadeAction
INCL(Config const *const config)
void initUniverseRadius(ParticleSpecies const &p, const G4double kineticEnergy, const G4int A, const G4int Z)
Initialize the universe radius.
const G4INCL::ThreeVector & getMomentum() const
void makeCompoundNucleus()
Make a compound nucleus.
RecoilFunctor(Nucleus *const n, const EventInfo &ei)
Prepare for calling the () operator and scaleParticleEnergies.
ParticleList outgoingParticles
List of final-state particles.
G4bool prepareReaction(const ParticleSpecies &projectileSpecies, const G4double kineticEnergy, const G4int A, const G4int Z, const G4int S)
void cleanUp(const G4bool success) const
Clean up after root finding.
ProjectileRemnant * getProjectileRemnant() const
Get the projectile remnant.
std::list< G4double > particleKineticEnergies
Initial kinetic energies of the outgoing particles.
Class to adjust remnant recoil.
G4double fixedImpactParameter
G4int getTargetZ() const
Get the target charge number.
void rescaleOutgoingForRecoil()
Rescale the energies of the outgoing particles.
G4double maxInteractionDistance
const GlobalInfo & getGlobalInfo() const
void scaleParticleEnergies(const G4double rescale) const
Scale the kinetic energies of the outgoing particles.
G4int getTargetA() const
Get the target mass number.
INCL & operator=(const INCL &rhs)
Dummy assignment operator to silence Coverity warning.
Config const *const theConfig
ParticleSpecies getProjectileSpecies() const
Get the projectile species.
void cascade()
The actual cascade loop.
G4ThreadLocal NuclearMassFn getTableMass
Static pointer to the mass function for nuclei.
G4int makeProjectileRemnant()
Make a projectile pre-fragment out of geometrical spectators.
Class to adjust remnant recoil in the reaction CM system.
double A(double temperature)
G4int getZ() const
Returns the charge number.
G4int getA() const
Returns the baryon number.
Simple container for output of event results.
ParticleList outgoingParticles
List of final-state particles.
const ThreeVector & getIncomingMomentum() const
Get the incoming momentum vector.
Simple container for output of calculation-wide results.
const EventInfo & processEvent()
void initMaxInteractionDistance(ParticleSpecies const &p, const G4double kineticEnergy)
Initialise the maximum interaction distance.
virtual void setMomentum(const G4INCL::ThreeVector &momentum)
IPropagationModel * propagationModel
void updateGlobalInfo()
Update global counters and other members of theGlobalInfo object.
std::list< ThreeVector > particleMomenta
Initial momenta of the outgoing particles.
G4int getTargetS() const
Get the target strangess number.
ThreeVector theIncomingMomentum
Incoming momentum.
virtual ~RecoilCMFunctor()
void postCascade()
Finalise the cascade and clean up.
void setEnergy(G4double energy)
G4double getInitialEnergy() const
Get the initial energy.
Class containing default actions to be performed at intermediate cascade steps.
ThreeVector thePTBoostVector
Projectile-target CM boost vector.
RecoilCMFunctor(Nucleus *const n, const EventInfo &ei)
Prepare for calling the () operator and scaleParticleEnergies.
EventInfo const & theEventInfo
void cleanUp(const G4bool success) const
Clean up after root finding.
G4double getExcitationEnergy() const
Get the excitation energy of the nucleus.
G4double maxImpactParameter
G4double maxUniverseRadius
std::list< ThreeVector > particleCMMomenta
Initial CM momenta of the outgoing particles.
G4bool continueCascade()
Stopping criterion for the cascade.
ConservationBalance getConservationBalance(EventInfo const &theEventInfo, const G4bool afterRecoil) const
Compute charge, mass, energy and momentum balance.
G4bool initializeTarget(const G4int A, const G4int Z, const G4int S)
G4double operator()(const G4double x) const
Compute the energy-conservation violation.