CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

Public Member Functions | Static Public Member Functions | Static Protected Attributes
CLHEP::HepRandom Class Reference

#include <Random.h>

Inheritance diagram for CLHEP::HepRandom:
CLHEP::RandBinomial CLHEP::RandBinomial CLHEP::RandBinomial CLHEP::RandBinomial CLHEP::RandBreitWigner CLHEP::RandBreitWigner CLHEP::RandBreitWigner CLHEP::RandBreitWigner CLHEP::RandChiSquare CLHEP::RandChiSquare CLHEP::RandChiSquare CLHEP::RandChiSquare CLHEP::RandExponential CLHEP::RandExponential CLHEP::RandExponential CLHEP::RandExponential CLHEP::RandFlat CLHEP::RandFlat CLHEP::RandFlat CLHEP::RandFlat CLHEP::RandGamma CLHEP::RandGamma CLHEP::RandGamma CLHEP::RandGamma CLHEP::RandGauss CLHEP::RandGauss CLHEP::RandGauss CLHEP::RandGauss CLHEP::RandGeneral CLHEP::RandGeneral CLHEP::RandGeneral CLHEP::RandGeneral CLHEP::RandLandau CLHEP::RandLandau CLHEP::RandLandau CLHEP::RandLandau CLHEP::RandPoisson CLHEP::RandPoisson CLHEP::RandPoisson CLHEP::RandPoisson CLHEP::RandSkewNormal CLHEP::RandSkewNormal CLHEP::RandSkewNormal CLHEP::RandSkewNormal CLHEP::RandStudentT CLHEP::RandStudentT CLHEP::RandStudentT CLHEP::RandStudentT

List of all members.

Public Member Functions

 HepRandom ()
 HepRandom (long seed)
 HepRandom (HepRandomEngine &algorithm)
 HepRandom (HepRandomEngine *algorithm)
virtual ~HepRandom ()
double flat ()
void flatArray (const int size, double *vect)
double flat (HepRandomEngine *theNewEngine)
void flatArray (HepRandomEngine *theNewEngine, const int size, double *vect)
virtual double operator() ()
virtual std::string name () const
virtual HepRandomEngineengine ()
virtual std::ostream & put (std::ostream &os) const
virtual std::istream & get (std::istream &is)
 HepRandom ()
 HepRandom (long seed)
 HepRandom (HepRandomEngine &algorithm)
 HepRandom (HepRandomEngine *algorithm)
virtual ~HepRandom ()
double flat ()
void flatArray (const int size, double *vect)
double flat (HepRandomEngine *theNewEngine)
void flatArray (HepRandomEngine *theNewEngine, const int size, double *vect)
virtual double operator() ()
virtual std::string name () const
virtual HepRandomEngineengine ()
virtual std::ostream & put (std::ostream &os) const
virtual std::istream & get (std::istream &is)
 HepRandom ()
 HepRandom (long seed)
 HepRandom (HepRandomEngine &algorithm)
 HepRandom (HepRandomEngine *algorithm)
virtual ~HepRandom ()
double flat ()
void flatArray (const int size, double *vect)
double flat (HepRandomEngine *theNewEngine)
void flatArray (HepRandomEngine *theNewEngine, const int size, double *vect)
virtual double operator() ()
virtual std::string name () const
virtual HepRandomEngineengine ()
virtual std::ostream & put (std::ostream &os) const
virtual std::istream & get (std::istream &is)
 HepRandom ()
 HepRandom (long seed)
 HepRandom (HepRandomEngine &algorithm)
 HepRandom (HepRandomEngine *algorithm)
virtual ~HepRandom ()
double flat ()
void flatArray (const int size, double *vect)
double flat (HepRandomEngine *theNewEngine)
void flatArray (HepRandomEngine *theNewEngine, const int size, double *vect)
virtual double operator() ()
virtual std::string name () const
virtual HepRandomEngineengine ()
virtual std::ostream & put (std::ostream &os) const
virtual std::istream & get (std::istream &is)

Static Public Member Functions

