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);
void saveStatus(const char filename[]="JamesRand.conf") const
static std::string beginTag()
static std::string engineName()
virtual std::istream & getState(std::istream &is)
void setSeed(long seed, int dum=0)
std::vector< unsigned long > put() const
virtual ~HepJamesRandom()
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
void setSeeds(const long *seeds, int dum=0)
void flatArray(const int size, double *vect)
static const unsigned int VECTOR_STATE_SIZE
void restoreStatus(const char filename[]="JamesRand.conf")