#include <CRandom.h>
Static Public Member Functions | |
static double | Rndm () |
static float | Gaus (float mean, float sigma) |
static float | expDecayTime (float width) |
static float | BreitWigner (float mean, float width) |
Static Protected Attributes | |
static bool | one = 1 |
used for Gaus | |
static float | angle = 0. |
used for Gaus | |
static float | x = 0. |
parameter | |
static float const | pi = acos(-1.) |
3.14159 |
!
Random number generation using the C++ random number function
float CRandom::BreitWigner | ( | float | mean, | |
float | width | |||
) | [static] |
Returns a random number with a BreitWigner distribution
mean | is the mean value of the distribution | |
width | is the Full Width Half max of the distribution |
float CRandom::expDecayTime | ( | float | width | ) | [static] |
returns a decay time in zs sampled from a exponential distribution
width | is the total decay width in MeV |
float CRandom::Gaus | ( | float | mean, | |
float | sigma | |||
) | [static] |
Returns random number with Gaussian distribution
mean | is the mean value of the Gaussian distribution | |
sigma | is the standard deviation of the distribution |
double CRandom::Rndm | ( | ) | [static] |
Returns a random number with uniform distribution between 0 and 1