Class Reference for E1039 Core & Analysis Software
|
#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/framework/phool/PHRandomSeed.h>
Public Member Functions | |
PHRandomSeed () | |
virtual | ~PHRandomSeed () |
operator unsigned int () const | |
conversion operator for unsigned int seed = PHRandomSeed(); More... | |
Static Public Member Functions | |
static unsigned int | GetSeed () |
get a seed More... | |
static void | LoadSeed (const unsigned int iseed) |
static void | Verbosity (const int iverb) |
Static Protected Member Functions | |
static void | InitSeed () |
Static Protected Attributes | |
static bool | fFixed |
static bool | fInitialized |
static int | verbose |
standard way to get a random seed: unsigned int seed = PHRandomSeed();
It return fix seed sequence if recoConsts RANDOMSEED is set. If values are preloaded via PHRandomSeed::LoadSeed, they are returned in loaded order otherwise it return a random seed from std::random_device rdev
Definition at line 9 of file PHRandomSeed.h.
|
inline |
Definition at line 12 of file PHRandomSeed.h.
|
inlinevirtual |
Definition at line 13 of file PHRandomSeed.h.
|
static |
get a seed
Definition at line 19 of file PHRandomSeed.cc.
References fDistribution, fRandomGenerator, and seedqueue.
Referenced by operator unsigned int().
|
staticprotected |
Definition at line 50 of file PHRandomSeed.cc.
References PHFlag::FlagExist(), fRandomGenerator, PHFlag::get_IntFlag(), and recoConsts::instance().
|
static |
Definition at line 64 of file PHRandomSeed.cc.
References seedqueue.
|
inline |
conversion operator for unsigned int seed = PHRandomSeed();
Definition at line 15 of file PHRandomSeed.h.
References GetSeed().
|
static |
Definition at line 69 of file PHRandomSeed.cc.
|
staticprotected |
Definition at line 27 of file PHRandomSeed.h.
|
staticprotected |
Definition at line 28 of file PHRandomSeed.h.
|
staticprotected |
Definition at line 29 of file PHRandomSeed.h.