|
qupid 0.2
Quasi-Signal Generation Model for Pixelized Detector
|
Default ROOT-free random engine: std::mt19937_64 with the standard library distributions. More...
#include <QPRandom.hpp>
Public Member Functions | |
| QPRandom (unsigned long seed=std::mt19937_64::default_seed) | |
| virtual | ~QPRandom () |
| Trivial. | |
| virtual void | SetSeed (unsigned long seed) |
| Re-seed the engine, restarting its sequence. | |
| virtual double | Uniform (double a, double b) |
| Uniform deviate in | |
| virtual double | Gaus (double mean, double sigma) |
| Normal deviate via std::normal_distribution. | |
Public Member Functions inherited from QPRandomBase | |
| virtual | ~QPRandomBase () |
| Virtual destructor for deletion through the interface. | |
Default ROOT-free random engine: std::mt19937_64 with the standard library distributions.
A distribution object is constructed on every call, so the value sequence is fully determined by the seed and the order of calls.
Definition at line 12 of file QPRandom.hpp.
| QPRandom::QPRandom | ( | unsigned long | seed = std::mt19937_64::default_seed | ) |
| seed | engine seed (default: std::mt19937_64::default_seed) |
Definition at line 3 of file QPRandom.cpp.
|
inlinevirtual |
Trivial.
Definition at line 17 of file QPRandom.hpp.
|
virtual |
Re-seed the engine, restarting its sequence.
| seed | engine seed value |
Implements QPRandomBase.
Definition at line 5 of file QPRandom.cpp.
|
virtual |
Uniform deviate in 
| a | lower bound (attainable) |
| b | upper bound (not attainable) |
Implements QPRandomBase.
Definition at line 9 of file QPRandom.cpp.
|
virtual |
Normal deviate via std::normal_distribution.
| mean | mean of the distribution |
| sigma | standard deviation |
Implements QPRandomBase.
Definition at line 14 of file QPRandom.cpp.