#include <BabayagaNLORandom.h>
Definition at line 27 of file BabayagaNLORandom.h.
◆ Flat() [1/3]
double BabayagaNLORandom::Flat |
( |
| ) |
|
|
static |
◆ Flat() [2/3]
double BabayagaNLORandom::Flat |
( |
double | max | ) |
|
|
static |
◆ Flat() [3/3]
double BabayagaNLORandom::Flat |
( |
double | min, |
|
|
double | max ) |
|
static |
Definition at line 50 of file BabayagaNLORandom.cxx.
50 {
51
53 cerr<<
"min>max in BabayagaNLORandom::Flat(" <<
min <<
"," <<
max <<
")" <<endl;
54 }
55
57
58}
◆ FlatArray()
void BabayagaNLORandom::FlatArray |
( |
double * | vect, |
|
|
const int | size ) |
|
static |
Definition at line 72 of file BabayagaNLORandom.cxx.
72 {
73 if(_randomEngine == 0)
74 cout<<"Can not get randomEngine pointer in BabayagaNLORandom::FlatArray"<<endl;
75 else {
76 _randomEngine->flatArray(size,vect);
77 }
78}
Referenced by babayaga_ranluxd_().
◆ FlatArrayF()
void BabayagaNLORandom::FlatArrayF |
( |
float * | vect, |
|
|
const int | size ) |
|
static |
Definition at line 80 of file BabayagaNLORandom.cxx.
80 {
81
82 double *dvec = new double [size];
83 if(_randomEngine == 0) {
84 cout<<"Can not get randomEngine pointer in BabayagaNLORandom::FlatArray"<<endl;
85 return;
86 }
87 else {
88 _randomEngine->flatArray(size,dvec);
89 }
90
91 for (int i=0; i<size; i++) vect[i] = dvec[i];
92
93 delete [] dvec;
94}
Referenced by babayaga_ranlux_().
◆ random()
double BabayagaNLORandom::random |
( |
| ) |
|
|
static |
Definition at line 38 of file BabayagaNLORandom.cxx.
38 {
39
40 if (_randomEngine==0){
41 cerr <<"No random engine available in "
42 <<"BabayagaNLORandom::random()."<<endl;
43 }
44
45 return _randomEngine->flat();
46 }
Referenced by Flat(), Flat(), and Flat().
◆ setRandomEngine()
void BabayagaNLORandom::setRandomEngine |
( |
CLHEP::HepRandomEngine * | randomEngine | ) |
|
|
static |
The documentation for this class was generated from the following files: