38 #ifndef Ranlux64Engine_h
39 #define Ranlux64Engine_h
41 #include "CLHEP/Random/defs.h"
42 #include "CLHEP/Random/RandomEngine.h"
50 class Ranlux64Engine :
public HepRandomEngine {
65 void flatArray (
const int size,
double* vect);
68 void setSeed(
long seed,
int lux=1);
71 void setSeeds(
const long * seeds,
int lux=1);
75 void saveStatus(
const char filename[] =
"Ranlux64.conf" )
const;
78 void restoreStatus(
const char filename[] =
"Ranlux64.conf" );
87 virtual std::ostream &
put (std::ostream & os)
const;
88 virtual std::istream &
get (std::istream & is);
90 virtual std::istream &
getState ( std::istream & is );
92 std::string
name()
const;
93 static std::string
engineName() {
return "Ranlux64Engine";}
95 std::vector<unsigned long>
put ()
const;
96 bool get (
const std::vector<unsigned long> & v);
97 bool getState (
const std::vector<unsigned long> & v);
104 void advance(
int dozens);
115 static int numEngines;
122 #ifdef ENABLE_BACKWARDS_COMPATIBILITY
124 using namespace CLHEP;
127 #endif // Ranlux64Engine_h
static const unsigned int VECTOR_STATE_SIZE
virtual std::istream & getState(std::istream &is)
void flatArray(const int size, double *vect)
void setSeed(long seed, int lux=1)
virtual ~Ranlux64Engine()
static std::string engineName()
void saveStatus(const char filename[]="Ranlux64.conf") const
std::vector< unsigned long > put() const
static std::string beginTag()
void setSeeds(const long *seeds, int lux=1)
void restoreStatus(const char filename[]="Ranlux64.conf")