Thermal-FIST 1.5
Package for hadron resonance gas model applications
Loading...
Searching...
No Matches
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.
 
virtual ~ThermalBreitWignerGenerator ()
 
void SetParameters (ThermalParticle *part, double T, double Mu)
 Sets the parameters of the distribution.
 
double GetRandom () const
 Samples the mass.
 

Protected Member Functions

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

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

Constructor & Destructor Documentation

◆ ThermalBreitWignerGenerator() [1/2]

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

Definition at line 423 of file RandomGenerators.h.

◆ ThermalBreitWignerGenerator() [2/2]

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

◆ ~ThermalBreitWignerGenerator()

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

Definition at line 435 of file RandomGenerators.h.

Member Function Documentation

◆ f()

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

Unnormalized resonance mass probability density.

Reimplemented in thermalfist::RandomGenerators::ThermalEnergyBreitWignerGenerator.

Definition at line 490 of file RandomGenerators.cpp.

◆ FixParameters()

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

Computes some auxiliary stuff needed for sampling.

Reimplemented in thermalfist::RandomGenerators::ThermalEnergyBreitWignerGenerator.

Definition at line 467 of file RandomGenerators.cpp.

◆ GetRandom()

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

Samples the mass.

Returns
double The sampled mass (in GeV)

Definition at line 495 of file RandomGenerators.cpp.

◆ SetParameters()

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

Member Data Documentation

◆ m_Max

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

Definition at line 464 of file RandomGenerators.h.

◆ m_Mu

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

Definition at line 462 of file RandomGenerators.h.

◆ m_part

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

Definition at line 461 of file RandomGenerators.h.

◆ m_T

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

Definition at line 462 of file RandomGenerators.h.

◆ m_Xmax

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

Definition at line 463 of file RandomGenerators.h.

◆ m_Xmin

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

Definition at line 463 of file RandomGenerators.h.


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