BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EeToeeVRandom Class Reference

#include <EeToeeVRandom.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)
 

Detailed Description

Definition at line 19 of file EeToeeVRandom.h.

Member Function Documentation

◆ Flat() [1/3]

double EeToeeVRandom::Flat ( )
static

Definition at line 55 of file EeToeeVRandom.cxx.

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

◆ Flat() [2/3]

double EeToeeVRandom::Flat ( double  max)
static

Definition at line 49 of file EeToeeVRandom.cxx.

49 {
50
52
53}

◆ Flat() [3/3]

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

Definition at line 39 of file EeToeeVRandom.cxx.

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

◆ FlatArray()

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

Definition at line 61 of file EeToeeVRandom.cxx.

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

◆ random()

double EeToeeVRandom::random ( )
static

Definition at line 28 of file EeToeeVRandom.cxx.

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

Referenced by Flat(), and flat_().

◆ setRandomEngine()

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

Definition at line 23 of file EeToeeVRandom.cxx.

23 {
24 _randomEngine=randomEngine;
25}

Referenced by EeToeeV::initialize().


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