9 #ifndef ThePEG_StandardRandom_H 10 #define ThePEG_StandardRandom_H 13 #include "RandomGenerator.h" 14 #include "ThePEG/Persistency/PersistentOStream.h" 15 #include "ThePEG/Persistency/PersistentIStream.h" 44 virtual void setSeed(
long seed);
155 static string className() {
return "ThePEG::StandardRandom"; }
virtual IBPtr clone() const
Make a simple clone of this object.
virtual void setSeed(long seed)
Reset the underlying random algorithm with the given seed.
PersistentIStream is used to read persistent objects from a stream where they were previously written...
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
ClassTraitsType is an empty, non-polymorphic, base class.
A concreate implementation of ClassDescriptionBase describing a concrete class with persistent data...
static ClassDescription< StandardRandom > initStandardRandom
Describe a concrete class with persistent data.
PersistentOStream is used to write objects persistently to a stream from which they can be read in ag...
virtual void fill()
Fill the cache with random numbers.
This is the main namespace within which all identifiers in ThePEG are declared.
RandomGenerator is an interface to the CLHEP::RandomEngine classes.
StandardRandom & operator=(const StandardRandom &)
Private and non-existent assignment operator.
static void Init()
Standard Init function used to initialize the interface.
int j97
Index for the internal state.
vector< double > u
The internal state vector.
double c
Parameter for the internal state.
int i97
Index for the internal state.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
RCPtr is a reference counted (smart) pointer.
StandardRandom inherits from the RandomGenerator class and is an interface to the CLHEP::JamesRandom ...
double cd
Parameter for the internal state.
StandardRandom()
Default constructor.
The default concrete implementation of ClassTraitsBase.
double cm
Parameter for the internal state.
long theSeed
The seed to initialize the random generator with.
BaseClassTraits describes the base classes of the templated class.
The templated ClassTraitsBase class defines a set of default information about classes used by ThePEG...