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
4namespace Garfield {
5
6/// Abstract base class for random number generators.
7
9
10 public:
11 /// Constructor
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
Abstract base class for random number generators.
Definition: RandomEngine.hh:8
RandomEngine()
Constructor.
Definition: RandomEngine.hh:12
virtual void Seed(unsigned int s)=0
Initialise the random number generator.
virtual double Draw()=0
Draw a random number.
virtual ~RandomEngine()
Destructor.
Definition: RandomEngine.hh:14