CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include <MTwistEngine.h>
Inheritance diagram for CLHEP::MTwistEngine:
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) |
Static Public Member Functions | |
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 MTwistEngine.h.
CLHEP::MTwistEngine::MTwistEngine | ( | ) |
Definition at line 58 of file MTwistEngine.cc.
References flat(), CLHEP::HepRandom::getTheTableSeeds(), and setSeeds().
CLHEP::MTwistEngine::MTwistEngine | ( | long | seed | ) |
CLHEP::MTwistEngine::MTwistEngine | ( | int | rowIndex, | |
int | colIndex | |||
) |
Definition at line 83 of file MTwistEngine.cc.
References flat(), CLHEP::HepRandom::getTheTableSeeds(), and setSeeds().
CLHEP::MTwistEngine::MTwistEngine | ( | std::istream & | is | ) |
Definition at line 99 of file MTwistEngine.cc.
CLHEP::MTwistEngine::~MTwistEngine | ( | ) | [virtual] |
Definition at line 105 of file MTwistEngine.cc.
std::string CLHEP::MTwistEngine::beginTag | ( | ) | [static] |
static std::string CLHEP::MTwistEngine::engineName | ( | ) | [inline, static] |
double CLHEP::MTwistEngine::flat | ( | ) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 107 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 140 of file MTwistEngine.cc.
References flat().
bool CLHEP::MTwistEngine::get | ( | const std::vector< unsigned long > & | v | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 351 of file MTwistEngine.cc.
References getState().
std::istream & CLHEP::MTwistEngine::get | ( | std::istream & | is | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 311 of file MTwistEngine.cc.
References getState().
bool CLHEP::MTwistEngine::getState | ( | const std::vector< unsigned long > & | v | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 360 of file MTwistEngine.cc.
References VECTOR_STATE_SIZE.
std::istream & CLHEP::MTwistEngine::getState | ( | std::istream & | is | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 333 of file MTwistEngine.cc.
References CLHEP::HepRandomEngine::theSeed.
Referenced by get().
std::string CLHEP::MTwistEngine::name | ( | ) | const [virtual] |
CLHEP::MTwistEngine::operator float | ( | ) | [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 222 of file MTwistEngine.cc.
References CLHEP::HepRandomEngine::twoToMinus_32().
CLHEP::MTwistEngine::operator unsigned int | ( | ) | [virtual] |
std::vector< unsigned long > CLHEP::MTwistEngine::put | ( | ) | const [virtual] |
std::ostream & CLHEP::MTwistEngine::put | ( | std::ostream & | os | ) | const [virtual] |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 284 of file MTwistEngine.cc.
References CLHEP::HepRandomEngine::theSeed.
void CLHEP::MTwistEngine::restoreStatus | ( | const char | filename[] = "MTwist.conf" |
) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 192 of file MTwistEngine.cc.
References CLHEP::HepRandomEngine::checkFile(), engineName(), and CLHEP::HepRandomEngine::theSeed.
void CLHEP::MTwistEngine::saveStatus | ( | const char | filename[] = "MTwist.conf" |
) | const [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 181 of file MTwistEngine.cc.
References CLHEP::HepRandomEngine::theSeed.
void CLHEP::MTwistEngine::setSeed | ( | long | seed, | |
int | ||||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 144 of file MTwistEngine.cc.
References CLHEP::HepRandomEngine::theSeed.
Referenced by setSeeds().
void CLHEP::MTwistEngine::setSeeds | ( | const long * | seeds, | |
int | ||||
) | [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 172 of file MTwistEngine.cc.
References setSeed(), and CLHEP::HepRandomEngine::theSeeds.
Referenced by MTwistEngine().
void CLHEP::MTwistEngine::showStatus | ( | ) | const [virtual] |
Implements CLHEP::HepRandomEngine.
Definition at line 207 of file MTwistEngine.cc.
References CLHEP::HepRandomEngine::theSeed.
const unsigned int CLHEP::MTwistEngine::VECTOR_STATE_SIZE = 626 [static] |