CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include <DualRand.h>
Inheritance diagram for CLHEP::DualRand:
Public Member Functions | |
DualRand () | |
DualRand (long seed) | |
DualRand (std::istream &is) | |
DualRand (int rowIndex, int colIndex) | |
virtual | ~DualRand () |
double | flat () |
void | flatArray (const int size, double *vect) |
void | setSeed (long seed, int) |
void | setSeeds (const long *seeds, int) |
void | saveStatus (const char filename[]="DualRand.conf") const |
void | restoreStatus (const char filename[]="DualRand.conf") |
void | showStatus () const |
operator float () | |
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) |
Static Public Member Functions | |
static std::string | beginTag () |
static std::string | engineName () |
Static Public Attributes | |
static const unsigned int | VECTOR_STATE_SIZE = 9 |
Classes | |
class | IntegerCong |
class | Tausworthe |
Definition at line 51 of file DualRand.h.
CLHEP::DualRand::DualRand | ( | ) |
CLHEP::DualRand::DualRand | ( | long | seed | ) |
CLHEP::DualRand::DualRand | ( | std::istream & | is | ) |
Definition at line 91 of file DualRand.cc.
CLHEP::DualRand::DualRand | ( | int | rowIndex, | |
int | colIndex | |||
) |
CLHEP::DualRand::~DualRand | ( | ) | [virtual] |
Definition at line 105 of file DualRand.cc.
std::string CLHEP::DualRand::beginTag | ( | ) | [static] |
static std::string CLHEP::DualRand::engineName | ( | ) | [inline, static] |
double CLHEP::DualRand::flat | ( | ) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 107 of file DualRand.cc.
References CLHEP::HepRandomEngine::nearlyTwoToMinus_54(), CLHEP::HepRandomEngine::twoToMinus_32(), and CLHEP::HepRandomEngine::twoToMinus_53().
Referenced by flatArray(), and main().
void CLHEP::DualRand::flatArray | ( | const int | size, | |
double * | vect | |||
) | [virtual] |
bool CLHEP::DualRand::get | ( | const std::vector< unsigned long > & | v | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 308 of file DualRand.cc.
References getState(), and VECTOR_STATE_SIZE.
std::istream & CLHEP::DualRand::get | ( | std::istream & | is | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 251 of file DualRand.cc.
References getState().
bool CLHEP::DualRand::getState | ( | const std::vector< unsigned long > & | v | ) | [virtual] |
std::istream & CLHEP::DualRand::getState | ( | std::istream & | is | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 272 of file DualRand.cc.
References CLHEP::possibleKeywordInput(), CLHEP::HepRandomEngine::theSeed, and VECTOR_STATE_SIZE.
Referenced by get(), and restoreStatus().
std::string CLHEP::DualRand::name | ( | ) | const [virtual] |
CLHEP::DualRand::operator float | ( | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 212 of file DualRand.cc.
References CLHEP::HepRandomEngine::nearlyTwoToMinus_54(), and CLHEP::HepRandomEngine::twoToMinus_32().
CLHEP::DualRand::operator unsigned int | ( | ) | [virtual] |
std::vector< unsigned long > CLHEP::DualRand::put | ( | ) | const [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 243 of file DualRand.cc.
Referenced by put(), and saveStatus().
std::ostream & CLHEP::DualRand::put | ( | std::ostream & | os | ) | const [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 222 of file DualRand.cc.
References put(), and CLHEP::HepRandomEngine::theSeed.
void CLHEP::DualRand::restoreStatus | ( | const char | filename[] = "DualRand.conf" |
) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 162 of file DualRand.cc.
References CLHEP::HepRandomEngine::checkFile(), engineName(), getState(), CLHEP::possibleKeywordInput(), CLHEP::HepRandomEngine::theSeed, and VECTOR_STATE_SIZE.
void CLHEP::DualRand::saveStatus | ( | const char | filename[] = "DualRand.conf" |
) | const [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 133 of file DualRand.cc.
References put(), and CLHEP::HepRandomEngine::theSeed.
void CLHEP::DualRand::setSeed | ( | long | seed, | |
int | ||||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 122 of file DualRand.cc.
References CLHEP::HepRandomEngine::theSeed.
Referenced by setSeeds().
void CLHEP::DualRand::setSeeds | ( | const long * | seeds, | |
int | ||||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 128 of file DualRand.cc.
References setSeed(), and CLHEP::HepRandomEngine::theSeeds.
void CLHEP::DualRand::showStatus | ( | ) | const [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 197 of file DualRand.cc.
References CLHEP::HepRandomEngine::theSeed.
const unsigned int CLHEP::DualRand::VECTOR_STATE_SIZE = 9 [static] |