#include <StandardRandom.h>
Public Member Functions | |
virtual void | setSeed (long seed) |
Reset the underlying random algorithm with the given seed. | |
Standard constructors and destructors. | |
StandardRandom () | |
Default constructor. | |
Functions used by the persistent I/O system. | |
void | persistentOutput (PersistentOStream &os) const |
Function used to write out object persistently. | |
void | persistentInput (PersistentIStream &is, int version) |
Function used to read in object persistently. | |
Static Public Member Functions | |
static void | Init () |
Standard Init function used to initialize the interface. | |
Protected Member Functions | |
virtual void | fill () |
Fill the cache with random numbers. | |
Clone Methods. | |
virtual IBPtr | clone () const |
Make a simple clone of this object. | |
virtual IBPtr | fullclone () const |
Make a clone of this object, possibly modifying the cloned object to make it sane. | |
Private Member Functions | |
StandardRandom & | operator= (const StandardRandom &) |
Private and non-existent assignment operator. | |
Private Attributes | |
vector< double > | u |
The internal state vector. | |
double | c |
Parameter for the internal state. | |
double | cd |
Parameter for the internal state. | |
double | cm |
Parameter for the internal state. | |
int | i97 |
Index for the internal state. | |
int | j97 |
Index for the internal state. | |
Static Private Attributes | |
static ClassDescription < StandardRandom > | initStandardRandom |
Describe a concrete class with persistent data. |
Definition at line 26 of file StandardRandom.h.
virtual void ThePEG::StandardRandom::setSeed | ( | long | seed | ) | [virtual] |
Reset the underlying random algorithm with the given seed.
If the seed is set to -1 a standard seed will be used.
Implements ThePEG::RandomGenerator.
Referenced by StandardRandom().
void ThePEG::StandardRandom::persistentOutput | ( | PersistentOStream & | os | ) | const |
Function used to write out object persistently.
os | the persistent output stream written to. |
Reimplemented from ThePEG::RandomGenerator.
void ThePEG::StandardRandom::persistentInput | ( | PersistentIStream & | is, | |
int | version | |||
) |
Function used to read in object persistently.
is | the persistent input stream read from. | |
version | the version number of the object when written. |
Reimplemented from ThePEG::RandomGenerator.
virtual IBPtr ThePEG::StandardRandom::clone | ( | ) | const [protected, virtual] |
Make a simple clone of this object.
Implements ThePEG::InterfacedBase.
virtual IBPtr ThePEG::StandardRandom::fullclone | ( | ) | const [protected, virtual] |
Make a clone of this object, possibly modifying the cloned object to make it sane.
Reimplemented from ThePEG::InterfacedBase.