33#ifndef HepJamesRandom_h
34#define HepJamesRandom_h 1
59 void flatArray (
const int size,
double* vect);
62 void setSeed(
long seed,
int dum=0);
65 void setSeeds(
const long * seeds,
int dum=0);
69 void saveStatus(
const char filename[] =
"JamesRand.conf" )
const;
72 void restoreStatus(
const char filename[] =
"JamesRand.conf" );
79 operator unsigned int();
82 virtual std::ostream &
put (std::ostream & os)
const;
83 virtual std::istream &
get (std::istream & is);
85 virtual std::istream &
getState ( std::istream & is );
87 std::string
name()
const;
88 static std::string
engineName() {
return "HepJamesRandom";}
90 std::vector<unsigned long>
put ()
const;
91 bool get (
const std::vector<unsigned long> & v);
92 bool getState (
const std::vector<unsigned long> & v);
102 static int numEngines;
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