#include <processbranch.h>
ProcessBranch represents one possible final state of an interaction process.
Each final state has two components;
For example, create a list of decay modes for \(\Delta^+\) resonance:
Definition at line 129 of file processbranch.h.
Public Member Functions | |
| ProcessBranch () | |
| Create a ProcessBranch without final states and weight. More... | |
| ProcessBranch (double w) | |
| Create a ProcessBranch with with weight but without final states. More... | |
| ProcessBranch (const ProcessBranch &)=delete | |
| Copying is disabled. Use std::move or create a new object. More... | |
| virtual | ~ProcessBranch ()=default |
| Virtual Destructor. More... | |
| void | set_weight (double process_weight) |
| Set the weight of the branch. More... | |
| virtual ProcessType | get_type () const =0 |
| virtual const ParticleTypePtrList & | particle_types () const =0 |
| ParticleList | particle_list () const |
| double | weight () const |
| double | threshold () const |
| virtual unsigned int | particle_number () const =0 |
Protected Attributes | |
| double | branch_weight_ |
| Weight of the branch, typically a cross section or a branching ratio. More... | |
| double | threshold_ = -1. |
| Threshold of the branch. More... | |
Related Functions | |
(Note that these are not member functions.) | |
| template<typename Branch > | |
| double | total_weight (const ProcessBranchList< Branch > &l) |
|
inline |
Create a ProcessBranch without final states and weight.
Definition at line 132 of file processbranch.h.
|
inlineexplicit |
Create a ProcessBranch with with weight but without final states.
| [in] | w | Weight of new branch. |
Definition at line 138 of file processbranch.h.
|
delete |
Copying is disabled. Use std::move or create a new object.
|
virtualdefault |
Virtual Destructor.
The declaration of the destructor is necessary to make it virtual.
|
inline |
Set the weight of the branch.
In other words, how probable this branch is compared to other branches.
| [in] | process_weight | Weight of the process. |
Definition at line 188 of file processbranch.h.
|
pure virtual |
Implemented in smash::DecayBranch, and smash::CollisionBranch.
|
pure virtual |
Implemented in smash::DecayBranch, and smash::CollisionBranch.
| ParticleList smash::ProcessBranch::particle_list | ( | ) | const |
Definition at line 26 of file processbranch.cc.
|
inline |
| double smash::ProcessBranch::threshold | ( | ) | const |
Definition at line 35 of file processbranch.cc.
|
pure virtual |
Implemented in smash::DecayBranch, and smash::CollisionBranch.
|
related |
| [in] | l | The list of all the processes that would be summed. |
l. Definition at line 202 of file processbranch.h.
|
protected |
Weight of the branch, typically a cross section or a branching ratio.
Definition at line 183 of file processbranch.h.
|
mutableprotected |
Threshold of the branch.
Definition at line 185 of file processbranch.h.