CLHEP 2.4.7.1
C++ Class Library for High Energy Physics
CLHEP::HepRandom Class Reference

#include <CLHEP/Random/Random.h>

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

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 lxr=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

Constructor & Destructor Documentation

◆ HepRandom() [1/4]

◆ HepRandom() [2/4]

CLHEP::HepRandom::HepRandom ( long seed)

◆ HepRandom() [3/4]

CLHEP::HepRandom::HepRandom ( HepRandomEngine & algorithm)

◆ HepRandom() [4/4]

CLHEP::HepRandom::HepRandom ( HepRandomEngine * algorithm)

◆ ~HepRandom()

virtual CLHEP::HepRandom::~HepRandom ( )
virtual

Member Function Documentation

◆ createInstance()

int CLHEP::HepRandom::createInstance ( )
static

◆ distributionName()

std::string CLHEP::HepRandom::distributionName ( )
inlinestatic

Definition at line 153 of file Random.h.

◆ engine()

◆ flat() [1/2]

double CLHEP::HepRandom::flat ( )

◆ flat() [2/2]

double CLHEP::HepRandom::flat ( HepRandomEngine * theNewEngine)
inline

Definition at line 20 of file Random.icc.

References CLHEP::HepRandomEngine::flat().

◆ flatArray() [1/2]

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

◆ flatArray() [2/2]

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

Definition at line 25 of file Random.icc.

References CLHEP::HepRandomEngine::flatArray().

◆ get()

◆ getTheEngine()

◆ getTheGenerator()

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

References HepRandom().

◆ getTheSeed()

long CLHEP::HepRandom::getTheSeed ( )
static

◆ getTheSeeds()

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

◆ getTheTableSeeds()

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

◆ name()

◆ operator()()

◆ put()

◆ restoreDistState()

std::istream & CLHEP::HepRandom::restoreDistState ( std::istream & is)
inlinestatic

Definition at line 138 of file Random.h.

◆ restoreEngineStatus()

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

◆ restoreFullState()

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

◆ restoreStaticRandomStates()

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

◆ saveDistState()

std::ostream & CLHEP::HepRandom::saveDistState ( std::ostream & os)
inlinestatic

Definition at line 135 of file Random.h.

◆ saveEngineStatus()

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

◆ saveFullState()

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

◆ saveStaticRandomStates()

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

◆ setTheEngine()

void CLHEP::HepRandom::setTheEngine ( HepRandomEngine * theNewEngine)
static

◆ setTheSeed()

void CLHEP::HepRandom::setTheSeed ( long seed,
int lxr = 3 )
static

◆ setTheSeeds()

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

◆ showEngineStatus()

void CLHEP::HepRandom::showEngineStatus ( )
static

Member Data Documentation

◆ seedTable

const long CLHEP::HepRandom::seedTable
staticprotected

Definition at line 158 of file Random.h.


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