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
8
namespace
Heed
{
9
10
inline
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
23
extern
WHepRandomEngine& random_engine;
24
25
inline
double
SRANLUX(
void
) {
return
random_engine.flat(); }
26
27
#endif
// for ifdef USE_CPP_RANLUX
28
29
#endif
30
31
#endif
Random.hh
Garfield::RndmUniform
double RndmUniform()
Draw a random number uniformly distributed in the range [0, 1).
Definition:
Random.hh:14
Heed
Definition:
BGMesh.cpp:6
garfieldpp-3.0
Heed
wcpplib
random
ranluxint.h
Generated by
1.9.6