32#ifndef HepJamesRandom_h
33#define HepJamesRandom_h 1
58 void flatArray (
const int size,
double* vect);
61 void setSeed(
long seed,
int dum=0);
64 void setSeeds(
const long * seeds,
int dum=0);
68 void saveStatus(
const char filename[] =
"JamesRand.conf" )
const;
71 void restoreStatus(
const char filename[] =
"JamesRand.conf" );
82 operator unsigned int();
85 virtual std::ostream &
put (std::ostream & os)
const;
86 virtual std::istream &
get (std::istream & is);
88 virtual std::istream &
getState ( std::istream & is );
90 std::string
name()
const;
91 static std::string
engineName() {
return "HepJamesRandom";}
93 std::vector<unsigned long>
put ()
const;
94 bool get (
const std::vector<unsigned long> & v);
95 bool getState (
const std::vector<unsigned long> & v);
void flatArray(const int size, double *vect)
static std::string beginTag()
static std::string engineName()
void setSeeds(const long *seeds, int dum=0)
virtual std::istream & getState(std::istream &is)
virtual ~HepJamesRandom()
std::vector< unsigned long > put() const
void setSeed(long seed, int dum=0)
virtual std::istream & get(std::istream &is)
void saveStatus(const char filename[]="JamesRand.conf") const
void restoreStatus(const char filename[]="JamesRand.conf")
static const unsigned int VECTOR_STATE_SIZE