Version: SMASH-1.5
smash::DecayBranch Class Reference

#include <processbranch.h>

DecayBranch is a derivative of ProcessBranch, which is used to represent decay channels.

It contains additional information like the angular momentum.

Definition at line 303 of file processbranch.h.

Inheritance diagram for smash::DecayBranch:
[legend]
Collaboration diagram for smash::DecayBranch:
[legend]

Public Member Functions

 DecayBranch (const DecayType &t, double w)
 Construct decay branch. More...
 
 DecayBranch (DecayBranch &&rhs)
 The move constructor efficiently moves the particle-type list member. More...
 
int angular_momentum () const
 
const ParticleTypePtrList & particle_types () const override
 
unsigned int particle_number () const override
 
const DecayTypetype () const
 
ProcessType get_type () const override
 
- Public Member Functions inherited from smash::ProcessBranch
 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
 

Private Attributes

const DecayTypetype_
 Decay type (including final-state particles and angular momentum) More...
 

Additional Inherited Members

- Protected Attributes inherited from smash::ProcessBranch
double branch_weight_
 Weight of the branch, typically a cross section or a branching ratio. More...
 
double threshold_ = -1.
 Threshold of the branch. More...
 

Constructor & Destructor Documentation

◆ DecayBranch() [1/2]

smash::DecayBranch::DecayBranch ( const DecayType t,
double  w 
)
inline

Construct decay branch.

Parameters
[in]tDecayType of branch.
[in]wWeight of created branch.

Definition at line 310 of file processbranch.h.

310 : ProcessBranch(w), type_(t) {}
ProcessBranch()
Create a ProcessBranch without final states and weight.
const DecayType & type_
Decay type (including final-state particles and angular momentum)

◆ DecayBranch() [2/2]

smash::DecayBranch::DecayBranch ( DecayBranch &&  rhs)
inline

The move constructor efficiently moves the particle-type list member.

Definition at line 312 of file processbranch.h.

313  : ProcessBranch(rhs.branch_weight_), type_(rhs.type_) {}
ProcessBranch()
Create a ProcessBranch without final states and weight.
const DecayType & type_
Decay type (including final-state particles and angular momentum)

Member Function Documentation

◆ angular_momentum()

int smash::DecayBranch::angular_momentum ( ) const
inline
Returns
the quantized angular momentum of this branch.

Definition at line 315 of file processbranch.h.

315 { return type_.angular_momentum(); }
int angular_momentum() const
Definition: decaytype.h:61
const DecayType & type_
Decay type (including final-state particles and angular momentum)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ particle_types()

const ParticleTypePtrList& smash::DecayBranch::particle_types ( ) const
inlineoverridevirtual
Returns
the particle types associated with this branch.

Implements smash::ProcessBranch.

Definition at line 316 of file processbranch.h.

316  {
317  return type_.particle_types();
318  }
const ParticleTypePtrList & particle_types() const
Definition: decaytype.h:59
const DecayType & type_
Decay type (including final-state particles and angular momentum)
Here is the call graph for this function:

◆ particle_number()

unsigned int smash::DecayBranch::particle_number ( ) const
inlineoverridevirtual
Returns
the number of particles in the final state.

Implements smash::ProcessBranch.

Definition at line 319 of file processbranch.h.

319  {
320  return type_.particle_number();
321  }
virtual unsigned int particle_number() const =0
const DecayType & type_
Decay type (including final-state particles and angular momentum)
Here is the call graph for this function:

◆ type()

const DecayType& smash::DecayBranch::type ( ) const
inline
Returns
the DecayType of the branch.

Definition at line 323 of file processbranch.h.

323 { return type_; }
const DecayType & type_
Decay type (including final-state particles and angular momentum)
Here is the caller graph for this function:

◆ get_type()

ProcessType smash::DecayBranch::get_type ( ) const
inlineoverridevirtual
Returns
"Decay" to the process type.

Implements smash::ProcessBranch.

Definition at line 325 of file processbranch.h.

325 { return ProcessType::Decay; }
resonance decays
Here is the caller graph for this function:

Member Data Documentation

◆ type_

const DecayType& smash::DecayBranch::type_
private

Decay type (including final-state particles and angular momentum)

Definition at line 329 of file processbranch.h.


The documentation for this class was generated from the following file: