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

CLHEP::HepRandom Class Reference

#include <Random.h>

Inheritance diagram for CLHEP::HepRandom:

CLHEP::RandBinomial CLHEP::RandBreitWigner CLHEP::RandChiSquare CLHEP::RandExponential CLHEP::RandFlat CLHEP::RandGamma CLHEP::RandGauss CLHEP::RandGeneral CLHEP::RandLandau CLHEP::RandPoisson CLHEP::RandSkewNormal 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)

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 Protected Attributes

static const long seedTable [215][2]

Detailed Description

Author:
<Gabriele.Cosmo@cern.ch>

Definition at line 50 of file Random.h.


Constructor & Destructor Documentation

CLHEP::HepRandom::HepRandom (  ) 

Definition at line 76 of file Random.cc.

CLHEP::HepRandom::HepRandom ( long  seed  ) 

Definition at line 79 of file Random.cc.

References setTheSeed().

CLHEP::HepRandom::HepRandom ( HepRandomEngine algorithm  ) 

Definition at line 84 of file Random.cc.

CLHEP::HepRandom::HepRandom ( HepRandomEngine algorithm  ) 

Definition at line 89 of file Random.cc.

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

Definition at line 94 of file Random.cc.


Member Function Documentation

int CLHEP::HepRandom::createInstance (  )  [static]

Definition at line 209 of file Random.cc.

static std::string CLHEP::HepRandom::distributionName (  )  [inline, static]

Reimplemented in CLHEP::RandBinomial, CLHEP::RandBit, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussT, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, CLHEP::RandSkewNormal, and CLHEP::RandStudentT.

Definition at line 153 of file Random.h.

HepRandomEngine & CLHEP::HepRandom::engine (  )  [virtual]

Reimplemented in CLHEP::RandBinomial, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussT, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, CLHEP::RandSkewNormal, and CLHEP::RandStudentT.

Definition at line 112 of file Random.cc.

double CLHEP::HepRandom::flat ( HepRandomEngine theNewEngine  )  [inline]

double CLHEP::HepRandom::flat (  ) 

Definition at line 97 of file Random.cc.

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

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

void CLHEP::HepRandom::flatArray ( const int  size,
double *  vect 
)

Definition at line 102 of file Random.cc.

std::istream & CLHEP::HepRandom::get ( std::istream &  is  )  [virtual]

Reimplemented in CLHEP::RandBinomial, CLHEP::RandBit, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussT, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, CLHEP::RandSkewNormal, and CLHEP::RandStudentT.

Definition at line 126 of file Random.cc.

Referenced by CLHEP::operator>>().

HepRandomEngine * CLHEP::HepRandom::getTheEngine (  )  [static]

Definition at line 166 of file Random.cc.

Referenced by CLHEP::StaticRandomStates::restore(), CLHEP::RandGauss::restoreEngineStatus(), CLHEP::RandFlat::restoreEngineStatus(), restoreFullState(), CLHEP::RandGauss::saveEngineStatus(), CLHEP::RandFlat::saveEngineStatus(), saveFullState(), CLHEP::RandStudentT::shoot(), CLHEP::RandSkewNormal::shoot(), CLHEP::RandPoissonT::shoot(), CLHEP::RandPoisson::shoot(), CLHEP::RandGauss::shoot(), CLHEP::RandGamma::shoot(), CLHEP::RandFlat::shoot(), CLHEP::RandExponential::shoot(), CLHEP::RandChiSquare::shoot(), CLHEP::RandBreitWigner::shoot(), CLHEP::RandBinomial::shoot(), CLHEP::RandFlat::shootArray(), and useSeed().

HepRandom * CLHEP::HepRandom::getTheGenerator (  )  [static]

Definition at line 161 of file Random.cc.

Referenced by main().

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

Definition at line 137 of file Random.cc.

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

Definition at line 147 of file Random.cc.

Referenced by main().

void CLHEP::HepRandom::getTheTableSeeds ( long *  seeds,
int  index 
) [static]

Definition at line 152 of file Random.cc.

References seedTable.

