Warning, file /include/CLHEP/Random/RandExponential.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023 #ifndef RandExponential_h
0024 #define RandExponential_h 1
0025
0026 #include "CLHEP/Random/defs.h"
0027 #include "CLHEP/Random/Random.h"
0028 #include "CLHEP/Utility/memory.h"
0029
0030 namespace CLHEP {
0031
0032
0033
0034
0035
0036 class RandExponential : public HepRandom {
0037
0038 public:
0039
0040 inline RandExponential ( HepRandomEngine& anEngine, double mean=1.0 );
0041 inline RandExponential ( HepRandomEngine* anEngine, double mean=1.0 );
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051 virtual ~RandExponential();
0052
0053
0054
0055
0056 static double shoot();
0057
0058 static double shoot( double mean );
0059
0060 static void shootArray ( const int size, double* vect,
0061 double mean=1.0 );
0062
0063
0064
0065
0066 static inline double shoot( HepRandomEngine* anEngine );
0067
0068 static inline double shoot( HepRandomEngine* anEngine, double mean );
0069
0070 static void shootArray ( HepRandomEngine* anEngine, const int size,
0071 double* vect, double mean=1.0 );
0072
0073
0074
0075
0076 inline double fire();
0077
0078 inline double fire( double mean );
0079
0080 void fireArray ( const int size, double* vect );
0081 void fireArray ( const int size, double* vect, double mean );
0082
0083 double operator()();
0084 double operator()( double mean );
0085
0086
0087
0088 std::ostream & put ( std::ostream & os ) const;
0089 std::istream & get ( std::istream & is );
0090
0091 std::string name() const;
0092 HepRandomEngine & engine();
0093
0094 static std::string distributionName() {return "RandExponential";}
0095
0096
0097 private:
0098
0099 std::shared_ptr<HepRandomEngine> localEngine;
0100 double defaultMean;
0101
0102 };
0103
0104 }
0105
0106 #ifdef ENABLE_BACKWARDS_COMPATIBILITY
0107
0108 using namespace CLHEP;
0109 #endif
0110
0111 #include "CLHEP/Random/RandExponential.icc"
0112
0113 #endif