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