41#ifndef HepRanshiEngine_h
42#define HepRanshiEngine_h
44#include "CLHEP/Random/defs.h"
45#include "CLHEP/Random/RandomEngine.h"
67 void flatArray(
const int size,
double* vect);
73 void setSeeds(
const long* seeds,
int);
77 void saveStatus(
const char filename[] =
"RanshiEngine.conf")
const;
80 void restoreStatus(
const char filename[] =
"RanshiEngine.conf");
89 operator unsigned int();
91 virtual std::ostream &
put (std::ostream & os)
const;
92 virtual std::istream &
get (std::istream & is);
94 virtual std::istream &
getState ( std::istream & is );
96 std::string
name()
const;
99 std::vector<unsigned long>
put ()
const;
100 bool get (
const std::vector<unsigned long> & v);
101 bool getState (
const std::vector<unsigned long> & v);
104 enum {numBuff = 512};
106 unsigned int halfBuff, numFlats;
107 unsigned int buffer[numBuff];
108 unsigned int redSpin;
110 static const unsigned int VECTOR_STATE_SIZE = numBuff + 4;
116#ifdef ENABLE_BACKWARDS_COMPATIBILITY
118using namespace CLHEP;
virtual std::istream & getState(std::istream &is)
static std::string beginTag()
void flatArray(const int size, double *vect)
virtual std::istream & get(std::istream &is)
void saveStatus(const char filename[]="RanshiEngine.conf") const
std::vector< unsigned long > put() const
static std::string engineName()
void restoreStatus(const char filename[]="RanshiEngine.conf")
void setSeeds(const long *seeds, int)
void setSeed(long seed, int)