#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 134 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 137 of file processbranch.h.
      
  | 
  inlineexplicit | 
Create a ProcessBranch with with weight but without final states.
| [in] | w | Weight of new branch. | 
Definition at line 143 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 193 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 | 
Definition at line 198 of file processbranch.h.
| 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 207 of file processbranch.h.
      
  | 
  protected | 
Weight of the branch, typically a cross section or a branching ratio.
Definition at line 188 of file processbranch.h.
      
  | 
  mutableprotected | 
Threshold of the branch.
Definition at line 190 of file processbranch.h.