41 #ifndef HepRanshiEngine_h
42 #define HepRanshiEngine_h
66 void flatArray(
const int size,
double* vect);
72 void setSeeds(
const long* seeds,
int);
76 void saveStatus(
const char filename[] =
"RanshiEngine.conf")
const;
79 void restoreStatus(
const char filename[] =
"RanshiEngine.conf");
87 operator unsigned int();
89 virtual std::ostream &
put (std::ostream & os)
const;
90 virtual std::istream &
get (std::istream & is);
92 virtual std::istream &
getState ( std::istream & is );
94 std::string
name()
const;
97 std::vector<unsigned long>
put ()
const;
98 bool get (
const std::vector<unsigned long> &
v);
99 bool getState (
const std::vector<unsigned long> &
v);
102 enum {numBuff = 512};
104 unsigned int halfBuff, numFlats;
105 unsigned int buffer[numBuff];
106 unsigned int redSpin;
108 static const unsigned int VECTOR_STATE_SIZE = numBuff + 4;
114 #endif // HepRanshiEngine_h
void restoreStatus(const char filename[]="RanshiEngine.conf")
void setSeeds(const long *seeds, int)
void setSeed(long seed, int)
void flatArray(const int size, double *vect)
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
void saveStatus(const char filename[]="RanshiEngine.conf") const
virtual std::istream & getState(std::istream &is)
std::vector< unsigned long > put() const
static std::string engineName()
static std::string beginTag()