Belle II Software development
|
The class for handling the random number generation. More...
#include <RandomNumbers.h>
Static Public Member Functions | |
static void | initialize () |
Initialize the random number generator with a unique random seed;. | |
static void | initialize (const std::string &seed) |
Initialize the random number generator. | |
static bool | isInitialized () |
Truth that the random number generator has been initialized. | |
static void | initializeBeginRun () |
Initialize run independent random generator for begin run. | |
static void | initializeEndRun () |
Initialize run independent random generator for end run. | |
static void | initializeEvent (bool force=false) |
Initialize event information. | |
static void | useEventDependent () |
Set Event dependent Random Generator as current one. | |
static RandomGenerator & | getEventRandomGenerator () |
return reference to the event dependent random generator | |
static void | barrier () |
Increase random barrier. | |
static void | setSeed (const std::string &seed) |
Sets the seed for the random number generator. | |
static std::string | getSeed () |
Get the random number generator seed. | |
static void | exposePythonAPI () |
Exposes methods of the RandomNumbers class to Python. | |
Static Private Attributes | |
static RandomGenerator * | s_evtRng {nullptr} |
event dependent random generator to be used for event processing | |
static RandomGenerator * | s_runRng {nullptr} |
event independent random generator to be used for begin/end run processing | |
static std::string | s_initialSeed |
The random number generator seed set by the user. | |
static int | s_barrierOffset |
barrier index offset to be used in begin/endRun. | |
The class for handling the random number generation.
Definition at line 23 of file RandomNumbers.h.
|
static |
Increase random barrier.
current random generator will be reseeded with a different "barrier index" which makes it's state independent from previous calls
Definition at line 69 of file RandomNumbers.cc.
|
static |
Exposes methods of the RandomNumbers class to Python.
Definition at line 150 of file RandomNumbers.cc.
|
inlinestatic |
return reference to the event dependent random generator
Definition at line 73 of file RandomNumbers.h.
|
inlinestatic |
Get the random number generator seed.
Definition at line 92 of file RandomNumbers.h.
|
static |
Initialize the random number generator with a unique random seed;.
Definition at line 32 of file RandomNumbers.cc.
|
static |
Initialize the random number generator.
seed | The random number generator seed. |
Definition at line 44 of file RandomNumbers.cc.
|
static |
Initialize run independent random generator for begin run.
Called by EventProcessor, should not be called by other users
Definition at line 85 of file RandomNumbers.cc.
|
static |
Initialize run independent random generator for end run.
Called by EventProcessor, should not be called by other users
Definition at line 97 of file RandomNumbers.cc.
|
static |
Initialize event information.
Called by EventProcessor, should not be called by other users
force | if true force initialization even in parallel processing mode for all processes and ignore the generator state that might have been passed in the event stream. This is only used on HLT event processor |
Definition at line 108 of file RandomNumbers.cc.
|
static |
Truth that the random number generator has been initialized.
Definition at line 64 of file RandomNumbers.cc.
|
static |
Sets the seed for the random number generator.
seed | The random number generator seed. |
Definition at line 79 of file RandomNumbers.cc.
|
static |
Set Event dependent Random Generator as current one.
Called by EventProcessor, should not be called by other users
Definition at line 128 of file RandomNumbers.cc.
|
staticprivate |
barrier index offset to be used in begin/endRun.
Obtained from event dependent generator
Definition at line 113 of file RandomNumbers.h.
|
staticprivate |
event dependent random generator to be used for event processing
Definition at line 106 of file RandomNumbers.h.
|
staticprivate |
The random number generator seed set by the user.
initialized to a non-deterministic 64byte hex string if not set by user
Definition at line 111 of file RandomNumbers.h.
|
staticprivate |
event independent random generator to be used for begin/end run processing
Definition at line 108 of file RandomNumbers.h.