Garfield++
v1r0
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
// Abstract base class for random number generators
2
3
#ifndef G_RANDOM_ENGINE_H
4
#define G_RANDOM_ENGINE_H
5
6
namespace
Garfield
{
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
Definition:
RandomEngine.hh:8
Garfield::RandomEngine::RandomEngine
RandomEngine()
Definition:
RandomEngine.hh:12
Garfield::RandomEngine::Seed
virtual void Seed(unsigned int s)=0
Garfield::RandomEngine::Draw
virtual double Draw()=0
Garfield::RandomEngine::~RandomEngine
virtual ~RandomEngine()
Definition:
RandomEngine.hh:14
Garfield
Definition:
HeedChamber.hh:10
garfieldpp-v1r0
Include
RandomEngine.hh
Generated by
1.9.6