Garfield++ v2r0
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 "RandomEngineRoot.hh"
#include "FundamentalConstants.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.
 
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.