Garfield++
v2r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
RandomEngine.hh
Go to the documentation of this file.
1
#ifndef G_RANDOM_ENGINE_H
2
#define G_RANDOM_ENGINE_H
3
4
namespace
Garfield
{
5
6
/// Abstract base class for random number generators.
7
8
class
RandomEngine
{
9
10
public
:
11
/// Constructor
12
RandomEngine
() {}
13
/// Destructor
14
virtual
~RandomEngine
() {}
15
16
/// Draw a random number.
17
virtual
double
Draw
() = 0;
18
/// Initialise the random number generator.
19
virtual
void
Seed
(
unsigned
int
s) = 0;
20
};
21
}
22
23
#endif
Garfield::RandomEngine
Abstract base class for random number generators.
Definition:
RandomEngine.hh:8
Garfield::RandomEngine::RandomEngine
RandomEngine()
Constructor.
Definition:
RandomEngine.hh:12
Garfield::RandomEngine::Seed
virtual void Seed(unsigned int s)=0
Initialise the random number generator.
Garfield::RandomEngine::Draw
virtual double Draw()=0
Draw a random number.
Garfield::RandomEngine::~RandomEngine
virtual ~RandomEngine()
Destructor.
Definition:
RandomEngine.hh:14
Garfield
Definition:
HeedChamber.hh:11
garfieldpp-v2r0
Include
RandomEngine.hh
Generated by
1.9.6