BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
EkharaRandom.h
Go to the documentation of this file.
1#ifndef EkharaRANDOM_H
2#define EkharaRANDOM_H
3
4#include "CLHEP/Random/RandomEngine.h"
5
7
8public:
9
10 static double Flat(double min, double max);
11 static double Flat(double max);
12 static double Flat();
13 static void FlatArray(double* vect, const int size);
14
15 static double random();
16
17 //This class does not take ownership of the random engine;
18 //the caller needs to make sure that the engine is not
19 //destroyed.
20 static void setRandomEngine(CLHEP::HepRandomEngine* randomEngine);
21
22private:
23
24 static CLHEP::HepRandomEngine* _randomEngine;
25
26};
27
28#endif
29
static double random()
static double Flat()
static void FlatArray(double *vect, const int size)
static void setRandomEngine(CLHEP::HepRandomEngine *randomEngine)