CLHEP 2.4.7.1
C++ Class Library for High Energy Physics
Public Member Functions | Static Public Member Functions | Static Protected Attributes | List of all members
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

Author
Gabri.nosp@m.ele..nosp@m.Cosmo.nosp@m.@cer.nosp@m.n.ch

Definition at line 50 of file Random.h.

Constructor & Destructor Documentation

◆ HepRandom() [1/4]

CLHEP::HepRandom::HepRandom ( )

◆ 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()

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

◆ distributionName()

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

Definition at line 153 of file Random.h.

◆ engine()

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

◆ 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()

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

◆ getTheEngine()

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

◆ getTheGenerator()

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

◆ getTheSeed()

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

◆ getTheSeeds()

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

◆ getTheTableSeeds()

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

◆ name()

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

◆ operator()()

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

◆ put()

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

◆ restoreDistState()

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

Definition at line 138 of file Random.h.

◆ restoreEngineStatus()

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

◆ restoreFullState()

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

◆ restoreStaticRandomStates()

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

◆ saveDistState()

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

Definition at line 135 of file Random.h.

◆ saveEngineStatus()

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

◆ saveFullState()

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

◆ saveStaticRandomStates()

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

◆ setTheEngine()

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

◆ setTheSeed()

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

◆ setTheSeeds()

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

◆ showEngineStatus()

static 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: