#include <decaytype.h>
TwoBodyDecay represents a decay type with two final-state particles. 
Definition at line 92 of file decaytype.h.
 
 | 
| virtual double  | rho (double mass) const | 
|   | This is a virtual helper method which is used to write the width as Gamma(m) = Gamma_0 * rho(m) / rho(m_0).  More...
  | 
|   | 
◆ TwoBodyDecay()
      
        
          | smash::TwoBodyDecay::TwoBodyDecay  | 
          ( | 
          ParticleTypePtrList  | 
          part_types,  | 
        
        
           | 
           | 
          int  | 
          l  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Construct a TwoBodyDecay. 
- Parameters
 - 
  
    | [in] | part_types | Final-state particles of the decay.  | 
    | [in] | l | Angular momentum of the decay.  | 
  
   
- Returns
 - The constructed object. 
 
Definition at line 52 of file decaytype.cc.
   54   if (part_types.size() != 2) {
 
   55     throw std::runtime_error(
 
   56         "Wrong number of particles in TwoBodyDecay constructor: " +
 
   57         std::to_string(part_types.size()));
 
DecayType(ParticleTypePtrList part_types, int l)
Construct a DecayType.
 
 
 
 
◆ particle_number()
  
  
      
        
          | unsigned int smash::TwoBodyDecay::particle_number  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
overridevirtual   | 
  
 
 
◆ has_particles()
  
  
      
        
          | bool smash::TwoBodyDecay::has_particles  | 
          ( | 
          ParticleTypePtrList  | 
          list | ) | 
           const | 
         
       
   | 
  
overridevirtual   | 
  
 
- Returns
 - if the final state consists of the given particle list.
 
- Parameters
 - 
  
    | [in] | list | Final state particle types to be checked.  | 
  
   
Implements smash::DecayType.
Definition at line 63 of file decaytype.cc.
ParticleTypePtrList particle_types_
final-state particles of the decay
 
unsigned int particle_number() const override
 
 
 
 
◆ threshold()
  
  
      
        
          | double smash::TwoBodyDecay::threshold  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
- Returns
 - The kinematic energy threshold of the decay in GeV. 
 
Definition at line 105 of file decaytype.h.
 
 
◆ rho()
  
  
      
        
          | virtual double smash::TwoBodyDecay::rho  | 
          ( | 
          double  | 
          mass | ) | 
           const | 
         
       
   | 
  
inlineprotectedvirtual   | 
  
 
This is a virtual helper method which is used to write the width as Gamma(m) = Gamma_0 * rho(m) / rho(m_0). 
This ensures that the width is properly normalized at the pole mass to Gamma(m_0) = Gamma_0. By default rho simply equals one, which corresponds to a constant width.
- Parameters
 - 
  
    | [in] | mass | Resonance mass of the decay.  | 
  
   
- Returns
 - Width of the decay at the given 
mass.  
Reimplemented in smash::TwoBodyDecayStable, smash::TwoBodyDecaySemistable, and smash::TwoBodyDecayUnstable.
Definition at line 120 of file decaytype.h.
#define SMASH_UNUSED(x)
Mark as unused, silencing compiler warnings.
 
 
 
 
The documentation for this class was generated from the following files: