42class RandFlat :
public HepRandom {
68 static inline double shoot(
double width );
70 static inline double shoot(
double a,
double b );
74 static inline long shootInt(
long a1,
long n );
81 double lx,
double dx );
99 const int size,
double* vect );
102 const int size,
double* vect,
103 double lx,
double dx );
110 inline double fire(
double width );
112 inline double fire(
double a,
double b );
123 double lx,
double dx);
131 std::ostream &
put ( std::ostream & os )
const;
132 std::istream &
get ( std::istream & is );
177 inline void fireBits();
178 static inline void shootBits();
191 static const unsigned long MSB;
192 static const int MSBBits;
195 unsigned long randomInt;
196 unsigned long firstUnusedBit;
197 static unsigned long staticRandomInt;
198 static unsigned long staticFirstUnusedBit;
209#ifdef ENABLE_BACKWARDS_COMPATIBILITY
211using namespace CLHEP;
214#include "CLHEP/Random/RandFlat.icc"
double fire(double width)
static double shoot(double a, double b)
static void shootArray(const int size, double *vect)
RandFlat(HepRandomEngine *anEngine)
std::ostream & put(std::ostream &os) const
static long shootInt(long a1, long n)
static long shootInt(HepRandomEngine *anEngine, long n)
double fire(double a, double b)
static int shootBit(HepRandomEngine *)
static double shoot(HepRandomEngine *anEngine)
static std::ostream & saveFullState(std::ostream &os)
RandFlat(HepRandomEngine &anEngine)
RandFlat(HepRandomEngine *anEngine, double width)
RandFlat(HepRandomEngine &anEngine, double a, double b)
static double shoot(HepRandomEngine *anEngine, double width)
static std::ostream & saveDistState(std::ostream &os)
static long shootInt(long n)
double operator()(double width)
static void shootArray(HepRandomEngine *anEngine, const int size, double *vect, double lx, double dx)
void fireArray(const int size, double *vect)
static std::istream & restoreFullState(std::istream &is)
static double shoot(double width)
static void shootArray(const int size, double *vect, double lx, double dx)
double operator()(double a, double b)
long fireInt(long a1, long n)
static void restoreEngineStatus(const char filename[]="Config.conf")
static std::string distributionName()
static void saveEngineStatus(const char filename[]="Config.conf")
void fireArray(const int size, double *vect, double lx, double dx)
static std::istream & restoreDistState(std::istream &is)
RandFlat(HepRandomEngine &anEngine, double width)
RandFlat(HepRandomEngine *anEngine, double a, double b)
static double shoot(HepRandomEngine *anEngine, double a, double b)
static long shootInt(HepRandomEngine *anEngine, long a1, long n)
std::istream & get(std::istream &is)
static void shootArray(HepRandomEngine *anEngine, const int size, double *vect)
HepRandomEngine & engine()