Thermal-FIST  1.3
Package for hadron resonance gas model applications
Public Member Functions | List of all members
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. More...
 
 ~BreitWignerGenerator ()
 
void SetParameters (double M, double gamma, double mthr)
 Set the Breit-Wigner spectral function parameters. More...
 
double GetRandom () const
 Samples the resonance mass from a relativistic Breit-Wigner distribution with a constant width. More...
 

Detailed Description

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

Definition at line 347 of file RandomGenerators.h.

Constructor & Destructor Documentation

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

Definition at line 351 of file RandomGenerators.h.

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 362 of file RandomGenerators.h.

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

Definition at line 364 of file RandomGenerators.h.

Member Function Documentation

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 394 of file RandomGenerators.cpp.

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 405 of file RandomGenerators.cpp.


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