CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include <TripleRand.h>
Inheritance diagram for CLHEP::TripleRand:
Public Member Functions | |
TripleRand () | |
TripleRand (long seed) | |
TripleRand (std::istream &is) | |
TripleRand (int rowIndex, int colIndex) | |
virtual | ~TripleRand () |
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[]="TripleRand.conf") const |
void | restoreStatus (const char filename[]="TripleRand.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 = 20 |
Classes | |
class | IntegerCong |
class | Tausworthe |
Definition at line 52 of file TripleRand.h.
CLHEP::TripleRand::TripleRand | ( | ) |
CLHEP::TripleRand::TripleRand | ( | long | seed | ) |
CLHEP::TripleRand::TripleRand | ( | std::istream & | is | ) |
Definition at line 77 of file TripleRand.cc.
CLHEP::TripleRand::TripleRand | ( | int | rowIndex, | |
int | colIndex | |||
) |
CLHEP::TripleRand::~TripleRand | ( | ) | [virtual] |
Definition at line 92 of file TripleRand.cc.
std::string CLHEP::TripleRand::beginTag | ( | ) | [static] |
static std::string CLHEP::TripleRand::engineName | ( | ) | [inline, static] |
double CLHEP::TripleRand::flat | ( | ) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 94 of file TripleRand.cc.
References CLHEP::HepRandomEngine::nearlyTwoToMinus_54(), CLHEP::HepRandomEngine::twoToMinus_32(), and CLHEP::HepRandomEngine::twoToMinus_53().
Referenced by flatArray().
void CLHEP::TripleRand::flatArray | ( | const int | size, | |
double * | vect | |||
) | [virtual] |
bool CLHEP::TripleRand::get | ( | const std::vector< unsigned long > & | v | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 307 of file TripleRand.cc.
References getState(), and VECTOR_STATE_SIZE.
std::istream & CLHEP::TripleRand::get | ( | std::istream & | is | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 249 of file TripleRand.cc.
References getState().
bool CLHEP::TripleRand::getState | ( | const std::vector< unsigned long > & | v | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 321 of file TripleRand.cc.
References CLHEP::Hurd288Engine::get().
std::istream & CLHEP::TripleRand::getState | ( | std::istream & | is | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 270 of file TripleRand.cc.
References CLHEP::possibleKeywordInput(), CLHEP::HepRandomEngine::theSeed, and VECTOR_STATE_SIZE.
Referenced by get(), and restoreStatus().
std::string CLHEP::TripleRand::name | ( | ) | const [virtual] |
CLHEP::TripleRand::operator float | ( | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 199 of file TripleRand.cc.
References CLHEP::HepRandomEngine::nearlyTwoToMinus_54(), and CLHEP::HepRandomEngine::twoToMinus_32().
CLHEP::TripleRand::operator unsigned int | ( | ) | [virtual] |
std::vector< unsigned long > CLHEP::TripleRand::put | ( | ) | const [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 237 of file TripleRand.cc.
References CLHEP::Hurd288Engine::put().
Referenced by put(), and saveStatus().
std::ostream & CLHEP::TripleRand::put | ( | std::ostream & | os | ) | const [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 215 of file TripleRand.cc.
References put(), and CLHEP::HepRandomEngine::theSeed.
void CLHEP::TripleRand::restoreStatus | ( | const char | filename[] = "TripleRand.conf" |
) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 149 of file TripleRand.cc.
References CLHEP::HepRandomEngine::checkFile(), engineName(), getState(), CLHEP::possibleKeywordInput(), CLHEP::HepRandomEngine::theSeed, and VECTOR_STATE_SIZE.
void CLHEP::TripleRand::saveStatus | ( | const char | filename[] = "TripleRand.conf" |
) | const [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 122 of file TripleRand.cc.
References put(), and CLHEP::HepRandomEngine::theSeed.
void CLHEP::TripleRand::setSeed | ( | long | seed, | |
int | ||||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 110 of file TripleRand.cc.
References CLHEP::HepRandomEngine::theSeed.
Referenced by setSeeds().
void CLHEP::TripleRand::setSeeds | ( | const long * | seeds, | |
int | ||||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 117 of file TripleRand.cc.
References setSeed(), and CLHEP::HepRandomEngine::theSeeds.
void CLHEP::TripleRand::showStatus | ( | ) | const [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 185 of file TripleRand.cc.
References CLHEP::HepRandomEngine::theSeed.
const unsigned int CLHEP::TripleRand::VECTOR_STATE_SIZE = 20 [static] |