CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include <RandEngine.h>
Public Member Functions | |
RandEngine (std::istream &is) | |
RandEngine () | |
RandEngine (long seed) | |
RandEngine (int rowIndex, int colIndex) | |
virtual | ~RandEngine () |
double | flat () |
void | flatArray (const int size, double *vect) |
void | setSeed (long seed, int dum=0) |
void | setSeeds (const long *seeds, int dum=0) |
void | saveStatus (const char filename[]="Rand.conf") const |
void | restoreStatus (const char filename[]="Rand.conf") |
void | showStatus () const |
operator unsigned int () | |
virtual std::ostream & | put (std::ostream &os) const |
virtual std::istream & | get (std::istream &is) |
virtual std::istream & | getState (std::istream &is) |
std::string | name () const |
std::vector< unsigned long > | put () const |
bool | get (const std::vector< unsigned long > &v) |
bool | getState (const std::vector< unsigned long > &v) |
RandEngine (std::istream &is) | |
RandEngine () | |
RandEngine (long seed) | |
RandEngine (int rowIndex, int colIndex) | |
virtual | ~RandEngine () |
double | flat () |
void | flatArray (const int size, double *vect) |
void | setSeed (long seed, int dum=0) |
void | setSeeds (const long *seeds, int dum=0) |
void | saveStatus (const char filename[]="Rand.conf") const |
void | restoreStatus (const char filename[]="Rand.conf") |
void | showStatus () const |
operator unsigned int () | |
virtual std::ostream & | put (std::ostream &os) const |
virtual std::istream & | get (std::istream &is) |
virtual std::istream & | getState (std::istream &is) |
std::string | name () const |
std::vector< unsigned long > | put () const |
bool | get (const std::vector< unsigned long > &v) |
bool | getState (const std::vector< unsigned long > &v) |
RandEngine (std::istream &is) | |
RandEngine () | |
RandEngine (long seed) | |
RandEngine (int rowIndex, int colIndex) | |
virtual | ~RandEngine () |
double | flat () |
void | flatArray (const int size, double *vect) |
void | setSeed (long seed, int dum=0) |
void | setSeeds (const long *seeds, int dum=0) |
void | saveStatus (const char filename[]="Rand.conf") const |
void | restoreStatus (const char filename[]="Rand.conf") |
void | showStatus () const |
operator unsigned int () | |
virtual std::ostream & | put (std::ostream &os) const |
virtual std::istream & | get (std::istream &is) |
virtual std::istream & | getState (std::istream &is) |
std::string | name () const |
std::vector< unsigned long > | put () const |
bool | get (const std::vector< unsigned long > &v) |
bool | getState (const std::vector< unsigned long > &v) |
RandEngine (std::istream &is) | |
RandEngine () | |
RandEngine (long seed) | |
RandEngine (int rowIndex, int colIndex) | |
virtual | ~RandEngine () |
double | flat () |
void | flatArray (const int size, double *vect) |
void | setSeed (long seed, int dum=0) |
void | setSeeds (const long *seeds, int dum=0) |
void | saveStatus (const char filename[]="Rand.conf") const |
void | restoreStatus (const char filename[]="Rand.conf") |
void | showStatus () const |
operator unsigned int () | |
virtual std::ostream & | put (std::ostream &os) const |
virtual std::istream & | get (std::istream &is) |
virtual std::istream & | getState (std::istream &is) |
std::string | name () const |
std::vector< unsigned long > | put () const |
bool | get (const std::vector< unsigned long > &v) |
bool | getState (const std::vector< unsigned long > &v) |
![]() | |
HepRandomEngine () | |
virtual | ~HepRandomEngine () |
bool | operator== (const HepRandomEngine &engine) |
bool | operator!= (const HepRandomEngine &engine) |
long | getSeed () const |
const long * | getSeeds () const |
virtual | operator double () |
virtual | operator float () |
HepRandomEngine () | |
virtual | ~HepRandomEngine () |
bool | operator== (const HepRandomEngine &engine) |
bool | operator!= (const HepRandomEngine &engine) |
long | getSeed () const |
const long * | getSeeds () const |
virtual | operator double () |
virtual | operator float () |
HepRandomEngine () | |
virtual | ~HepRandomEngine () |
bool | operator== (const HepRandomEngine &engine) |
bool | operator!= (const HepRandomEngine &engine) |
long | getSeed () const |
const long * | getSeeds () const |
virtual | operator double () |
virtual | operator float () |
HepRandomEngine () | |
virtual | ~HepRandomEngine () |
bool | operator== (const HepRandomEngine &engine) |
bool | operator!= (const HepRandomEngine &engine) |
long | getSeed () const |
const long * | getSeeds () const |
virtual | operator double () |
virtual | operator float () |
Static Public Member Functions | |
static std::string | beginTag () |
static std::string | engineName () |
static std::string | beginTag () |
static std::string | engineName () |
static std::string | beginTag () |
static std::string | engineName () |
static std::string | beginTag () |
static std::string | engineName () |
![]() | |
static std::string | beginTag () |
static HepRandomEngine * | newEngine (std::istream &is) |
static HepRandomEngine * | newEngine (const std::vector< unsigned long > &v) |
static std::string | beginTag () |
static HepRandomEngine * | newEngine (std::istream &is) |
static HepRandomEngine * | newEngine (const std::vector< unsigned long > &v) |
static std::string | beginTag () |
static HepRandomEngine * | newEngine (std::istream &is) |
static HepRandomEngine * | newEngine (const std::vector< unsigned long > &v) |
static std::string | beginTag () |
static HepRandomEngine * | newEngine (std::istream &is) |
static HepRandomEngine * | newEngine (const std::vector< unsigned long > &v) |
Static Public Attributes | |
static const unsigned int | VECTOR_STATE_SIZE = 3 |
Additional Inherited Members | |
![]() | |
static double | exponent_bit_32 () |
static double | mantissa_bit_12 () |
static double | mantissa_bit_24 () |
static double | mantissa_bit_32 () |
static double | twoToMinus_32 () |
static double | twoToMinus_48 () |
static double | twoToMinus_49 () |
static double | twoToMinus_53 () |
static double | nearlyTwoToMinus_54 () |
static bool | checkFile (std::istream &file, const std::string &filename, const std::string &classname, const std::string &methodname) |
static double | exponent_bit_32 () |
static double | mantissa_bit_12 () |
static double | mantissa_bit_24 () |
static double | mantissa_bit_32 () |
static double | twoToMinus_32 () |
static double | twoToMinus_48 () |
static double | twoToMinus_49 () |
static double | twoToMinus_53 () |
static double | nearlyTwoToMinus_54 () |
static bool | checkFile (std::istream &file, const std::string &filename, const std::string &classname, const std::string &methodname) |
static double | exponent_bit_32 () |
static double | mantissa_bit_12 () |
static double | mantissa_bit_24 () |
static double | mantissa_bit_32 () |
static double | twoToMinus_32 () |
static double | twoToMinus_48 () |
static double | twoToMinus_49 () |
static double | twoToMinus_53 () |
static double | nearlyTwoToMinus_54 () |
static bool | checkFile (std::istream &file, const std::string &filename, const std::string &classname, const std::string &methodname) |
static double | exponent_bit_32 () |
static double | mantissa_bit_12 () |
static double | mantissa_bit_24 () |
static double | mantissa_bit_32 () |
static double | twoToMinus_32 () |
static double | twoToMinus_48 () |
static double | twoToMinus_49 () |
static double | twoToMinus_53 () |
static double | nearlyTwoToMinus_54 () |
static bool | checkFile (std::istream &file, const std::string &filename, const std::string &classname, const std::string &methodname) |
![]() | |
long | theSeed |
const long * | theSeeds |
Definition at line 46 of file Matrix/CLHEP/Random/RandEngine.h.
CLHEP::RandEngine::RandEngine | ( | std::istream & | is | ) |
Definition at line 118 of file RandEngine.cc.
CLHEP::RandEngine::RandEngine | ( | ) |
Definition at line 100 of file RandEngine.cc.
References CLHEP::HepRandom::getTheTableSeeds(), setSeed(), setSeeds(), and CLHEP::HepRandomEngine::theSeed.
CLHEP::RandEngine::RandEngine | ( | long | seed | ) |
Definition at line 75 of file RandEngine.cc.
References setSeed(), setSeeds(), and CLHEP::HepRandomEngine::theSeed.
CLHEP::RandEngine::RandEngine | ( | int | rowIndex, |
int | colIndex | ||
) |
Definition at line 83 of file RandEngine.cc.
References CLHEP::HepRandom::getTheTableSeeds(), setSeed(), setSeeds(), and CLHEP::HepRandomEngine::theSeed.
|
virtual |
Definition at line 124 of file RandEngine.cc.
CLHEP::RandEngine::RandEngine | ( | std::istream & | is | ) |
CLHEP::RandEngine::RandEngine | ( | ) |
CLHEP::RandEngine::RandEngine | ( | long | seed | ) |
CLHEP::RandEngine::RandEngine | ( | int | rowIndex, |
int | colIndex | ||
) |
|
virtual |
CLHEP::RandEngine::RandEngine | ( | std::istream & | is | ) |
CLHEP::RandEngine::RandEngine | ( | ) |
CLHEP::RandEngine::RandEngine | ( | long | seed | ) |
CLHEP::RandEngine::RandEngine | ( | int | rowIndex, |
int | colIndex | ||
) |
|
virtual |
CLHEP::RandEngine::RandEngine | ( | std::istream & | is | ) |
CLHEP::RandEngine::RandEngine | ( | ) |
CLHEP::RandEngine::RandEngine | ( | long | seed | ) |
CLHEP::RandEngine::RandEngine | ( | int | rowIndex, |
int | colIndex | ||
) |
|
virtual |
|
static |
Definition at line 413 of file RandEngine.cc.
|
static |
|
static |
|
static |
|
inlinestatic |
Definition at line 98 of file Matrix/CLHEP/Random/RandEngine.h.
Referenced by restoreStatus().
|
inlinestatic |
Definition at line 98 of file Random/CLHEP/Random/RandEngine.h.
|
inlinestatic |
Definition at line 98 of file Random/Random/RandEngine.h.
|
inlinestatic |
Definition at line 98 of file RandomObjects/CLHEP/Random/RandEngine.h.
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 352 of file RandEngine.cc.
References CLHEP::RandEngineBuilder< int >::thirtyTwoRandomBits().
Referenced by flatArray(), getState(), getState(), and restoreStatus().
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 456 of file RandEngine.cc.
References getState().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 391 of file RandEngine.cc.
References getState().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 465 of file RandEngine.cc.
References flat(), setSeed(), CLHEP::HepRandomEngine::theSeed, and VECTOR_STATE_SIZE.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 417 of file RandEngine.cc.
References flat(), getState(), CLHEP::possibleKeywordInput(), setSeed(), CLHEP::HepRandomEngine::theSeed, and VECTOR_STATE_SIZE.
Referenced by get(), get(), getState(), and restoreStatus().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 73 of file RandEngine.cc.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 368 of file RandEngine.cc.
References CLHEP::RandEngineBuilder< int >::thirtyTwoRandomBits().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 383 of file RandEngine.cc.
References CLHEP::HepRandomEngine::theSeed.
Referenced by saveStatus().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 372 of file RandEngine.cc.
References CLHEP::HepRandomEngine::theSeed.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 168 of file RandEngine.cc.
References CLHEP::HepRandomEngine::checkFile(), engineName(), flat(), getState(), CLHEP::possibleKeywordInput(), setSeed(), CLHEP::HepRandomEngine::theSeed, and VECTOR_STATE_SIZE.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 139 of file RandEngine.cc.
References put(), and CLHEP::HepRandomEngine::theSeed.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 126 of file RandEngine.cc.
References CLHEP::HepRandomEngine::theSeed.
Referenced by getState(), getState(), RandEngine(), RandEngine(), RandEngine(), restoreStatus(), and setSeeds().
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 133 of file RandEngine.cc.
References setSeed(), and CLHEP::HepRandomEngine::theSeeds.
Referenced by RandEngine(), RandEngine(), and RandEngine().
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 213 of file RandEngine.cc.
References CLHEP::HepRandomEngine::theSeed.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
virtual |
Implements CLHEP::HepRandomEngine.
|
static |
Definition at line 104 of file Matrix/CLHEP/Random/RandEngine.h.
Referenced by getState(), getState(), and restoreStatus().