 |
Version: SMASH-1.8
|
|
Go to the documentation of this file.
23 :
Action({
p}, time), total_width_(0.) {}
61 "DecayAction::perform: Only 1->2 or 1->3 processes are supported. "
64 " was requested. (PDGcode=" +
83 double kinetic_energy_cm)
const {
88 std::pair<double, double> masses = {t_a.
mass(), t_b.
mass()};
91 const std::string reaction =
94 reaction +
": not enough energy, " + std::to_string(kinetic_energy_cm) +
ParticleList particle_list() const
ParticleList incoming_particles_
List with data of incoming particles.
double total_width_
total decay width
int L_
Angular momentum of the decay.
const double time_of_execution_
Time at which the action is supposed to be performed (absolute time in the lab frame in fm/c).
void add_decays(DecayBranchList pv)
Add several new decays at once.
void sample_2body_phasespace()
Sample the full 2-body phase-space (masses, momenta, angles) in the center-of-mass frame for the fina...
void format_debug_output(std::ostream &out) const override
DecayAction(const ParticleData &p, double time)
Construct a DecayAction from a particle p.
ProcessType get_type() const override
std::array< einhard::Logger<>, std::tuple_size< LogArea::AreaTuple >::value > logg
An array that stores all pre-configured Logger objects.
double partial_width_
partial decay width to the chosen outgoing channel
DecayBranchList decay_channels_
List of possible decays.
int angular_momentum() const
FormattingHelper< T > format(const T &value, const char *unit, int width=-1, int precision=-1)
Acts as a stream modifier for std::ostream to output an object with an optional suffix string and wit...
static constexpr int LDecayModes
std::pair< double, double > sample_resonance_masses(const ParticleType &t2, const double cms_energy, int L=0) const
Resonance mass sampling for 2-particle final state with two resonances.
double sample_resonance_mass(const double mass_stable, const double cms_energy, int L=0) const
Resonance mass sampling for 2-particle final state with one resonance (type given by 'this') and one ...
ProcessType process_type_
type of process
void generate_final_state() override
Generate the final state of the decay process.
const std::string & name() const
FourVector total_momentum_of_outgoing_particles() const
Calculate the total kinetic momentum of the outgoing particles.
ParticleList outgoing_particles_
Initially this stores only the PDG codes of final-state particles.
virtual void sample_3body_phasespace()
Sample the full 3-body phase-space (masses, momenta, angles) in the center-of-mass frame for the fina...
double sqrt_s() const
Determine the total energy in the center-of-mass frame [GeV].
double min_mass_kinematic() const
The minimum mass of the resonance that is kinematically allowed.
void add_decay(DecayBranchPtr p)
Add one new decay.
std::pair< double, double > sample_masses(double kinetic_energy_cm) const override
Sample the masses of the final particles.