Pythia7::Shower::Rndm Class Reference

The random number generator class used internally in the Pythia7 Shower routines. More...

#include <Basics.h>

List of all members.

Public Member Functions

 Rndm ()
 Default constructor.
 Rndm (long inseed)
 Standard constructor giving a seed.

Static Public Member Functions

static void init (long=0)
 Initialize the random generator optionally giving a seed.
static double flat ()
 Return a number uniformly distributed between 0 and 1.
static double exp ()
 Return a random number distributed according to $\exp(x)$.
static double xexp ()
 Return a random number distributed according to $x\exp(x)$.
static double gauss ()
 Return a random number distributed according to $\exp(-x^2/2)$.
static long pick (const vector< double > &)
 Return an index of the given vector according to the relative (positive) probabilities therein.

Static Private Attributes

static bool initrndm
 Has the generator been initialized?
static bool savgauss
 Has a gaussian number been saved?
static long i97
 Internal index.
static long j97
 Internal index.
static double u [97]
 Internal variable.
static double c
 Internal variable.
static double cd
 Internal variable.
static double cm
 Internal variable.
static double save
 Internal variable.


Detailed Description

The random number generator class used internally in the Pythia7 Shower routines.

This should be replaced with the ThePEG RandomGenerator. Uses only static methods.

Definition at line 78 of file Basics.h.


Constructor & Destructor Documentation

Pythia7::Shower::Rndm::Rndm (  )  [inline]

Default constructor.

Definition at line 83 of file Basics.h.

Pythia7::Shower::Rndm::Rndm ( long  inseed  )  [inline]

Standard constructor giving a seed.

Note that although this looks like a new Rndm object is constructed with a separate random number sequence, the underlying static generator is reinitialized.

Definition at line 90 of file Basics.h.

References init().


The documentation for this class was generated from the following file:

Generated on Thu Apr 29 12:45:35 2010 for Pythia7 by  doxygen 1.5.5