static void setTheSeed (long seed, int lux=3)
static long getTheSeed ()
static void setTheSeeds (const long *seeds, int aux=-1)
static const long * getTheSeeds ()
static void getTheTableSeeds (long *seeds, int index)
static HepRandomgetTheGenerator ()
static void setTheEngine (HepRandomEngine *theNewEngine)
static HepRandomEnginegetTheEngine ()
static void saveEngineStatus (const char filename[]="Config.conf")
static void restoreEngineStatus (const char filename[]="Config.conf")
static std::ostream & saveFullState (std::ostream &os)
static std::istream & restoreFullState (std::istream &is)
static std::ostream & saveDistState (std::ostream &os)
static std::istream & restoreDistState (std::istream &is)
static std::ostream & saveStaticRandomStates (std::ostream &os)
static std::istream & restoreStaticRandomStates (std::istream &is)
static void showEngineStatus ()
static int createInstance ()
static std::string distributionName ()
static void setTheSeed (long seed, int lux=3)
static long getTheSeed ()
static void setTheSeeds (const long *seeds, int aux=-1)
static const long * getTheSeeds ()
static void getTheTableSeeds (long *seeds, int index)
static HepRandomgetTheGenerator ()
static void setTheEngine (HepRandomEngine *theNewEngine)
static HepRandomEnginegetTheEngine ()
static void saveEngineStatus (const char filename[]="Config.conf")
static void restoreEngineStatus (const char filename[]="Config.conf")
static std::ostream & saveFullState (std::ostream &os)
static std::istream & restoreFullState (std::istream &is)
static std::ostream & saveDistState (std::ostream &os)
static std::istream & restoreDistState (std::istream &is)
static std::ostream & saveStaticRandomStates (std::ostream &os)
static std::istream & restoreStaticRandomStates (std::istream &is)
static void showEngineStatus ()
static int createInstance ()
static std::string distributionName ()
static void setTheSeed (long seed, int lux=3)
static long getTheSeed ()
static void setTheSeeds (const long *seeds, int aux=-1)
static const long * getTheSeeds ()
static void getTheTableSeeds (long *seeds, int index)
static HepRandomgetTheGenerator ()
static void setTheEngine (HepRandomEngine *theNewEngine)
static HepRandomEnginegetTheEngine ()
static void saveEngineStatus (const char filename[]="Config.conf")
static void restoreEngineStatus (const char filename[]="Config.conf")
static std::ostream & saveFullState (std::ostream &os)
static std::istream & restoreFullState (std::istream &is)
static std::ostream & saveDistState (std::ostream &os)
static std::istream & restoreDistState (std::istream &is)
static std::ostream & saveStaticRandomStates (std::ostream &os)
static std::istream & restoreStaticRandomStates (std::istream &is)
static void showEngineStatus ()
static int createInstance ()
static std::string distributionName ()
static void setTheSeed (long seed, int lux=3)
static long getTheSeed ()
static void setTheSeeds (const long *seeds, int aux=-1)
static const long * getTheSeeds ()
static void getTheTableSeeds (long *seeds, int index)
static HepRandomgetTheGenerator ()
static void setTheEngine (HepRandomEngine *theNewEngine)
static HepRandomEnginegetTheEngine ()
static void saveEngineStatus (const char filename[]="Config.conf")
static void restoreEngineStatus (const char filename[]="Config.conf")
static std::ostream & saveFullState (std::ostream &os)
static std::istream & restoreFullState (std::istream &is)
static std::ostream & saveDistState (std::ostream &os)
static std::istream & restoreDistState (std::istream &is)
static std::ostream & saveStaticRandomStates (std::ostream &os)
static std::istream & restoreStaticRandomStates (std::istream &is)
static void showEngineStatus ()
static int createInstance ()
static std::string distributionName ()

Static Protected Attributes

static const long seedTable [215][2]

Detailed Description

Author:
<Gabriele.Cosmo@cern.ch>

Definition at line 50 of file Matrix/CLHEP/Random/Random.h.


Constructor & Destructor Documentation

Definition at line 76 of file Random.cc.

Definition at line 79 of file Random.cc.

References setTheSeed().

Definition at line 84 of file Random.cc.

Definition at line 89 of file Random.cc.

Definition at line 94 of file Random.cc.

virtual CLHEP::HepRandom::~HepRandom ( ) [virtual]
virtual CLHEP::HepRandom::~HepRandom ( ) [virtual]
virtual CLHEP::HepRandom::~HepRandom ( ) [virtual]

Member Function Documentation

Definition at line 209 of file Random.cc.

static int CLHEP::HepRandom::createInstance ( ) [static]
static int CLHEP::HepRandom::createInstance ( ) [static]
static int CLHEP::HepRandom::createInstance ( ) [static]
static std::string CLHEP::HepRandom::distributionName ( ) [inline, static]
static std::string CLHEP::HepRandom::distributionName ( ) [inline, static]
static std::string CLHEP::HepRandom::distributionName ( ) [inline, static]
static std::string CLHEP::HepRandom::distributionName ( ) [inline, static]
virtual HepRandomEngine& CLHEP::HepRandom::engine ( ) [virtual]
virtual HepRandomEngine& CLHEP::HepRandom::engine ( ) [virtual]
virtual HepRandomEngine& CLHEP::HepRandom::engine ( ) [virtual]

