40#ifndef HepRanshiEngine_h
41#define HepRanshiEngine_h
65 void flatArray(
const int size,
double* vect);
71 void setSeeds(
const long* seeds,
int);
75 void saveStatus(
const char filename[] =
"RanshiEngine.conf")
const;
78 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;
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)