38#ifndef Ranlux64Engine_h
39#define Ranlux64Engine_h
41#include "CLHEP/Random/defs.h"
42#include "CLHEP/Random/RandomEngine.h"
65 void flatArray (
const int size,
double* vect);
68 void setSeed(
long seed,
int lxr=1);
71 void setSeeds(
const long * seeds,
int lxr=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);
119#ifdef ENABLE_BACKWARDS_COMPATIBILITY
121using namespace CLHEP;
void setSeed(long seed, int lxr=1)
void restoreStatus(const char filename[]="Ranlux64.conf")
std::vector< unsigned long > put() const
virtual std::istream & getState(std::istream &is)
static std::string engineName()
void setSeeds(const long *seeds, int lxr=1)
void saveStatus(const char filename[]="Ranlux64.conf") const
static std::string beginTag()
void flatArray(const int size, double *vect)
static const unsigned int VECTOR_STATE_SIZE
virtual std::istream & get(std::istream &is)
virtual ~Ranlux64Engine()