|
qupid 0.2
Quasi-Signal Generation Model for Pixelized Detector
|
Abstract random number source. More...
#include <QPRandomBase.hpp>
Public Member Functions | |
| virtual | ~QPRandomBase () |
| Virtual destructor for deletion through the interface. | |
| virtual void | SetSeed (unsigned long seed)=0 |
| Seed the underlying engine. | |
| virtual double | Uniform (double a, double b)=0 |
Uniform deviate between a and b. | |
| virtual double | Gaus (double mean, double sigma)=0 |
| Normal (Gaussian) deviate. | |
Abstract random number source.
The only RNG type core code may reference; concrete engines (the std-based QPRandom, the TRandom adapter in vis/include) are chosen and owned by the caller.
Definition at line 8 of file QPRandomBase.hpp.
|
inlinevirtual |
Virtual destructor for deletion through the interface.
Definition at line 11 of file QPRandomBase.hpp.
|
pure virtual |
Seed the underlying engine.
| seed | engine seed value |
Implemented in QPRandom, and QPRandomTRandom.
|
pure virtual |
Uniform deviate between a and b.
Whether the endpoints themselves can be returned follows the concrete engine (QPRandom: 
| a | lower bound |
| b | upper bound |
Implemented in QPRandom, and QPRandomTRandom.
Referenced by QPMonteCarlo::Shoot().
|
pure virtual |
Normal (Gaussian) deviate.
| mean | mean of the distribution |
| sigma | standard deviation |
Implemented in QPRandom, and QPRandomTRandom.