ThePEG::StandardRandom Class Reference

StandardRandom inherits from the RandomGenerator class and is an interface to the CLHEP::JamesRandom engine class. More...

#include <StandardRandom.h>

Inheritance diagram for ThePEG::StandardRandom:

ThePEG::RandomGenerator ThePEG::Interfaced ThePEG::InterfacedBase ThePEG::Base ThePEG::Named ThePEG::Pointer::ReferenceCounted

List of all members.

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

StandardRandomoperator= (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.


Detailed Description

StandardRandom inherits from the RandomGenerator class and is an interface to the CLHEP::JamesRandom engine class.

See also:
The interfaces defined for StandardRandom.

Definition at line 26 of file StandardRandom.h.


Member Function Documentation

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.

Parameters:
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.

Parameters:
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.

Returns:
a pointer to the new 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.

Returns:
a pointer to the new object.

Reimplemented from ThePEG::InterfacedBase.


The documentation for this class was generated from the following file:

Generated on Thu Apr 29 12:43:22 2010 for ThePEG by  doxygen 1.5.5