Definition at line 97 of file Random.cc.

Referenced by main(), operator()(), and CLHEP::RandExponential::shoot().

double CLHEP::HepRandom::flat ( HepRandomEngine theNewEngine) [inline]
double CLHEP::HepRandom::flat ( HepRandomEngine theNewEngine) [inline]
double CLHEP::HepRandom::flat ( HepRandomEngine theNewEngine) [inline]
double CLHEP::HepRandom::flat ( HepRandomEngine theNewEngine) [inline]
void CLHEP::HepRandom::flatArray ( const int  size,
double vect 
)

Definition at line 102 of file Random.cc.

void CLHEP::HepRandom::flatArray ( const int  size,
double vect 
)
void CLHEP::HepRandom::flatArray ( const int  size,
double vect 
)
void CLHEP::HepRandom::flatArray ( const int  size,
double vect 
)
void CLHEP::HepRandom::flatArray ( HepRandomEngine theNewEngine,
const int  size,
double vect 
) [inline]
void CLHEP::HepRandom::flatArray ( HepRandomEngine theNewEngine,
const int  size,
double vect 
) [inline]
void CLHEP::HepRandom::flatArray ( HepRandomEngine theNewEngine,
const int  size,
double vect 
) [inline]
void CLHEP::HepRandom::flatArray ( HepRandomEngine theNewEngine,
const int  size,
double vect 
) [inline]
virtual std::istream& CLHEP::HepRandom::get ( std::istream &  is) [virtual]
std::istream & CLHEP::HepRandom::get ( std::istream &  is) [virtual]
virtual std::istream& CLHEP::HepRandom::get ( std::istream &  is) [virtual]
virtual std::istream& CLHEP::HepRandom::get ( std::istream &  is) [virtual]

Definition at line 161 of file Random.cc.

References get().

Referenced by main().

static long CLHEP::HepRandom::getTheSeed ( ) [static]
static long CLHEP::HepRandom::getTheSeed ( ) [static]
long CLHEP::HepRandom::getTheSeed ( ) [static]

Definition at line 137 of file Random.cc.

static long CLHEP::HepRandom::getTheSeed ( ) [static]
static const long* CLHEP::HepRandom::getTheSeeds ( ) [static]
static const long* CLHEP::HepRandom::getTheSeeds ( ) [static]
static const long* CLHEP::HepRandom::getTheSeeds ( ) [static]
const long * CLHEP::HepRandom::getTheSeeds ( ) [static]

Definition at line 147 of file Random.cc.

Referenced by main().

static void CLHEP::HepRandom::getTheTableSeeds ( long *  seeds,
int  index 
) [static]
void CLHEP::HepRandom::getTheTableSeeds ( long *  seeds,
int  index 
) [static]
static void CLHEP::HepRandom::getTheTableSeeds ( long *  seeds,
int  index 
) [static]
static void CLHEP::HepRandom::getTheTableSeeds ( long *  seeds,
int  index 
) [static]
virtual std::string CLHEP::HepRandom::name ( ) const [virtual]
virtual std::string CLHEP::HepRandom::name ( ) const [virtual]
std::string CLHEP::HepRandom::name ( ) const [virtual]
virtual std::string CLHEP::HepRandom::name ( ) const [virtual]
virtual double CLHEP::HepRandom::operator() ( ) [virtual]
virtual double CLHEP::HepRandom::operator() ( ) [virtual]
double CLHEP::HepRandom::operator() ( ) [virtual]
virtual double CLHEP::HepRandom::operator() ( ) [virtual]
virtual std::ostream& CLHEP::HepRandom::put ( std::ostream &  os) const [virtual]
std::ostream & CLHEP::HepRandom::put ( std::ostream &  os) const [virtual]
virtual std::ostream& CLHEP::HepRandom::put ( std::ostream &  os) const [virtual]
virtual std::ostream& CLHEP::HepRandom::put ( std::ostream &  os) const [virtual]
static std::istream& CLHEP::HepRandom::restoreDistState ( std::istream &  is) [inline, static]
static std::istream& CLHEP::HepRandom::restoreDistState ( std::istream &  is) [inline, static]
static std::istream& CLHEP::HepRandom::restoreDistState ( std::istream &  is) [inline, static]
static std::istream& CLHEP::HepRandom::restoreDistState ( std::istream &  is) [inline, static]
static void CLHEP::HepRandom::restoreEngineStatus ( const char  filename[] = "Config.conf") [static]
void CLHEP::HepRandom::restoreEngineStatus ( const char  filename[] = "Config.conf") [static]
static void CLHEP::HepRandom::restoreEngineStatus ( const char  filename[] = "Config.conf") [static]
static void CLHEP::HepRandom::restoreEngineStatus ( const char  filename[] = "Config.conf") [static]
static std::istream& CLHEP::HepRandom::restoreFullState ( std::istream &  is) [static]
std::istream & CLHEP::HepRandom::restoreFullState ( std::istream &  is) [static]
static std::istream& CLHEP::HepRandom::restoreFullState ( std::istream &  is) [static]
static std::istream& CLHEP::HepRandom::restoreFullState ( std::istream &  is) [static]
static std::istream& CLHEP::HepRandom::restoreStaticRandomStates ( std::istream &  is) [static]
std::istream & CLHEP::HepRandom::restoreStaticRandomStates ( std::istream &  is) [static]

