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

Class for generating the absolute values of the momentum of a particle in its local rest frame. More...

#include <RandomGenerators.h>

Public Member Functions

 ThermalMomentumGenerator (double mass=0.938, int statistics=0, double T=0.100, double mu=0.)
 Construct a new ThermalMomentumGenerator object.
 
double GetP (double mass=-1.) const
 Samples the momentum of a particle.
 

Detailed Description

Class for generating the absolute values of the momentum of a particle in its local rest frame.

Implementation for Maxwell-Boltzmann, Fermi-Dirac or Bose-Einstein distribution

Definition at line 126 of file RandomGenerators.h.

Constructor & Destructor Documentation

◆ ThermalMomentumGenerator()

thermalfist::RandomGenerators::ThermalMomentumGenerator::ThermalMomentumGenerator ( double mass = 0.938,
int statistics = 0,
double T = 0.100,
double mu = 0. )
inline

Construct a new ThermalMomentumGenerator object.

Parameters
massParticle mass (in GeV)
statisticsStatistics (0: Maxwell-Boltzmann, +1: Fermi-Dirac, -1: Bose-Einstein)
TThe kinetic temperature (in GeV)
muThe chemical potential

Definition at line 137 of file RandomGenerators.h.

Member Function Documentation

◆ GetP()

double thermalfist::RandomGenerators::ThermalMomentumGenerator::GetP ( double mass = -1.) const

Samples the momentum of a particle.

Parameters
massParticle mass used for sampling. If a negative value is provided, the default (e.g. pole) mass is used.

Definition at line 258 of file RandomGenerators.cpp.


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