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
6namespace Garfield {
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
virtual void Seed(unsigned int s)=0
virtual double Draw()=0