CRandom Class Reference

Random numbers for a number of distributions. More...

#include <CRandom.h>

List of all members.

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


Detailed Description

Random numbers for a number of distributions.

!

Random number generation using the C++ random number function


Member Function Documentation

float CRandom::BreitWigner ( float  mean,
float  width 
) [static]

Returns a random number with a BreitWigner distribution

Parameters:
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

Parameters:
width is the total decay width in MeV

float CRandom::Gaus ( float  mean,
float  sigma 
) [static]

Returns random number with Gaussian distribution

Parameters:
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


The documentation for this class was generated from the following files:
Generated on Mon Aug 6 14:13:09 2012 by  doxygen 1.4.7