CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include <Ranlux64Engine.h>
Inheritance diagram for CLHEP::Ranlux64Engine:
Public Member Functions | |
Ranlux64Engine (std::istream &is) | |
Ranlux64Engine () | |
Ranlux64Engine (long seed, int lux=1) | |
Ranlux64Engine (int rowIndex, int colIndex, int lux) | |
virtual | ~Ranlux64Engine () |
double | flat () |
void | flatArray (const int size, double *vect) |
void | setSeed (long seed, int lux=1) |
void | setSeeds (const long *seeds, int lux=1) |
void | saveStatus (const char filename[]="Ranlux64.conf") const |
void | restoreStatus (const char filename[]="Ranlux64.conf") |
void | showStatus () const |
int | getLuxury () const |
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 = 30 |
Definition at line 50 of file Ranlux64Engine.h.
CLHEP::Ranlux64Engine::Ranlux64Engine | ( | std::istream & | is | ) |
Definition at line 145 of file Ranlux64Engine.cc.
CLHEP::Ranlux64Engine::Ranlux64Engine | ( | ) |
Definition at line 102 of file Ranlux64Engine.cc.
References CLHEP::HepRandom::getTheTableSeeds(), and setSeeds().
CLHEP::Ranlux64Engine::Ranlux64Engine | ( | long | seed, | |
int | lux = 1 | |||
) |
CLHEP::Ranlux64Engine::Ranlux64Engine | ( | int | rowIndex, | |
int | colIndex, | |||
int | lux | |||
) |
Definition at line 131 of file Ranlux64Engine.cc.
References CLHEP::HepRandom::getTheTableSeeds(), and setSeeds().
CLHEP::Ranlux64Engine::~Ranlux64Engine | ( | ) | [virtual] |
Definition at line 151 of file Ranlux64Engine.cc.
std::string CLHEP::Ranlux64Engine::beginTag | ( | ) | [static] |
static std::string CLHEP::Ranlux64Engine::engineName | ( | ) | [inline, static] |
double CLHEP::Ranlux64Engine::flat | ( | ) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 153 of file Ranlux64Engine.cc.
References CLHEP::HepRandomEngine::twoToMinus_49().
Referenced by check_sequence(), flatArray(), and valid_range().
void CLHEP::Ranlux64Engine::flatArray | ( | const int | size, | |
double * | vect | |||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 370 of file Ranlux64Engine.cc.
References flat().
bool CLHEP::Ranlux64Engine::get | ( | const std::vector< unsigned long > & | v | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 718 of file Ranlux64Engine.cc.
References getState().
std::istream & CLHEP::Ranlux64Engine::get | ( | std::istream & | is | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 654 of file Ranlux64Engine.cc.
References getState().
int CLHEP::Ranlux64Engine::getLuxury | ( | ) | const [inline] |
Definition at line 84 of file Ranlux64Engine.h.
bool CLHEP::Ranlux64Engine::getState | ( | const std::vector< unsigned long > & | v | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 727 of file Ranlux64Engine.cc.
References CLHEP::DoubConv::longs2double(), and VECTOR_STATE_SIZE.
std::istream & CLHEP::Ranlux64Engine::getState | ( | std::istream & | is | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 676 of file Ranlux64Engine.cc.
References CLHEP::possibleKeywordInput(), CLHEP::HepRandomEngine::theSeed, and VECTOR_STATE_SIZE.
Referenced by get(), and restoreStatus().
std::string CLHEP::Ranlux64Engine::name | ( | ) | const [virtual] |
std::vector< unsigned long > CLHEP::Ranlux64Engine::put | ( | ) | const [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 638 of file Ranlux64Engine.cc.
References CLHEP::DoubConv::dto2longs().
Referenced by put(), and saveStatus().
std::ostream & CLHEP::Ranlux64Engine::put | ( | std::ostream & | os | ) | const [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 613 of file Ranlux64Engine.cc.
References put(), and CLHEP::HepRandomEngine::theSeed.
void CLHEP::Ranlux64Engine::restoreStatus | ( | const char | filename[] = "Ranlux64.conf" |
) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 556 of file Ranlux64Engine.cc.
References CLHEP::HepRandomEngine::checkFile(), engineName(), getState(), CLHEP::possibleKeywordInput(), CLHEP::HepRandomEngine::theSeed, and VECTOR_STATE_SIZE.
void CLHEP::Ranlux64Engine::saveStatus | ( | const char | filename[] = "Ranlux64.conf" |
) | const [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 524 of file Ranlux64Engine.cc.
References put(), and CLHEP::HepRandomEngine::theSeed.
void CLHEP::Ranlux64Engine::setSeed | ( | long | seed, | |
int | lux = 1 | |||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 376 of file Ranlux64Engine.cc.
References CLHEP::HepRandomEngine::theSeed, CLHEP::HepRandomEngine::twoToMinus_32(), and CLHEP::HepRandomEngine::twoToMinus_48().
Referenced by check_sequence(), setSeeds(), and valid_range().
void CLHEP::Ranlux64Engine::setSeeds | ( | const long * | seeds, | |
int | lux = 1 | |||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 451 of file Ranlux64Engine.cc.
References setSeed(), CLHEP::HepRandomEngine::theSeed, CLHEP::HepRandomEngine::theSeeds, CLHEP::HepRandomEngine::twoToMinus_32(), and CLHEP::HepRandomEngine::twoToMinus_48().
Referenced by Ranlux64Engine().
void CLHEP::Ranlux64Engine::showStatus | ( | ) | const [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 597 of file Ranlux64Engine.cc.
References CLHEP::HepRandomEngine::theSeed.
const unsigned int CLHEP::Ranlux64Engine::VECTOR_STATE_SIZE = 30 [static] |