Random number accessor This small class encapsulates the use of the random number generator.
More...
|
| Numbers ()=default |
| Standard constructor. More...
|
|
| Numbers (const Numbers &)=default |
| Copy constructor. More...
|
|
| Numbers (const SmartIF< IRndmGenSvc > &svc, const IRndmGen::Param &par) |
| Initializing constructor. More...
|
|
virtual | ~Numbers () |
| Standard destructor. More...
|
|
virtual StatusCode | initialize (const SmartIF< IRndmGenSvc > &svc, const IRndmGen::Param &par) |
| Initialization. More...
|
|
| Numbers (IRndmGenSvc *svc, const IRndmGen::Param &par) |
| Initializing constructor. More...
|
|
virtual StatusCode | initialize (IRndmGenSvc *svc, const IRndmGen::Param &par) |
| Initialization. More...
|
|
virtual StatusCode | finalize () |
| Finalization. More...
|
|
| operator bool () const |
| Check if the number supply is possible. More...
|
|
double | operator() () |
| Operator () for the use within STL. More...
|
|
double | pop () |
| Pop a new number from the buffer. More...
|
|
double | shoot () |
| Pop a new number from the buffer. More...
|
|
StatusCode | shootArray (std::vector< double > &array, long num, long start=0) |
| Pop a new number from the buffer. More...
|
|
| Numbers ()=default |
| Standard constructor. More...
|
|
| Numbers (const Numbers &)=default |
| Copy constructor. More...
|
|
| Numbers (const SmartIF< IRndmGenSvc > &svc, const IRndmGen::Param &par) |
| Initializing constructor. More...
|
|
virtual | ~Numbers () |
| Standard destructor. More...
|
|
virtual StatusCode | initialize (const SmartIF< IRndmGenSvc > &svc, const IRndmGen::Param &par) |
| Initialization. More...
|
|
| Numbers (IRndmGenSvc *svc, const IRndmGen::Param &par) |
| Initializing constructor. More...
|
|
virtual StatusCode | initialize (IRndmGenSvc *svc, const IRndmGen::Param &par) |
| Initialization. More...
|
|
virtual StatusCode | finalize () |
| Finalization. More...
|
|
| operator bool () const |
| Check if the number supply is possible. More...
|
|
double | operator() () |
| Operator () for the use within STL. More...
|
|
double | pop () |
| Pop a new number from the buffer. More...
|
|
double | shoot () |
| Pop a new number from the buffer. More...
|
|
StatusCode | shootArray (std::vector< double > &array, long num, long start=0) |
| Pop a new number from the buffer. More...
|
|
Random number accessor This small class encapsulates the use of the random number generator.
The sole pupose of this class is to hide the usage of the interface and make the whole thing more user friendly. The object is usable directly after creation.
The typical usage is: Rndm::Numbers numbers(); if ( numbers.initialize(rndmGenSvc, Rndm::Gauss(0.5,0.2)).isSuccess() ) { for ( int i = 0; i < 10; i++ ) { value = numbers(); ... } }
Definition at line 370 of file RndmGenerators.h.