Class GammaTable

Class Documentation

class GammaTable

Particle distribution functions for relativistic particles.

This class stores a pair of vectors containing the cumulative distribution function (CDF) and the corresponding particle gamma values.

Public Functions

GammaTable()

Base constructor for the GammaTable class.

GammaTable(std::vector<double> cdf, std::vector<double> gamma)

Constructor for given CDF and gamma values vectors.

Parameters:
  • cdf – CDF values

  • gamma – Gamma values

double GetGamma(const double cdf) const

Function to get the gamma value from a given random number based on the CDF table.

Parameters:

cdf – Random number between 0 and 1

Returns:

double Gamma value