Referenced by CLHEP::DRand48Engine::DRand48Engine(), CLHEP::HepJamesRandom::HepJamesRandom(), CLHEP::Hurd160Engine::Hurd160Engine(), CLHEP::Hurd288Engine::Hurd288Engine(), CLHEP::MTwistEngine::MTwistEngine(), CLHEP::RandEngine::RandEngine(), CLHEP::RanecuEngine::RanecuEngine(), CLHEP::Ranlux64Engine::Ranlux64Engine(), CLHEP::RanluxEngine::RanluxEngine(), and CLHEP::RanecuEngine::setSeed().

std::string CLHEP::HepRandom::name (  )  const [virtual]

Reimplemented in CLHEP::RandBinomial, CLHEP::RandBit, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussT, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, CLHEP::RandSkewNormal, and CLHEP::RandStudentT.

Definition at line 111 of file Random.cc.

double CLHEP::HepRandom::operator() (  )  [virtual]

Reimplemented in CLHEP::RandBinomial, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussT, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, CLHEP::RandSkewNormal, and CLHEP::RandStudentT.

Definition at line 107 of file Random.cc.

References flat().

std::ostream & CLHEP::HepRandom::put ( std::ostream &  os  )  const [virtual]

Reimplemented in CLHEP::RandBinomial, CLHEP::RandBit, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussT, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, CLHEP::RandSkewNormal, and CLHEP::RandStudentT.

Definition at line 125 of file Random.cc.

Referenced by CLHEP::operator<<().

static std::istream& CLHEP::HepRandom::restoreDistState ( std::istream &  is  )  [inline, static]

Reimplemented in CLHEP::RandBit, CLHEP::RandFlat, and CLHEP::RandGauss.

Definition at line 138 of file Random.h.

void CLHEP::HepRandom::restoreEngineStatus ( const char  filename[] = "Config.conf"  )  [static]

Reimplemented in CLHEP::RandFlat, and CLHEP::RandGauss.

Definition at line 181 of file Random.cc.

std::istream & CLHEP::HepRandom::restoreFullState ( std::istream &  is  )  [static]

Reimplemented in CLHEP::RandBit, CLHEP::RandFlat, and CLHEP::RandGauss.

Definition at line 191 of file Random.cc.

References getTheEngine().

Referenced by CLHEP::RandGauss::restoreFullState(), and CLHEP::RandFlat::restoreFullState().

std::istream & CLHEP::HepRandom::restoreStaticRandomStates ( std::istream &  is  )  [static]

Definition at line 200 of file Random.cc.

References CLHEP::StaticRandomStates::restore().

static std::ostream& CLHEP::HepRandom::saveDistState ( std::ostream &  os  )  [inline, static]

Reimplemented in CLHEP::RandBit, CLHEP::RandFlat, and CLHEP::RandGauss.

Definition at line 135 of file Random.h.

void CLHEP::HepRandom::saveEngineStatus ( const char  filename[] = "Config.conf"  )  [static]

Reimplemented in CLHEP::RandFlat, and CLHEP::RandGauss.

Definition at line 176 of file Random.cc.

std::ostream & CLHEP::HepRandom::saveFullState ( std::ostream &  os  )  [static]

Reimplemented in CLHEP::RandBit, CLHEP::RandFlat, and CLHEP::RandGauss.

Definition at line 186 of file Random.cc.

References getTheEngine().

Referenced by CLHEP::RandGauss::saveFullState(), and CLHEP::RandFlat::saveFullState().

std::ostream & CLHEP::HepRandom::saveStaticRandomStates ( std::ostream &  os  )  [static]

Definition at line 196 of file Random.cc.

References CLHEP::StaticRandomStates::save().

void CLHEP::HepRandom::setTheEngine ( HepRandomEngine theNewEngine  )  [static]

Definition at line 171 of file Random.cc.

Referenced by main(), and CLHEP::StaticRandomStates::restore().

void CLHEP::HepRandom::setTheSeed ( long  seed,
int  lux = 3 
) [static]

Definition at line 132 of file Random.cc.

Referenced by diagmatrix_test(), HepRandom(), main(), matrix_test(), symmatrix_test(), useSeed(), and vector_test().

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

Definition at line 142 of file Random.cc.

Referenced by main().

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

Definition at line 204 of file Random.cc.


Member Data Documentation

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

Definition at line 158 of file Random.h.

Referenced by getTheTableSeeds().


The documentation for this class was generated from the following files:
Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7