Thermal-FIST  1.3
Package for hadron resonance gas model applications
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
thermalfist::RandomGenerators::ThermalBreitWignerGenerator Class Reference

Class for generating mass of resonance in accordance with the constant width Breit-Wigner distribution multiplied by the thermal density. More...

#include <RandomGenerators.h>

Inheritance diagram for thermalfist::RandomGenerators::ThermalBreitWignerGenerator:
thermalfist::RandomGenerators::ThermalEnergyBreitWignerGenerator

Public Member Functions

 ThermalBreitWignerGenerator ()
 
 ThermalBreitWignerGenerator (ThermalParticle *part, double T, double Mu)
 Construct a new ThermalBreitWignerGenerator object. More...
 
virtual ~ThermalBreitWignerGenerator ()
 
void SetParameters (ThermalParticle *part, double T, double Mu)
 Sets the parameters of the distribution. More...
 
double GetRandom () const
 Samples the mass. More...
 

Protected Member Functions

virtual void FixParameters ()
 Computes some auxiliary stuff needed for sampling. More...
 
virtual double f (double M) const
 Unnormalized resonance mass probability density. More...
 

Protected Attributes

ThermalParticlem_part
 
double m_T
 
double m_Mu
 
double m_Xmin
 
double m_Xmax
 
double m_Max
 

Detailed Description

Class for generating mass of resonance in accordance with the constant width Breit-Wigner distribution multiplied by the thermal density.

Sample the mass from the distribution

\[ \rho(M) \sim \rho_{\rm BW} (M) \, n_{\rm th}^{\rm id} (T,\mu;M)~. \]

Definition at line 411 of file RandomGenerators.h.

Constructor & Destructor Documentation

thermalfist::RandomGenerators::ThermalBreitWignerGenerator::ThermalBreitWignerGenerator ( )
inline

Definition at line 414 of file RandomGenerators.h.

thermalfist::RandomGenerators::ThermalBreitWignerGenerator::ThermalBreitWignerGenerator ( ThermalParticle part,
double  T,
double  Mu 
)
inline

Construct a new ThermalBreitWignerGenerator object.

Parameters
partA pointer to the ThermalParticle object representing the species sampled.
TTempeature (in GeV)
MuChemical potential of the sampled particle (in GeV)

Definition at line 424 of file RandomGenerators.h.

virtual thermalfist::RandomGenerators::ThermalBreitWignerGenerator::~ThermalBreitWignerGenerator ( )
inlinevirtual

Definition at line 426 of file RandomGenerators.h.

Member Function Documentation

double thermalfist::RandomGenerators::ThermalBreitWignerGenerator::f ( double  M) const
protectedvirtual

Unnormalized resonance mass probability density.

Reimplemented in thermalfist::RandomGenerators::ThermalEnergyBreitWignerGenerator.

Definition at line 443 of file RandomGenerators.cpp.

void thermalfist::RandomGenerators::ThermalBreitWignerGenerator::FixParameters ( )
protectedvirtual

Computes some auxiliary stuff needed for sampling.

Reimplemented in thermalfist::RandomGenerators::ThermalEnergyBreitWignerGenerator.

Definition at line 420 of file RandomGenerators.cpp.

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

Samples the mass.

Returns
double The sampled mass (in GeV)

Definition at line 448 of file RandomGenerators.cpp.

void thermalfist::RandomGenerators::ThermalBreitWignerGenerator::SetParameters ( ThermalParticle part,
double  T,
double  Mu 
)

Sets the parameters of the distribution.

Parameters
partA pointer to the ThermalParticle object representing the species sampled.
TTempeature (in GeV)
MuChemical potential of the sampled particle (in GeV)

Definition at line 412 of file RandomGenerators.cpp.

Member Data Documentation

double thermalfist::RandomGenerators::ThermalBreitWignerGenerator::m_Max
protected

Definition at line 455 of file RandomGenerators.h.

double thermalfist::RandomGenerators::ThermalBreitWignerGenerator::m_Mu
protected

Definition at line 453 of file RandomGenerators.h.

ThermalParticle* thermalfist::RandomGenerators::ThermalBreitWignerGenerator::m_part
protected

Definition at line 452 of file RandomGenerators.h.

double thermalfist::RandomGenerators::ThermalBreitWignerGenerator::m_T
protected

Definition at line 453 of file RandomGenerators.h.

double thermalfist::RandomGenerators::ThermalBreitWignerGenerator::m_Xmax
protected

Definition at line 454 of file RandomGenerators.h.

double thermalfist::RandomGenerators::ThermalBreitWignerGenerator::m_Xmin
protected

Definition at line 454 of file RandomGenerators.h.


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