42#include "CLHEP/Random/defs.h"
43#include "CLHEP/Random/RandomEngine.h"
44#include "CLHEP/Random/Hurd288Engine.h"
67 void flatArray(
const int size,
double * vect );
73 void setSeeds(
const long * seeds,
int );
77 void saveStatus(
const char filename[] =
"TripleRand.conf" )
const;
80 void restoreStatus(
const char filename[] =
"TripleRand.conf" );
88 operator unsigned int();
90 virtual std::ostream &
put (std::ostream & os)
const;
91 virtual std::istream &
get (std::istream & is);
93 virtual std::istream &
getState ( std::istream & is );
95 std::string
name()
const;
98 std::vector<unsigned long>
put ()
const;
99 bool get (
const std::vector<unsigned long> & v);
100 bool getState (
const std::vector<unsigned long> & v);
114 Tausworthe(
unsigned int seed);
116 operator unsigned int();
118 void put( std::ostream & os )
const;
119 void put(std::vector<unsigned long> & v)
const;
120 void get( std::istream & is );
121 bool get(std::vector<unsigned long>::const_iterator & iv);
126 unsigned int words[4];
137 IntegerCong(
unsigned int seed,
int streamNumber);
139 operator unsigned int();
141 void put( std::ostream & os )
const;
142 void put(std::vector<unsigned long> & v)
const;
143 void get( std::istream & is );
144 bool get(std::vector<unsigned long>::const_iterator & iv);
148 unsigned int state, multiplier, addend;
151 Hurd288Engine & Hurd();
153 const Tausworthe & ConstTaus()
const;
154 const IntegerCong & ConstCong()
const;
155 const Hurd288Engine & ConstHurd()
const;
158 Tausworthe tausworthe;
159 IntegerCong integerCong;
166#ifdef ENABLE_BACKWARDS_COMPATIBILITY
168using namespace CLHEP;
virtual std::istream & get(std::istream &is)
static const unsigned int VECTOR_STATE_SIZE
virtual std::istream & getState(std::istream &is)
std::vector< unsigned long > put() const
void flatArray(const int size, double *vect)
void saveStatus(const char filename[]="TripleRand.conf") const
void setSeed(long seed, int)
void restoreStatus(const char filename[]="TripleRand.conf")
void setSeeds(const long *seeds, int)
static std::string engineName()
static std::string beginTag()