Thermal-FIST 1.6
Package for hadron resonance gas model applications
Loading...
Searching...
No Matches
thermalfist::RandomGenerators::BreitWignerGenerator Class Reference

Class for generating mass of resonance in accordance with the relativistic Breit-Wigner distribution. More...

#include <RandomGenerators.h>

Public Member Functions

 BreitWignerGenerator ()
 
 BreitWignerGenerator (double M, double gamma, double mthr)
 Construct a new BreitWignerGenerator object.
 
 ~BreitWignerGenerator ()
 
void SetParameters (double M, double gamma, double mthr)
 Set the Breit-Wigner spectral function parameters.
 
double GetRandom () const
 Samples the resonance mass from a relativistic Breit-Wigner distribution with a constant width.
 

Detailed Description

Class for generating mass of resonance in accordance with the relativistic Breit-Wigner distribution.

Definition at line 357 of file RandomGenerators.h.

Constructor & Destructor Documentation

◆ BreitWignerGenerator() [1/2]

thermalfist::RandomGenerators::BreitWignerGenerator::BreitWignerGenerator ( )
inline

Definition at line 361 of file RandomGenerators.h.

◆ BreitWignerGenerator() [2/2]

thermalfist::RandomGenerators::BreitWignerGenerator::BreitWignerGenerator ( double M,
double gamma,
double mthr )
inline

Construct a new BreitWignerGenerator object.

Currently not used.

Parameters
MPole mass of the resonance (in GeV)
gammaWidth of the resonance (in GeV)
mthrThe threshold mass of the resonance (in GeV)

Definition at line 372 of file RandomGenerators.h.

◆ ~BreitWignerGenerator()

thermalfist::RandomGenerators::BreitWignerGenerator::~BreitWignerGenerator ( )
inline

Definition at line 374 of file RandomGenerators.h.

Member Function Documentation

◆ GetRandom()

double thermalfist::RandomGenerators::BreitWignerGenerator::GetRandom ( ) const

Samples the resonance mass from a relativistic Breit-Wigner distribution with a constant width.

Returns
The sampled mass (in GeV)

Definition at line 443 of file RandomGenerators.cpp.

◆ SetParameters()

void thermalfist::RandomGenerators::BreitWignerGenerator::SetParameters ( double M,
double gamma,
double mthr )

Set the Breit-Wigner spectral function parameters.

Parameters
MPole mass of the resonance (in GeV)
gammaWidth of the resonance (in GeV)
mthrThe threshold mass of the resonance (in GeV)

Definition at line 454 of file RandomGenerators.cpp.


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