27#include "CLHEP/Random/defs.h"
28#include "CLHEP/Random/RandomEngine.h"
50 void flatArray(
const int size,
double* vect);
56 void setSeeds(
const long * seeds,
int);
60 void saveStatus(
const char filename[] =
"MTwist.conf")
const;
71 operator unsigned int();
73 virtual std::ostream &
put (std::ostream & os)
const;
74 virtual std::istream &
get (std::istream & is);
76 virtual std::istream &
getState ( std::istream & is );
78 std::string
name()
const;
81 std::vector<unsigned long>
put ()
const;
82 bool get (
const std::vector<unsigned long> & v);
83 bool getState (
const std::vector<unsigned long> & v);
92 enum{ NminusM = 227, M = 397, N = 624};
98#ifdef ENABLE_BACKWARDS_COMPATIBILITY
100using namespace CLHEP;
virtual std::istream & get(std::istream &is)
virtual std::istream & getState(std::istream &is)
void flatArray(const int size, double *vect)
void restoreStatus(const char filename[]="MTwist.conf")
static std::string engineName()
void setSeeds(const long *seeds, int)
void saveStatus(const char filename[]="MTwist.conf") const
std::vector< unsigned long > put() const
static const unsigned int VECTOR_STATE_SIZE
void setSeed(long seed, int)
static std::string beginTag()