BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
EeTo4eRandom Class Reference

#include <EeTo4eRandom.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 EeTo4eRandom::Flat ( )
static

Definition at line 55 of file EeTo4eRandom.cxx.

55 {
56
57 return EeTo4eRandom::random();
58
59 }
static double random()

◆ Flat() [2/6]

static double EeTo4eRandom::Flat ( )
static

◆ Flat() [3/6]

double EeTo4eRandom::Flat ( double  max)
static

Definition at line 49 of file EeTo4eRandom.cxx.

49 {
50
52
53}

◆ Flat() [4/6]

static double EeTo4eRandom::Flat ( double  max)
static

◆ Flat() [5/6]

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

Definition at line 39 of file EeTo4eRandom.cxx.

39 {
40
41 if ( min > max ) {
42 cerr<< "min>max in EeTo4eRandom::Flat(" << min << "," << max << ")" <<endl;
43 }
44
45 return EeTo4eRandom::random()*( max - min )+min;
46
47}

◆ Flat() [6/6]

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

◆ FlatArray() [1/2]

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

Definition at line 61 of file EeTo4eRandom.cxx.

61 {
62 if(_randomEngine == 0) cout<<"Can not get randomEngine pointer in EeTo4eRandom::FlatArray"<<endl;
63 else _randomEngine->flatArray(size,vect);
64}

◆ FlatArray() [2/2]

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

◆ random() [1/2]

double EeTo4eRandom::random ( )
static

Definition at line 28 of file EeTo4eRandom.cxx.

28 {
29
30 if (_randomEngine==0){
31 cerr <<"No random engine available in "
32 <<"EeTo4eRandom::random()."<<endl;
33 }
34 return _randomEngine->flat();
35 }

Referenced by Flat(), and flat_().

◆ random() [2/2]

static double EeTo4eRandom::random ( )
static

◆ setRandomEngine() [1/2]

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

Definition at line 23 of file EeTo4eRandom.cxx.

23 {
24 _randomEngine=randomEngine;
25}

Referenced by EeTo4e::initialize().

◆ setRandomEngine() [2/2]

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

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