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