laura is hosted by Hepforge, IPPP Durham
Laura++  3.6.0
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

◆ randomFun()

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 33 of file LauRandom.cc.

◆ setSeed()

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 58 of file LauRandom.cc.

◆ zeroSeedRandom()

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 45 of file LauRandom.cc.