Add nodes for all decays possible from the given node and all of its children.
690 uint32_t n_unstable = 0;
691 for (
const ParticleTypePtr ptype : node.state_) {
692 if (!ptype->is_stable()) {
697 n_unstable != 0 ? 1. /
static_cast<double>(n_unstable) : 1.;
699 for (
const ParticleTypePtr ptype : node.state_) {
700 if (!ptype->is_stable()) {
701 for (
const auto& decay : ptype->decay_modes().decay_mode_list()) {
702 ParticleTypePtrList parts;
704 auto& new_node = node.add_action(name, norm * decay->weight(), {ptype},
static std::string make_decay_name(const std::string &res_name, const DecayBranchPtr &decay, ParticleTypePtrList &final_state)
Generate name for decay and update final state.
static void add_decays(Node &node)
Add nodes for all decays possible from the given node and all of its children.