#include <processbranch.h>
CollisionBranch is a derivative of ProcessBranch, which is used to represent particular final-state channels in a collision.
Definition at line 208 of file processbranch.h.
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 215 of file processbranch.h.
ProcessBranch()
Create a ProcessBranch without final states and weight.
ProcessType process_type_
Process type are used to distinguish different types of processes, e.g.
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 223 of file processbranch.h.
ProcessBranch()
Create a ProcessBranch without final states and weight.
ProcessType process_type_
Process type are used to distinguish different types of processes, e.g.
ParticleTypePtrList particle_types_
List of particles appearing in this process outcome.
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 235 of file processbranch.h.
ProcessBranch()
Create a ProcessBranch without final states and weight.
ProcessType process_type_
Process type are used to distinguish different types of processes, e.g.
ParticleTypePtrList particle_types_
List of particles appearing in this process outcome.
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 248 of file processbranch.h.
ProcessBranch()
Create a ProcessBranch without final states and weight.
ProcessType process_type_
Process type are used to distinguish different types of processes, e.g.
ParticleTypePtrList particle_types_
List of particles appearing in this process outcome.
The move constructor efficiently moves the particle-type list member.
Definition at line 253 of file processbranch.h.
ProcessBranch()
Create a ProcessBranch without final states and weight.
ProcessType process_type_
Process type are used to distinguish different types of processes, e.g.
ParticleTypePtrList particle_types_
List of particles appearing in this process outcome.
const ParticleTypePtrList& smash::CollisionBranch::particle_types |
( |
| ) |
const |
|
inlineoverridevirtual |
- Returns
- the particle types associated with this branch.
Implements smash::ProcessBranch.
Definition at line 257 of file processbranch.h.
ParticleTypePtrList particle_types_
List of particles appearing in this process outcome.
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 265 of file processbranch.h.
ProcessType process_type_
Process type are used to distinguish different types of processes, e.g.
- Returns
- type of the process
Implements smash::ProcessBranch.
Definition at line 267 of file processbranch.h.
ProcessType process_type_
Process type are used to distinguish different types of processes, e.g.
unsigned int smash::CollisionBranch::particle_number |
( |
| ) |
const |
|
inlineoverridevirtual |
- Returns
- number of particles involved in the process
Implements smash::ProcessBranch.
Definition at line 269 of file processbranch.h.
ParticleTypePtrList particle_types_
List of particles appearing in this process outcome.
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 281 of file processbranch.h.
Process type are used to distinguish different types of processes, e.g.
string formation, resonance formation, elastic scattering and so on.
Definition at line 286 of file processbranch.h.
The documentation for this class was generated from the following file: