A singleton holding random number generator classes. All random number generation in GENIE should take place through this class. Ensures that the random number generator seed is set consistently to all GENIE modules and that all modules use the preferred rndm number generator. More...
#include <RandomGen.h>
Classes | |
struct | Cleaner |
Public Member Functions | |
TRandom3 & | RndKine (void) const |
rnd number generator used by kinematics generators More... | |
TRandom3 & | RndHadro (void) const |
rnd number generator used by hadronization models More... | |
TRandom3 & | RndDec (void) const |
rnd number generator used by decay models More... | |
TRandom3 & | RndFsi (void) const |
rnd number generator used by intranuclear cascade monte carlos More... | |
TRandom3 & | RndLep (void) const |
rnd number generator used by final state primary lepton generators More... | |
TRandom3 & | RndISel (void) const |
rnd number generator used by interaction selectors More... | |
TRandom3 & | RndGeom (void) const |
rnd number generator used by geometry drivers More... | |
TRandom3 & | RndFlux (void) const |
rnd number generator used by flux drivers More... | |
TRandom3 & | RndEvg (void) const |
rnd number generator used by the event generation drivers More... | |
TRandom3 & | RndNum (void) const |
rnd number generator used by MC integrators & other numerical methods More... | |
TRandom3 & | RndGen (void) const |
rnd number generator for generic usage More... | |
long int | GetSeed (void) const |
void | SetSeed (long int seed) |
Static Public Member Functions | |
static RandomGen * | Instance () |
Access instance. More... | |
Private Member Functions | |
RandomGen () | |
RandomGen (const RandomGen &rgen) | |
virtual | ~RandomGen () |
void | InitRandomGenerators (long int seed) |
Private Attributes | |
TRandom3 * | fRandom3 |
Mersenne Twistor. More... | |
long int | fCurrSeed |
random number generator seed number More... | |
bool | fInitalized |
done initializing singleton? More... | |
Static Private Attributes | |
static RandomGen * | fInstance = 0 |
Friends | |
struct | Cleaner |
A singleton holding random number generator classes. All random number generation in GENIE should take place through this class. Ensures that the random number generator seed is set consistently to all GENIE modules and that all modules use the preferred rndm number generator.
September 22, 2004
Copyright (c) 2003-2020, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org
Definition at line 29 of file RandomGen.h.
|
private |
Definition at line 27 of file RandomGen.cxx.
|
private |
|
privatevirtual |
Definition at line 65 of file RandomGen.cxx.
|
inline |
Definition at line 82 of file RandomGen.h.
|
private |
Definition at line 126 of file RandomGen.cxx.
|
static |
|
inline |
|
inline |
rnd number generator used by the event generation drivers
Definition at line 74 of file RandomGen.h.
|
inline |
|
inline |
rnd number generator used by intranuclear cascade monte carlos
Definition at line 59 of file RandomGen.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
rnd number generator used by kinematics generators
Random number generators used by various GENIE modules. (See note at http://root.cern.ch/root/html//TRandom.html on using several TRandom objects each with each own "independent" run sequence). At this point, since the actual random number generator periodicity is very high, all the generators are in fact one! However, the option to use many generators is reserved. Currently, the preferred generator is the "Mersenne Twister" with a periodicity of 10**6000 See: http://root.cern.ch/root/html/TRandom3.html
Definition at line 50 of file RandomGen.h.
|
inline |
rnd number generator used by final state primary lepton generators
Definition at line 62 of file RandomGen.h.
|
inline |
rnd number generator used by MC integrators & other numerical methods
Definition at line 77 of file RandomGen.h.
void genie::RandomGen::SetSeed | ( | long int | seed | ) |
Definition at line 82 of file RandomGen.cxx.
|
friend |
Definition at line 109 of file RandomGen.h.
|
private |
random number generator seed number
Definition at line 94 of file RandomGen.h.
|
private |
done initializing singleton?
Definition at line 95 of file RandomGen.h.
|
staticprivate |
Definition at line 91 of file RandomGen.h.
|
private |
Mersenne Twistor.
Definition at line 93 of file RandomGen.h.