CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include <MTwistEngine.h>
Public Member Functions | |
MTwistEngine () | |
MTwistEngine (long seed) | |
MTwistEngine (int rowIndex, int colIndex) | |
MTwistEngine (std::istream &is) | |
virtual | ~MTwistEngine () |
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[]="MTwist.conf") const |
void | restoreStatus (const char filename[]="MTwist.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) |
MTwistEngine () | |
MTwistEngine (long seed) | |
MTwistEngine (int rowIndex, int colIndex) | |
MTwistEngine (std::istream &is) | |
virtual | ~MTwistEngine () |
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[]="MTwist.conf") const |
void | restoreStatus (const char filename[]="MTwist.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) |
MTwistEngine () | |
MTwistEngine (long seed) | |
MTwistEngine (int rowIndex, int colIndex) | |
MTwistEngine (std::istream &is) | |
virtual | ~MTwistEngine () |
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[]="MTwist.conf") const |
void | restoreStatus (const char filename[]="MTwist.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) |
MTwistEngine () | |
MTwistEngine (long seed) | |
MTwistEngine (int rowIndex, int colIndex) | |
MTwistEngine (std::istream &is) | |
virtual | ~MTwistEngine () |
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[]="MTwist.conf") const |
void | restoreStatus (const char filename[]="MTwist.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 std::string | beginTag () |
static std::string | engineName () |
static std::string | beginTag () |
static std::string | engineName () |
static std::string | beginTag () |
static std::string | engineName () |
Static Public Attributes | |
static const unsigned int | VECTOR_STATE_SIZE = 626 |
Definition at line 36 of file Matrix/CLHEP/Random/MTwistEngine.h.
Definition at line 60 of file MTwistEngine.cc.
References flat(), CLHEP::HepRandom::getTheTableSeeds(), and setSeeds().
CLHEP::MTwistEngine::MTwistEngine | ( | long | seed | ) |
Definition at line 76 of file MTwistEngine.cc.
References flat(), and setSeeds().
CLHEP::MTwistEngine::MTwistEngine | ( | int | rowIndex, |
int | colIndex | ||
) |
Definition at line 85 of file MTwistEngine.cc.
References flat(), CLHEP::HepRandom::getTheTableSeeds(), and setSeeds().
CLHEP::MTwistEngine::MTwistEngine | ( | std::istream & | is | ) |
Definition at line 101 of file MTwistEngine.cc.
CLHEP::MTwistEngine::~MTwistEngine | ( | ) | [virtual] |
Definition at line 107 of file MTwistEngine.cc.
CLHEP::MTwistEngine::MTwistEngine | ( | long | seed | ) |
CLHEP::MTwistEngine::MTwistEngine | ( | int | rowIndex, |
int | colIndex | ||
) |
CLHEP::MTwistEngine::MTwistEngine | ( | std::istream & | is | ) |
virtual CLHEP::MTwistEngine::~MTwistEngine | ( | ) | [virtual] |
CLHEP::MTwistEngine::MTwistEngine | ( | long | seed | ) |
CLHEP::MTwistEngine::MTwistEngine | ( | int | rowIndex, |
int | colIndex | ||
) |
CLHEP::MTwistEngine::MTwistEngine | ( | std::istream & | is | ) |
virtual CLHEP::MTwistEngine::~MTwistEngine | ( | ) | [virtual] |
CLHEP::MTwistEngine::MTwistEngine | ( | long | seed | ) |
CLHEP::MTwistEngine::MTwistEngine | ( | int | rowIndex, |
int | colIndex | ||
) |
CLHEP::MTwistEngine::MTwistEngine | ( | std::istream & | is | ) |
virtual CLHEP::MTwistEngine::~MTwistEngine | ( | ) | [virtual] |
std::string CLHEP::MTwistEngine::beginTag | ( | ) | [static] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 331 of file MTwistEngine.cc.
static std::string CLHEP::MTwistEngine::beginTag | ( | ) | [static] |
Reimplemented from CLHEP::HepRandomEngine.
static std::string CLHEP::MTwistEngine::beginTag | ( | ) | [static] |
Reimplemented from CLHEP::HepRandomEngine.
static std::string CLHEP::MTwistEngine::beginTag | ( | ) | [static] |
Reimplemented from CLHEP::HepRandomEngine.
static std::string CLHEP::MTwistEngine::engineName | ( | ) | [inline, static] |
Definition at line 78 of file Random/CLHEP/Random/MTwistEngine.h.
static std::string CLHEP::MTwistEngine::engineName | ( | ) | [inline, static] |
Definition at line 78 of file RandomObjects/CLHEP/Random/MTwistEngine.h.
static std::string CLHEP::MTwistEngine::engineName | ( | ) | [inline, static] |
Definition at line 78 of file Random/Random/MTwistEngine.h.
static std::string CLHEP::MTwistEngine::engineName | ( | ) | [inline, static] |
Definition at line 78 of file Matrix/CLHEP/Random/MTwistEngine.h.
Referenced by restoreStatus().
double CLHEP::MTwistEngine::flat | ( | ) | [virtual] |
Implements CLHEP::HepRandomEngine.
double CLHEP::MTwistEngine::flat | ( | ) | [virtual] |
Implements CLHEP::HepRandomEngine.
double CLHEP::MTwistEngine::flat | ( | ) | [virtual] |
Implements CLHEP::HepRandomEngine.
double CLHEP::MTwistEngine::flat | ( | ) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 109 of file MTwistEngine.cc.
References CLHEP::HepRandomEngine::nearlyTwoToMinus_54(), CLHEP::HepRandomEngine::twoToMinus_32(), and CLHEP::HepRandomEngine::twoToMinus_53().
Referenced by flatArray(), and MTwistEngine().
void CLHEP::MTwistEngine::flatArray | ( | const int | size, |
double * | vect | ||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 142 of file MTwistEngine.cc.
References flat().
void CLHEP::MTwistEngine::flatArray | ( | const int | size, |
double * | vect | ||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
void CLHEP::MTwistEngine::flatArray | ( | const int | size, |
double * | vect | ||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
void CLHEP::MTwistEngine::flatArray | ( | const int | size, |
double * | vect | ||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
virtual std::istream& CLHEP::MTwistEngine::get | ( | std::istream & | is | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
std::istream & CLHEP::MTwistEngine::get | ( | std::istream & | is | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 313 of file MTwistEngine.cc.
References getState().
virtual std::istream& CLHEP::MTwistEngine::get | ( | std::istream & | is | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
virtual std::istream& CLHEP::MTwistEngine::get | ( | std::istream & | is | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
bool CLHEP::MTwistEngine::get | ( | const std::vector< unsigned long > & | v | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
bool CLHEP::MTwistEngine::get | ( | const std::vector< unsigned long > & | v | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
bool CLHEP::MTwistEngine::get | ( | const std::vector< unsigned long > & | v | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 353 of file MTwistEngine.cc.
References getState().
bool CLHEP::MTwistEngine::get | ( | const std::vector< unsigned long > & | v | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
virtual std::istream& CLHEP::MTwistEngine::getState | ( | std::istream & | is | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
virtual std::istream& CLHEP::MTwistEngine::getState | ( | std::istream & | is | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
std::istream & CLHEP::MTwistEngine::getState | ( | std::istream & | is | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 335 of file MTwistEngine.cc.
References CLHEP::HepRandomEngine::theSeed.
Referenced by get().
virtual std::istream& CLHEP::MTwistEngine::getState | ( | std::istream & | is | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
bool CLHEP::MTwistEngine::getState | ( | const std::vector< unsigned long > & | v | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
bool CLHEP::MTwistEngine::getState | ( | const std::vector< unsigned long > & | v | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
bool CLHEP::MTwistEngine::getState | ( | const std::vector< unsigned long > & | v | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 362 of file MTwistEngine.cc.
References VECTOR_STATE_SIZE.
bool CLHEP::MTwistEngine::getState | ( | const std::vector< unsigned long > & | v | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
std::string CLHEP::MTwistEngine::name | ( | ) | const [virtual] |
Implements CLHEP::HepRandomEngine.
std::string CLHEP::MTwistEngine::name | ( | ) | const [virtual] |
Implements CLHEP::HepRandomEngine.
std::string CLHEP::MTwistEngine::name | ( | ) | const [virtual] |
Implements CLHEP::HepRandomEngine.
std::string CLHEP::MTwistEngine::name | ( | ) | const [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 55 of file MTwistEngine.cc.
CLHEP::MTwistEngine::operator float | ( | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
CLHEP::MTwistEngine::operator float | ( | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
CLHEP::MTwistEngine::operator float | ( | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 224 of file MTwistEngine.cc.
References CLHEP::HepRandomEngine::twoToMinus_32().
CLHEP::MTwistEngine::operator float | ( | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
CLHEP::MTwistEngine::operator unsigned int | ( | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
CLHEP::MTwistEngine::operator unsigned int | ( | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
CLHEP::MTwistEngine::operator unsigned int | ( | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 255 of file MTwistEngine.cc.
CLHEP::MTwistEngine::operator unsigned int | ( | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
virtual std::ostream& CLHEP::MTwistEngine::put | ( | std::ostream & | os | ) | const [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
std::ostream & CLHEP::MTwistEngine::put | ( | std::ostream & | os | ) | const [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 286 of file MTwistEngine.cc.
References CLHEP::HepRandomEngine::theSeed.
virtual std::ostream& CLHEP::MTwistEngine::put | ( | std::ostream & | os | ) | const [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
virtual std::ostream& CLHEP::MTwistEngine::put | ( | std::ostream & | os | ) | const [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
std::vector<unsigned long> CLHEP::MTwistEngine::put | ( | ) | const [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
std::vector<unsigned long> CLHEP::MTwistEngine::put | ( | ) | const [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
std::vector<unsigned long> CLHEP::MTwistEngine::put | ( | ) | const [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
std::vector< unsigned long > CLHEP::MTwistEngine::put | ( | ) | const [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 303 of file MTwistEngine.cc.
void CLHEP::MTwistEngine::restoreStatus | ( | const char | filename[] = "MTwist.conf" | ) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 194 of file MTwistEngine.cc.
References CLHEP::HepRandomEngine::checkFile(), engineName(), and CLHEP::HepRandomEngine::theSeed.
void CLHEP::MTwistEngine::restoreStatus | ( | const char | filename[] = "MTwist.conf" | ) | [virtual] |
Implements CLHEP::HepRandomEngine.
void CLHEP::MTwistEngine::restoreStatus | ( | const char | filename[] = "MTwist.conf" | ) | [virtual] |
Implements CLHEP::HepRandomEngine.
void CLHEP::MTwistEngine::restoreStatus | ( | const char | filename[] = "MTwist.conf" | ) | [virtual] |
Implements CLHEP::HepRandomEngine.
void CLHEP::MTwistEngine::saveStatus | ( | const char | filename[] = "MTwist.conf" | ) | const [virtual] |
Implements CLHEP::HepRandomEngine.
void CLHEP::MTwistEngine::saveStatus | ( | const char | filename[] = "MTwist.conf" | ) | const [virtual] |
Implements CLHEP::HepRandomEngine.
void CLHEP::MTwistEngine::saveStatus | ( | const char | filename[] = "MTwist.conf" | ) | const [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 183 of file MTwistEngine.cc.
References CLHEP::HepRandomEngine::theSeed.
void CLHEP::MTwistEngine::saveStatus | ( | const char | filename[] = "MTwist.conf" | ) | const [virtual] |
Implements CLHEP::HepRandomEngine.
void CLHEP::MTwistEngine::setSeed | ( | long | seed, |
int | |||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
void CLHEP::MTwistEngine::setSeed | ( | long | seed, |
int | |||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
void CLHEP::MTwistEngine::setSeed | ( | long | seed, |
int | k | ||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 146 of file MTwistEngine.cc.
References CLHEP::HepRandomEngine::theSeed.
Referenced by setSeeds().
void CLHEP::MTwistEngine::setSeed | ( | long | seed, |
int | |||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
void CLHEP::MTwistEngine::setSeeds | ( | const long * | seeds, |
int | |||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
void CLHEP::MTwistEngine::setSeeds | ( | const long * | seeds, |
int | k | ||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 174 of file MTwistEngine.cc.
References setSeed(), and CLHEP::HepRandomEngine::theSeeds.
Referenced by MTwistEngine().
void CLHEP::MTwistEngine::setSeeds | ( | const long * | seeds, |
int | |||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
void CLHEP::MTwistEngine::setSeeds | ( | const long * | seeds, |
int | |||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
void CLHEP::MTwistEngine::showStatus | ( | ) | const [virtual] |
Implements CLHEP::HepRandomEngine.
void CLHEP::MTwistEngine::showStatus | ( | ) | const [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 209 of file MTwistEngine.cc.
References CLHEP::HepRandomEngine::theSeed.
void CLHEP::MTwistEngine::showStatus | ( | ) | const [virtual] |
Implements CLHEP::HepRandomEngine.
void CLHEP::MTwistEngine::showStatus | ( | ) | const [virtual] |
Implements CLHEP::HepRandomEngine.
static const unsigned int CLHEP::MTwistEngine::VECTOR_STATE_SIZE = 626 [static] |
Definition at line 84 of file Matrix/CLHEP/Random/MTwistEngine.h.
Referenced by getState().