BOSS 8.0.0
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)

Detailed Description

Definition at line 17 of file EeTo4eRandom.h.

Member Function Documentation

◆ Flat() [1/3]

double EeTo4eRandom::Flat ( )
static

Definition at line 47 of file EeTo4eRandom.cxx.

47{ return EeTo4eRandom::random(); }
static double random()

◆ Flat() [2/3]

double EeTo4eRandom::Flat ( double max)
static

Definition at line 45 of file EeTo4eRandom.cxx.

45{ return max * EeTo4eRandom::random(); }
#define max(a, b)

◆ Flat() [3/3]

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

Definition at line 37 of file EeTo4eRandom.cxx.

37 {
38
39 if ( min > max )
40 { cerr << "min>max in EeTo4eRandom::Flat(" << min << "," << max << ")" << endl; }
41
42 return EeTo4eRandom::random() * ( max - min ) + min;
43}
#define min(a, b)

◆ FlatArray()

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

Definition at line 49 of file EeTo4eRandom.cxx.

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

◆ random()

double EeTo4eRandom::random ( )
static

Definition at line 27 of file EeTo4eRandom.cxx.

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

Referenced by Flat(), Flat(), Flat(), and flat_().

◆ setRandomEngine()

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

Definition at line 23 of file EeTo4eRandom.cxx.

23 {
24 _randomEngine = randomEngine;
25}

Referenced by EeTo4e::initialize().


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