Garfield++ 3.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
ranluxint.h
Go to the documentation of this file.
1#ifndef RANLUXINT_H
2#define RANLUXINT_H
3
4#ifdef GARFIELD_HEED_INTERFACE
5
6#include "Garfield/Random.hh"
7
8namespace Heed {
9
10inline double SRANLUX() { return Garfield::RndmUniform(); }
11
12}
13
14#else
15
16#ifdef USE_CPP_SRANLUX
17
18#include "wcpplib/random/WRandomEngine.h"
19//#include <CLHEP/Random/RandomEngine.h>
20
21// using namespace CLHEP; // uncomment if below is CLHEP variant.
22
23extern WHepRandomEngine& random_engine;
24
25inline double SRANLUX(void) { return random_engine.flat(); }
26
27#endif // for ifdef USE_CPP_RANLUX
28
29#endif
30
31#endif
double RndmUniform()
Draw a random number uniformly distributed in the range [0, 1).
Definition: Random.hh:14
Definition: BGMesh.cpp:6