Garfield++
v2r0
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
#ifndef G_RANDOM_ENGINE_ROOT_H
2
#define G_RANDOM_ENGINE_ROOT_H
3
4
#include <TRandom3.h>
5
6
#include "
RandomEngine.hh
"
7
8
namespace
Garfield
{
9
10
/// ROOT random number generator.
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
ROOT random number generator.
Definition:
RandomEngineRoot.hh:12
Garfield::RandomEngineRoot::Draw
double Draw()
Draw a random number.
Definition:
RandomEngineRoot.hh:20
Garfield::RandomEngineRoot::Seed
void Seed(unsigned int s)
Initialise the random number generator.
Definition:
RandomEngineRoot.cc:17
Garfield::RandomEngineRoot::~RandomEngineRoot
~RandomEngineRoot()
Definition:
RandomEngineRoot.cc:15
Garfield::RandomEngineRoot::RandomEngineRoot
RandomEngineRoot()
Definition:
RandomEngineRoot.cc:8
Garfield::RandomEngine
Abstract base class for random number generators.
Definition:
RandomEngine.hh:8
Garfield
Definition:
HeedChamber.hh:11
garfieldpp-v2r0
Include
RandomEngineRoot.hh
Generated by
1.9.6