00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef RandBreitWigner_h
00025 #define RandBreitWigner_h 1
00026
00027 #include "CLHEP/Random/RandFlat.h"
00028
00033 class RandBreitWigner : public HepRandom {
00034
00035 public:
00036
00037 inline RandBreitWigner ( HepRandomEngine& anEngine, double a=1.0,
00038 double b=0.2 );
00039 inline RandBreitWigner ( HepRandomEngine* anEngine, double a=1.0,
00040 double b=0.2 );
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050 virtual ~RandBreitWigner();
00051
00052
00053
00054
00055 static double shoot( double a=1.0, double b=0.2 );
00056
00057 static double shoot( double a, double b, double c );
00058
00059 static double shootM2( double a=1.0, double b=0.2 );
00060
00061 static double shootM2( double a, double b, double c );
00062
00063 static void shootArray ( const int size, double* vect);
00064
00065 static void shootArray ( const int size, double* vect,
00066 double a, double b );
00067
00068 static void shootArray ( const int size, double* vect,
00069 double a, double b, double c );
00070
00071
00072
00073
00074 static double shoot( HepRandomEngine* anEngine, double a=1.0,
00075 double b=0.2 );
00076 static double shoot( HepRandomEngine* anEngine, double a,
00077 double b, double c );
00078 static double shootM2( HepRandomEngine* anEngine, double a=1.0,
00079 double b=0.2 );
00080 static double shootM2( HepRandomEngine* anEngine, double a,
00081 double b, double c );
00082 static void shootArray ( HepRandomEngine* anEngine,
00083 const int size, double* vect );
00084 static void shootArray ( HepRandomEngine* anEngine,
00085 const int size, double* vect,
00086 double a, double b );
00087 static void shootArray ( HepRandomEngine* anEngine,
00088 const int size, double* vect,
00089 double a, double b, double c );
00090
00091
00092
00093
00094
00095
00096 double fire();
00097
00098 double fire( double a, double b );
00099
00100 double fire( double a, double b, double c );
00101
00102 double fireM2();
00103
00104 double fireM2( double a, double b );
00105
00106 double fireM2( double a, double b, double c );
00107
00108 void fireArray ( const int size, double* vect);
00109
00110 void fireArray ( const int size, double* vect,
00111 double a, double b );
00112
00113 void fireArray ( const int size, double* vect,
00114 double a, double b, double c );
00115 double operator()();
00116 double operator()( double a, double b );
00117 double operator()( double a, double b, double c );
00118
00119 private:
00120
00121
00122 RandBreitWigner(const RandBreitWigner& d);
00123
00124 HepRandomEngine* localEngine;
00125 bool deleteEngine;
00126 const double defaultA;
00127 const double defaultB;
00128
00129 };
00130
00131 #include "CLHEP/Random/RandBreitWigner.icc"
00132
00133 #endif