BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
EkharaRandom Class Reference

#include <EkharaRandom.h>

Static Public Member Functions

static double Flat (double min, double max)
 
static double Flat (double max)
 
static double Flat ()
 
static void FlatArray (double *vect, const int size)
 
static double random ()
 
static void setRandomEngine (CLHEP::HepRandomEngine *randomEngine)
 
static double Flat (double min, double max)
 
static double Flat (double max)
 
static double Flat ()
 
static void FlatArray (double *vect, const int size)
 
static double random ()
 
static void setRandomEngine (CLHEP::HepRandomEngine *randomEngine)
 

Detailed Description

Member Function Documentation

◆ Flat() [1/6]

double EkharaRandom::Flat ( )
static

Definition at line 44 of file EkharaRandom.cxx.

44 {
45
46 return EkharaRandom::random();
47
48 }
static double random()

◆ Flat() [2/6]

static double EkharaRandom::Flat ( )
static

◆ Flat() [3/6]

double EkharaRandom::Flat ( double  max)
static

Definition at line 38 of file EkharaRandom.cxx.

38 {
39
41
42}

◆ Flat() [4/6]

static double EkharaRandom::Flat ( double  max)
static

◆ Flat() [5/6]

double EkharaRandom::Flat ( double  min,
double  max 
)
static

Definition at line 28 of file EkharaRandom.cxx.

28 {
29
30 if ( min > max ) {
31 cerr<< "min>max in EkharaRandom::Flat(" << min << "," << max << ")" <<endl;
32 }
33
34 return EkharaRandom::random()*( max - min )+min;
35
36}

◆ Flat() [6/6]

static double EkharaRandom::Flat ( double  min,
double  max 
)
static

◆ FlatArray() [1/2]

void EkharaRandom::FlatArray ( double *  vect,
const int  size 
)
static

Definition at line 50 of file EkharaRandom.cxx.

50 {
51 if(_randomEngine == 0)
52 cout<<"Can not get randomEngine pointer in EkharaRandom::FlatArray"<<endl;
53 else {
54 _randomEngine->flatArray(size,vect);
55 }
56}

◆ FlatArray() [2/2]

static void EkharaRandom::FlatArray ( double *  vect,
const int  size 
)
static

◆ random() [1/2]

double EkharaRandom::random ( )
static

Definition at line 16 of file EkharaRandom.cxx.

16 {
17
18 if (_randomEngine==0){
19 cerr <<"No random engine available in "
20 <<"EkharaRandom::random()."<<endl;
21 }
22
23 return _randomEngine->flat();
24 }

Referenced by Flat().

◆ random() [2/2]

static double EkharaRandom::random ( )
static

◆ setRandomEngine() [1/2]

void EkharaRandom::setRandomEngine ( CLHEP::HepRandomEngine *  randomEngine)
static

Definition at line 11 of file EkharaRandom.cxx.

11 {
12 _randomEngine=randomEngine;
13}

Referenced by Ekhara::initialize().

◆ setRandomEngine() [2/2]

static void EkharaRandom::setRandomEngine ( CLHEP::HepRandomEngine *  randomEngine)
static

The documentation for this class was generated from the following files: