#include <processbranch.h>
CollisionBranch is a derivative of ProcessBranch, which is used to represent particular final-state channels in a collision.
Definition at line 209 of file processbranch.h.
|
| CollisionBranch (double w, ProcessType p_type) |
| Construct collision branch with empty final state. More...
|
|
| CollisionBranch (const ParticleType &type, double w, ProcessType p_type) |
| Construct collision branch with 1 particle in final state. More...
|
|
| CollisionBranch (const ParticleType &type_a, const ParticleType &type_b, double w, ProcessType p_type) |
| Construct collision branch with 2 particles in final state. More...
|
|
| CollisionBranch (const ParticleType &type_a, const ParticleType &type_b, const ParticleType &type_c, double w, ProcessType p_type) |
| Construct collision branch with 3 particles in final state. More...
|
|
| CollisionBranch (ParticleTypePtrList new_types, double w, ProcessType p_type) |
| Construct collision branch with a list of particles in final state. More...
|
|
| CollisionBranch (CollisionBranch &&rhs) |
| The move constructor efficiently moves the particle-type list member. More...
|
|
const ParticleTypePtrList & | particle_types () const override |
|
void | set_type (ProcessType p_type) |
| Set the process type. More...
|
|
ProcessType | get_type () const override |
|
unsigned int | particle_number () const override |
|
| 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...
|
|
ParticleList | particle_list () const |
|
double | weight () const |
|
double | threshold () const |
|
◆ CollisionBranch() [1/6]
smash::CollisionBranch::CollisionBranch |
( |
double |
w, |
|
|
ProcessType |
p_type |
|
) |
| |
|
inline |
Construct collision branch with empty final state.
- Parameters
-
[in] | w | Weight of created branch. |
[in] | p_type | Process type of created branch. |
Definition at line 216 of file processbranch.h.
◆ CollisionBranch() [2/6]
Construct collision branch with 1 particle in final state.
- Parameters
-
[in] | type | Particle type of final state particle. |
[in] | w | Weight of created branch. |
[in] | p_type | Process type of created branch. |
Definition at line 224 of file processbranch.h.
◆ CollisionBranch() [3/6]
Construct collision branch with 2 particles in final state.
- Parameters
-
[in] | type_a | Particle types of one final state particle. |
[in] | type_b | Particle types of other final state particle. |
[in] | w | Weight of created branch. |
[in] | p_type | Process type of created branch. |
Definition at line 236 of file processbranch.h.
◆ CollisionBranch() [4/6]
Construct collision branch with 3 particles in final state.
- Parameters
-
[in] | type_a | Particle type of first final state particle. |
[in] | type_b | Particle type of second final state particle. |
[in] | type_c | Particle type of third final state particle. |
[in] | w | Weight of created branch. |
[in] | p_type | Process type of created branch. |
Definition at line 252 of file processbranch.h.
◆ CollisionBranch() [5/6]
smash::CollisionBranch::CollisionBranch |
( |
ParticleTypePtrList |
new_types, |
|
|
double |
w, |
|
|
ProcessType |
p_type |
|
) |
| |
|
inline |
Construct collision branch with a list of particles in final state.
- Parameters
-
[in] | new_types | List of particle types of final state particles. |
[in] | w | Weight of created branch. |
[in] | p_type | Process type of created branch. |
Definition at line 267 of file processbranch.h.
◆ CollisionBranch() [6/6]
The move constructor efficiently moves the particle-type list member.
Definition at line 272 of file processbranch.h.
◆ particle_types()
const ParticleTypePtrList& smash::CollisionBranch::particle_types |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ set_type()
void smash::CollisionBranch::set_type |
( |
ProcessType |
p_type | ) |
|
|
inline |
Set the process type.
- Parameters
-
[in] | p_type | The new value of the process type |
Definition at line 284 of file processbranch.h.
◆ get_type()
◆ particle_number()
unsigned int smash::CollisionBranch::particle_number |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ particle_types_
ParticleTypePtrList smash::CollisionBranch::particle_types_ |
|
private |
List of particles appearing in this process outcome.
- Note
- This currently uses a std::vector and thus works for any number of particles. But this number is bounded (4?) and a std::array may therefore be more efficient.
Definition at line 300 of file processbranch.h.
◆ process_type_
Process type are used to distinguish different types of processes, e.g.
string formation, resonance formation, elastic scattering and so on.
Definition at line 305 of file processbranch.h.
The documentation for this class was generated from the following file: