32#include "CLHEP/Random/defs.h"
33#include "CLHEP/Random/Random.h"
34#include "CLHEP/Utility/memory.h"
35#include "CLHEP/Utility/thread_local.h"
65 static double shoot();
67 static inline double shoot(
double mean,
double stdDev );
69 static void shootArray (
const int size,
double* vect,
70 double mean=0.0,
double stdDev=1.0 );
78 double mean,
double stdDev );
81 double* vect,
double mean=0.0,
89 inline double fire(
double mean,
double stdDev );
91 void fireArray (
const int size,
double* vect);
92 void fireArray (
const int size,
double* vect,
93 double mean,
double stdDev );
96 virtual double operator()(
double mean,
double stdDev );
98 std::string
name()
const;
106 std::ostream &
put ( std::ostream & os )
const;
107 std::istream &
get ( std::istream & is );
115 static void setFlag(
bool val );
117 bool getF()
const {
return set;}
119 void setF(
bool val ) {set = val;}
149 static void setVal(
double nextVal );
164 static CLHEP_THREAD_LOCAL
bool set_st;
165 static CLHEP_THREAD_LOCAL
double nextGauss_st;
171#ifdef ENABLE_BACKWARDS_COMPATIBILITY
173using namespace CLHEP;
176#include "CLHEP/Random/RandGauss.icc"
static std::ostream & saveDistState(std::ostream &os)
static std::istream & restoreFullState(std::istream &is)
static void restoreEngineStatus(const char filename[]="Config.conf")
std::istream & get(std::istream &is)
std::ostream & put(std::ostream &os) const
RandGauss(HepRandomEngine *anEngine, double mean=0.0, double stdDev=1.0)
void fireArray(const int size, double *vect)
RandGauss(HepRandomEngine &anEngine, double mean=0.0, double stdDev=1.0)
double fire(double mean, double stdDev)
static void shootArray(const int size, double *vect, double mean=0.0, double stdDev=1.0)
static void setVal(double nextVal)
HepRandomEngine & engine()
static std::ostream & saveFullState(std::ostream &os)
static void setFlag(bool val)
static double shoot(double mean, double stdDev)
static std::string distributionName()
std::shared_ptr< HepRandomEngine > localEngine
static double shoot(HepRandomEngine *anEngine, double mean, double stdDev)
static std::istream & restoreDistState(std::istream &is)
virtual double operator()()
static void saveEngineStatus(const char filename[]="Config.conf")