Thermal-FIST
1.3
Package for hadron resonance gas model applications
|
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. More... | |
double | GetP (double mass=-1.) const |
Samples the momentum of a particle. More... | |
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 120 of file RandomGenerators.h.
|
inline |
Construct a new ThermalMomentumGenerator object.
mass | Particle mass (in GeV) |
statistics | Statistics (0: Maxwell-Boltzmann, +1: Fermi-Dirac, -1: Bose-Einstein) |
T | The kinetic temperature (in GeV) |
mu | The chemical potential |
Definition at line 131 of file RandomGenerators.h.
double thermalfist::RandomGenerators::ThermalMomentumGenerator::GetP | ( | double | mass = -1. | ) | const |
Samples the momentum of a particle.
mass | Particle mass used for sampling. If a negative value is provided, the default (e.g. pole) mass is used. |
Definition at line 249 of file RandomGenerators.cpp.