#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;
57 }
58
60
61}
◆ FlatArray()
void BabayagaNLORandom::FlatArray |
( |
double * | vect, |
|
|
const int | size ) |
|
static |
Definition at line 75 of file BabayagaNLORandom.cxx.
75 {
76 if(_randomEngine == 0)
77 cout<<"Can not get randomEngine pointer in BabayagaNLORandom::FlatArray"<<endl;
78 else {
79 _randomEngine->flatArray(size,vect);
80 }
81}
Referenced by babayaga_ranluxd_().
◆ FlatArrayF()
void BabayagaNLORandom::FlatArrayF |
( |
float * | vect, |
|
|
const int | size ) |
|
static |
Definition at line 83 of file BabayagaNLORandom.cxx.
83 {
84
85 if(_randomEngine == 0) {
86 cout<<"Can not get randomEngine pointer in BabayagaNLORandom::FlatArray"<<endl;
87 return;
88 }
89 else {
90 for (int ir=0; ir<size; ir++)
91 vect[ir] = _randomEngine->flat();
92 }
93
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: