laura is hosted by Hepforge, IPPP Durham
Laura++  v3r0p1
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauRandom Namespace Reference

Namespace for holding the random number generator functions. More...

Functions

TRandom * randomFun ()
 Access the singleton random number generator with a particular seed. More...
 
TRandom * zeroSeedRandom ()
 Access the singleton random number generator with seed set from machine clock time (within +-1 sec). More...
 
void setSeed (UInt_t seed)
 Set seed of random-number generator to a given value. More...
 

Detailed Description

Namespace for holding the random number generator functions.

Holds one generator with a given (changable) seed and one where the seed is taken from the machine clock.

Function Documentation

TRandom * LauRandom::randomFun ( )

Access the singleton random number generator with a particular seed.

The seed value can be set using LauRandom::setSeed

Returns
pointer to the singleton random number generator

Definition at line 20 of file LauRandom.cc.

void LauRandom::setSeed ( UInt_t  seed)

Set seed of random-number generator to a given value.

Parameters
[in]seedthe seed to be used in the generation

Definition at line 41 of file LauRandom.cc.

TRandom * LauRandom::zeroSeedRandom ( )

Access the singleton random number generator with seed set from machine clock time (within +-1 sec).

Returns
pointer to the singleton random number generator

Definition at line 30 of file LauRandom.cc.