Garfield++
v1r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
RandomEngineRoot.hh
Go to the documentation of this file.
1
// ROOT random number generator
2
3
#ifndef G_RANDOM_ENGINE_ROOT_H
4
#define G_RANDOM_ENGINE_ROOT_H
5
6
#include <TRandom3.h>
7
8
#include "
RandomEngine.hh
"
9
10
namespace
Garfield
{
11
12
class
RandomEngineRoot
:
public
RandomEngine
{
13
14
public
:
15
// Constructor
16
RandomEngineRoot
();
17
// Destructor
18
~RandomEngineRoot
();
19
// Call the random number generator
20
double
Draw
() {
return
rng.Rndm(); }
21
// Initialise the random number generator
22
void
Seed
(
unsigned
int
s);
23
24
private
:
25
TRandom3 rng;
26
};
27
}
28
29
#endif
RandomEngine.hh
Garfield::RandomEngineRoot
Definition:
RandomEngineRoot.hh:12
Garfield::RandomEngineRoot::Draw
double Draw()
Definition:
RandomEngineRoot.hh:20
Garfield::RandomEngineRoot::Seed
void Seed(unsigned int s)
Definition:
RandomEngineRoot.cc:17
Garfield::RandomEngineRoot::~RandomEngineRoot
~RandomEngineRoot()
Definition:
RandomEngineRoot.cc:15
Garfield::RandomEngineRoot::RandomEngineRoot
RandomEngineRoot()
Definition:
RandomEngineRoot.cc:8
Garfield::RandomEngine
Definition:
RandomEngine.hh:8
Garfield
Definition:
HeedChamber.hh:10
garfieldpp-v1r0
Include
RandomEngineRoot.hh
Generated by
1.9.6