BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EeToeeVRandom.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2//
3// Module: EeToeeVRandom.h
4//
5// Description: head file for EeToeeVRandom.cc
6//
7// Modification history:
8//
9// Ping RG Feb. 16, 2009 Module created
10//
11//------------------------------------------------------------------------
12
13#pragma once
14#include "CLHEP/Random/RandomEngine.h"
15
17
18public:
19 static double Flat( double min, double max );
20 static double Flat( double max );
21 static double Flat();
22 static void FlatArray( double* vect, const int size );
23
24 static double random();
25
26 // This class does not take ownership of the random engine;
27 // the caller needs to make sure that the engine is not
28 // destroyed.
29 static void setRandomEngine( CLHEP::HepRandomEngine* randomEngine );
30
31private:
32 static CLHEP::HepRandomEngine* _randomEngine;
33};
#define min(a, b)
#define max(a, b)
static double random()
static double Flat()
static void FlatArray(double *vect, const int size)
static void setRandomEngine(CLHEP::HepRandomEngine *randomEngine)