qupid 0.2
Quasi-Signal Generation Model for Pixelized Detector
Loading...
Searching...
No Matches
QPRandomBase.hpp
1#ifndef __QPRANDOMBASE__
2#define __QPRANDOMBASE__ 1
3
9 public:
11 virtual ~QPRandomBase(){;}
12
15 virtual void SetSeed(unsigned long seed) = 0;
16
23 virtual double Uniform(double a, double b) = 0;
24
29 virtual double Gaus(double mean, double sigma) = 0;
30
31 protected:
32 private:
33};
34
35#endif
Abstract random number source.
virtual double Gaus(double mean, double sigma)=0
Normal (Gaussian) deviate.
virtual void SetSeed(unsigned long seed)=0
Seed the underlying engine.
virtual ~QPRandomBase()
Virtual destructor for deletion through the interface.
virtual double Uniform(double a, double b)=0
Uniform deviate between a and b.