#include <src/HiveNumbers.h>
Definition at line 28 of file HiveNumbers.h.
◆ HiveNumbers() [1/4]
HiveRndm::HiveNumbers::HiveNumbers |
( |
| ) |
|
Standard constructor.
Definition at line 15 of file HiveNumbers.cpp.
const unsigned int m_buffer_size
std::vector< double > m_buffer
IRndmGen * m_generator
Pointer to random number generator.
unsigned int m_buffer_index
◆ HiveNumbers() [2/4]
HiveRndm::HiveNumbers::HiveNumbers |
( |
const HiveNumbers & |
copy | ) |
|
Copy constructor.
Definition at line 20 of file HiveNumbers.cpp.
const unsigned int m_buffer_size
std::vector< double > m_buffer
IRndmGen * m_generator
Pointer to random number generator.
virtual unsigned long addRef()=0
Increment the reference count of Interface instance.
unsigned int m_buffer_index
◆ HiveNumbers() [3/4]
Initializing constructor.
Definition at line 27 of file HiveNumbers.cpp.
31 if ( !status.
isSuccess() ) {
throw GaudiException(
"Initialization failed !",
"HiveRndm::HiveNumbers", status ); }
const unsigned int m_buffer_size
Define general base for Gaudi exception.
std::vector< double > m_buffer
IRndmGen * m_generator
Pointer to random number generator.
This class is used for returning status codes from appropriate routines.
virtual StatusCode initialize(const SmartIF< IRndmGenSvc > &svc, const IRndmGen::Param &par)
Initialization.
unsigned int m_buffer_index
◆ ~HiveNumbers()
HiveRndm::HiveNumbers::~HiveNumbers |
( |
| ) |
|
|
virtual |
Standard destructor.
Definition at line 35 of file HiveNumbers.cpp.
virtual StatusCode finalize()
Finalization.
const StatusCode & ignore() const
Ignore/check StatusCode.
◆ HiveNumbers() [4/4]
Initializing constructor.
Definition at line 59 of file HiveNumbers.cpp.
62 if ( !status.
isSuccess() ) {
throw GaudiException(
"Initialization failed !",
"HiveRndm::HiveNumbers", status ); }
const unsigned int m_buffer_size
Define general base for Gaudi exception.
IRndmGen * m_generator
Pointer to random number generator.
This class is used for returning status codes from appropriate routines.
virtual StatusCode initialize(const SmartIF< IRndmGenSvc > &svc, const IRndmGen::Param &par)
Initialization.
unsigned int m_buffer_index
◆ finalize()
Finalization.
Definition at line 48 of file HiveNumbers.cpp.
virtual StatusCode finalize()=0
Finalize the generator.
constexpr static const auto SUCCESS
IRndmGen * m_generator
Pointer to random number generator.
const StatusCode & ignore() const
Ignore/check StatusCode.
virtual unsigned long release()=0
Release Interface instance.
◆ initialize() [1/2]
Initialization.
- Fix-Me:
- : this is a hack, but I do not have the time to review the correct constantness of all the methods
Definition at line 38 of file HiveNumbers.cpp.
virtual StatusCode generator(const IRndmGen::Param &par, IRndmGen *&refpGen)=0
Add a Generator factory.
bool isValid() const
Allow for check if smart pointer is valid.
IRndmGen * m_generator
Pointer to random number generator.
constexpr static const auto FAILURE
◆ initialize() [2/2]
Initialization.
Definition at line 66 of file HiveNumbers.cpp.
virtual StatusCode initialize(const SmartIF< IRndmGenSvc > &svc, const IRndmGen::Param &par)
Initialization.
◆ operator bool()
HiveRndm::HiveNumbers::operator bool |
( |
| ) |
const |
|
inline |
Check if the number supply is possible.
Definition at line 59 of file HiveNumbers.h.
IRndmGen * m_generator
Pointer to random number generator.
◆ operator()()
double HiveRndm::HiveNumbers::operator() |
( |
| ) |
|
|
inline |
Operator () for the use within STL.
Definition at line 61 of file HiveNumbers.h.
61 {
return this->
shoot(); }
double shoot()
Pop a new number from the buffer.
◆ pop()
double HiveRndm::HiveNumbers::pop |
( |
| ) |
|
|
inline |
Pop a new number from the buffer.
Definition at line 63 of file HiveNumbers.h.
63 {
return this->
shoot(); }
double shoot()
Pop a new number from the buffer.
◆ shoot()
double HiveRndm::HiveNumbers::shoot |
( |
| ) |
|
|
inline |
Pop a new number from the buffer.
Definition at line 65 of file HiveNumbers.h.
const unsigned int m_buffer_size
std::vector< double > m_buffer
IRndmGen * m_generator
Pointer to random number generator.
StatusCode shootArray(std::vector< double > &array, long num, long start=0)
Pop a new number from the buffer.
unsigned int m_buffer_index
◆ shootArray()
Pop a new number from the buffer.
Definition at line 78 of file HiveNumbers.h.
IRndmGen * m_generator
Pointer to random number generator.
This class is used for returning status codes from appropriate routines.
struct GAUDI_API array
Parametrisation class for redirection array - like implementation.
virtual StatusCode shootArray(std::vector< double > &array, long howmany, long start=0) const =0
Multiple shots returning vector with random number according to specified distribution.
constexpr static const auto FAILURE
static HiveNumbersMutex m_genMutex
◆ m_buffer
◆ m_buffer_index
unsigned int HiveRndm::HiveNumbers::m_buffer_index |
|
private |
◆ m_buffer_size
const unsigned int HiveRndm::HiveNumbers::m_buffer_size |
|
private |
◆ m_generator
IRndmGen* HiveRndm::HiveNumbers::m_generator |
|
protected |
Pointer to random number generator.
Definition at line 37 of file HiveNumbers.h.
◆ m_genMutex
The documentation for this class was generated from the following files: