33 #define INCLXX_IN_GEANT4_MODE 1
44 #ifndef G4INCLPROJECTILEREMNANT_HH_
45 #define G4INCLPROJECTILEREMNANT_HH_
75 const G4double momentumZ = std::sqrt(energy*energy - projectileMass*projectileMass);
191 EnergyLevels energies;
194 const G4double theCMEnergy = (*p)->getEnergy();
197 energies.push_back(theCMEnergy);
200 std::sort(energies.begin(), energies.end());
238 pL.push_back(p->second);
246 INCL_ERROR(
"Couldn't find particle " << p->
getID() <<
" in the list of projectile components" << std::endl);
249 return i->second->getMomentum();
287 #endif // G4INCLPROJECTILEREMNANT_HH_
G4int shuffleComponentsHelper(G4int range)
Helper function for ProjectileRemnant::shuffleStoredComponents.
EnergyLevels getPresentEnergyLevelsWith(const ParticleList &pL) const
G4double getMass() const
Get the cached particle mass.
void storeEnergyLevels()
Store the energy levels.
G4bool addDynamicalSpectator(Particle *const p)
Add back a nucleon to the projectile remnant.
void putParticlesOffShell()
Put the cluster components off shell.
EnergyLevels getPresentEnergyLevelsExcept(const long exceptID) const
ParticleList addAllDynamicalSpectators(ParticleList pL)
Add back all dynamical spectators to the projectile remnant.
void deleteStoredComponents()
Clear the stored projectile components and delete the particles.
std::map< long, G4double > EnergyLevelMap
const G4INCL::ThreeVector & getMomentum() const
Get the momentum vector.
void storeComponents()
Store the projectile components.
ThreeVector const & getStoredMomentum(Particle const *const p) const
Return the stored momentum of a given projectile component.
void clearStoredComponents()
Clear the stored projectile components.
void boost(const ThreeVector &aBoostVector)
Boost the cluster with the indicated velocity.
ParticleList getStoredComponents() const
Cluster is a particle (inherits from the Particle class) that is actually a collection of elementary ...
void reset()
Reset the projectile remnant to the state at the beginning of the cascade.
ParticleList shuffleStoredComponents()
Shuffle the list of stored projectile components.
G4double computeExcitationEnergyWith(const ParticleList &pL) const
Compute the excitation energy if some nucleons are put back.
std::map< long, Particle * > storedComponents
Return the stored energy of a given projectile component.
virtual void initializeParticles()
Initialise the NuclearDensity pointer and sample the particles.
void freezeInternalMotion()
Freeze the internal motion of the particles.
G4double computeExcitationEnergyExcept(const long exceptID) const
Compute the excitation energy when a nucleon is removed.
G4int getNumberStoredComponents() const
Get the number of the stored components.
EnergyLevels const & getGroundStateEnergies() const
ParticleList addDynamicalSpectators(ParticleList pL)
Add back dynamical spectators to the projectile remnant.
G4double computeExcitationEnergy(const EnergyLevels &levels) const
Compute the excitation energy for a given configuration.
G4double energy(const ThreeVector &p, const G4double m)
void setTableMass()
Set the mass of the Particle to its table mass.
EnergyLevels theGroundStateEnergies
Ground-state energies for any number of nucleons.
ParticleList addMostDynamicalSpectators(ParticleList pL)
Add back dynamical spectators to the projectile remnant.
void internalBoostToCM()
Boost to the CM of the component particles.
EnergyLevelMap theInitialEnergyLevels
Initial energy levels of the projectile.
void clearEnergyLevels()
Clear the stored energy levels.
std::vector< G4double > EnergyLevels
void removeParticle(Particle *const p, const G4double theProjectileCorrection)
Remove a nucleon from the projectile remnant.
ProjectileRemnant(ParticleSpecies const species, const G4double kineticEnergy)
virtual void makeProjectileSpectator()
Make all the components projectile spectators, too.
ParticleList::const_iterator ParticleIter