46#ifndef DRand48Engine_h
47#define DRand48Engine_h 1
49#include "CLHEP/Random/defs.h"
50#include "CLHEP/Random/RandomEngine.h"
51#include "CLHEP/Utility/noncopyable.h"
75 void flatArray (
const int size,
double* vect);
78 void setSeed(
long seed,
int dum=0);
81 void setSeeds(
const long * seeds,
int dum=0);
85 void saveStatus(
const char filename[] =
"DRand48.conf" )
const;
95 virtual std::ostream &
put (std::ostream & os)
const;
96 virtual std::istream &
get (std::istream & is);
98 virtual std::istream &
getState ( std::istream & is );
100 std::string
name()
const;
103 std::vector<unsigned long>
put ()
const;
104 bool get (
const std::vector<unsigned long> & v);
105 bool getState (
const std::vector<unsigned long> & v);
111 static int numEngines;
112 static const int maxIndex;
118#ifdef ENABLE_BACKWARDS_COMPATIBILITY
120using namespace CLHEP;
virtual std::istream & getState(std::istream &is)
static std::string engineName()
static std::string beginTag()
void setSeed(long seed, int dum=0)
static const unsigned int VECTOR_STATE_SIZE
void setSeeds(const long *seeds, int dum=0)
virtual std::istream & get(std::istream &is)
void saveStatus(const char filename[]="DRand48.conf") const
std::vector< unsigned long > put() const
void restoreStatus(const char filename[]="DRand48.conf")
void flatArray(const int size, double *vect)