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" );
83 operator unsigned int();
86 virtual std::ostream &
put (std::ostream & os)
const;
87 virtual std::istream &
get (std::istream & is);
89 virtual std::istream &
getState ( std::istream & is );
91 std::string
name()
const;
92 static std::string
engineName() {
return "HepJamesRandom";}
94 std::vector<unsigned long>
put ()
const;
95 bool get (
const std::vector<unsigned long> & v);
96 bool getState (
const std::vector<unsigned long> & v);
void setSeed(long seed, int dum=0)
void saveStatus(const char filename[]="JamesRand.conf") const
static std::string beginTag()
void flatArray(const int size, double *vect)
std::vector< unsigned long > put() const
static const unsigned int VECTOR_STATE_SIZE
virtual ~HepJamesRandom()
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
void setSeeds(const long *seeds, int dum=0)
virtual std::istream & getState(std::istream &is)
static std::string engineName()
void restoreStatus(const char filename[]="JamesRand.conf")