23 #ifndef RandExponential_h 24 #define RandExponential_h 1 26 #include "CLHEP/Random/defs.h" 27 #include "CLHEP/Random/Random.h" 28 #include "CLHEP/Utility/memory.h" 36 class RandExponential :
public HepRandom {
56 static double shoot();
58 static double shoot(
double mean );
60 static void shootArray (
const int size,
double* vect,
66 static inline double shoot( HepRandomEngine* anEngine );
68 static inline double shoot( HepRandomEngine* anEngine,
double mean );
70 static void shootArray ( HepRandomEngine* anEngine,
const int size,
71 double* vect,
double mean=1.0 );
78 inline double fire(
double mean );
80 void fireArray (
const int size,
double* vect );
81 void fireArray (
const int size,
double* vect,
double mean );
88 std::ostream &
put ( std::ostream & os )
const;
89 std::istream &
get ( std::istream & is );
91 std::string
name()
const;
92 HepRandomEngine &
engine();
106 #ifdef ENABLE_BACKWARDS_COMPATIBILITY 108 using namespace CLHEP;
111 #include "CLHEP/Random/RandExponential.icc" static void shootArray(const int size, double *vect, double mean=1.0)
HepRandomEngine & engine()
std::ostream & put(std::ostream &os) const
RandExponential(HepRandomEngine &anEngine, double mean=1.0)
void fireArray(const int size, double *vect)
virtual ~RandExponential()
static std::string distributionName()