Definition at line 200 of file Random.cc.

References CLHEP::StaticRandomStates::restore().

Referenced by restoreStatics().

static std::istream& CLHEP::HepRandom::restoreStaticRandomStates ( std::istream &  is) [static]
static std::istream& CLHEP::HepRandom::restoreStaticRandomStates ( std::istream &  is) [static]
static std::ostream& CLHEP::HepRandom::saveDistState ( std::ostream &  os) [inline, static]
static std::ostream& CLHEP::HepRandom::saveDistState ( std::ostream &  os) [inline, static]
static std::ostream& CLHEP::HepRandom::saveDistState ( std::ostream &  os) [inline, static]
static std::ostream& CLHEP::HepRandom::saveDistState ( std::ostream &  os) [inline, static]
static void CLHEP::HepRandom::saveEngineStatus ( const char  filename[] = "Config.conf") [static]
void CLHEP::HepRandom::saveEngineStatus ( const char  filename[] = "Config.conf") [static]
static void CLHEP::HepRandom::saveEngineStatus ( const char  filename[] = "Config.conf") [static]
static void CLHEP::HepRandom::saveEngineStatus ( const char  filename[] = "Config.conf") [static]
static std::ostream& CLHEP::HepRandom::saveFullState ( std::ostream &  os) [static]
std::ostream & CLHEP::HepRandom::saveFullState ( std::ostream &  os) [static]
static std::ostream& CLHEP::HepRandom::saveFullState ( std::ostream &  os) [static]
static std::ostream& CLHEP::HepRandom::saveFullState ( std::ostream &  os) [static]
static std::ostream& CLHEP::HepRandom::saveStaticRandomStates ( std::ostream &  os) [static]
std::ostream & CLHEP::HepRandom::saveStaticRandomStates ( std::ostream &  os) [static]

Definition at line 196 of file Random.cc.

References CLHEP::StaticRandomStates::save().

Referenced by saveStatics().

static std::ostream& CLHEP::HepRandom::saveStaticRandomStates ( std::ostream &  os) [static]
static std::ostream& CLHEP::HepRandom::saveStaticRandomStates ( std::ostream &  os) [static]
static void CLHEP::HepRandom::setTheEngine ( HepRandomEngine theNewEngine) [static]
static void CLHEP::HepRandom::setTheEngine ( HepRandomEngine theNewEngine) [static]
void CLHEP::HepRandom::setTheEngine ( HepRandomEngine theNewEngine) [static]
static void CLHEP::HepRandom::setTheEngine ( HepRandomEngine theNewEngine) [static]
static void CLHEP::HepRandom::setTheSeed ( long  seed,
int  lux = 3 
) [static]
void CLHEP::HepRandom::setTheSeed ( long  seed,
int  lux = 3 
) [static]
static void CLHEP::HepRandom::setTheSeed ( long  seed,
int  lux = 3 
) [static]
static void CLHEP::HepRandom::setTheSeed ( long  seed,
int  lux = 3 
) [static]
static void CLHEP::HepRandom::setTheSeeds ( const long *  seeds,
int  aux = -1 
) [static]
static void CLHEP::HepRandom::setTheSeeds ( const long *  seeds,
int  aux = -1 
) [static]
void CLHEP::HepRandom::setTheSeeds ( const long *  seeds,
int  aux = -1 
) [static]

Definition at line 142 of file Random.cc.

Referenced by main().

static void CLHEP::HepRandom::setTheSeeds ( const long *  seeds,
int  aux = -1 
) [static]
static void CLHEP::HepRandom::showEngineStatus ( ) [static]

Definition at line 204 of file Random.cc.

static void CLHEP::HepRandom::showEngineStatus ( ) [static]
static void CLHEP::HepRandom::showEngineStatus ( ) [static]

Member Data Documentation

const long CLHEP::HepRandom::seedTable [static, protected]

Definition at line 158 of file Matrix/CLHEP/Random/Random.h.

Referenced by getTheTableSeeds().


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