Thermal-FIST  1.3
Package for hadron resonance gas model applications
Public Member Functions | List of all members
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. More...
 
double GetP (double mass=-1.) const
 Samples the momentum of a particle. More...
 

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

Constructor & Destructor Documentation

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

Member Function Documentation

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


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