Garfield++ 3.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
Random.hh File Reference
#include <cmath>
#include "FundamentalConstants.hh"
#include "RandomEngineRoot.hh"

Go to the source code of this file.

Namespaces

namespace  Garfield
 

Functions

double Garfield::RndmUniform ()
 Draw a random number uniformly distributed in the range [0, 1).
 
double Garfield::RndmUniformPos ()
 Draw a random number uniformly distributed in the range (0, 1).
 
double Garfield::RndmGaussian ()
 Draw a Gaussian random variate with mean zero and standard deviation one.
 
double Garfield::RndmGaussian (const double mu, const double sigma)
 Draw a Gaussian random variate with mean mu and standard deviation sigma.
 
double Garfield::RndmLorentzian (const double mu, const double gamma)
 
double Garfield::RndmVoigt (const double mu, const double sigma, const double gamma)
 
double Garfield::RndmPolya (const double theta)
 Draw a Polya distributed random number.
 
double Garfield::RndmLandau ()
 Draw a random number from a Landau distribution.
 
double Garfield::RndmVavilov (const double rkappa, const double beta2)
 Draw a random number from a Vavilov distribution.
 
int Garfield::RndmPoisson (const double mean)
 Draw a random number from a Poisson distribution.
 
double Garfield::RndmHeedWF (const double w, const double f)
 
void Garfield::RndmDirection (double &dx, double &dy, double &dz, const double length=1.)
 Draw a random (isotropic) direction vector.
 

Variables

RandomEngineRoot Garfield::randomEngine
 Random number generator.