The Gaudi Framework
v30r3 (a5ef0a68)
|
Random Generator definition. More...
#include <src/RndmGenSvc/RndmGen.h>
Public Member Functions | |
StatusCode | initialize (const IRndmGen::Param &par) override |
IRndmGen implementation. More... | |
StatusCode | finalize () override |
Finalize the generator. More... | |
const InterfaceID & | type () const override |
Random number generator type. More... | |
long | ID () const override |
Random number generator ID. More... | |
const IRndmGen::Param * | parameters () const override |
Access to random number generator parameters. More... | |
StatusCode | shootArray (std::vector< double > &array, long howmany, long start) const override |
Multiple shots returning vector with random number according to specified distribution. More... | |
Public Member Functions inherited from implements< IRndmGen > | |
void * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. More... | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. More... | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
implements ()=default | |
Default constructor. More... | |
implements (const implements &) | |
Copy constructor (zero the reference count) More... | |
implements & | operator= (const implements &) |
Assignment operator (do not touch the reference count). More... | |
unsigned long | addRef () override |
Reference Interface instance. More... | |
unsigned long | release () override |
Release Interface instance. More... | |
unsigned long | refCount () const override |
Current reference count. More... | |
Protected Member Functions | |
RndmGen (IInterface *engine) | |
Standard Constructor. More... | |
Protected Attributes | |
std::unique_ptr< IRndmGen::Param > | m_params |
Generation parameters. More... | |
SmartIF< IRndmEngine > | m_engine |
Hosting service: Access must always be possible. More... | |
Protected Attributes inherited from implements< IRndmGen > | |
std::atomic_ulong | m_refCount |
Reference counter. More... | |
Additional Inherited Members | |
Public Types inherited from implements< IRndmGen > | |
using | base_class = implements< Interfaces... > |
Typedef to this class. More... | |
using | extend_interfaces_base = extend_interfaces< Interfaces... > |
Typedef to the base of this class. More... | |
using | iids = typename extend_interfaces_base::ext_iids |
Public Types inherited from extend_interfaces< Interfaces... > | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids... >::type |
take union of the ext_iids of all Interfaces... More... | |
Random Generator definition.
Description: Definition of a interface for a generic random number generators.
Dependencies:
History :
+---------+----------------------------------------------+--------+ | Date | Comment | Who | +---------+----------------------------------------------+--------+ | 21/11/99| Initial version. | MF | +---------+----------------------------------------------+--------+
Author: M.Frank Version: 1.0
|
protected |
Standard Constructor.
Definition at line 23 of file RndmGen.cpp.
|
override |
|
inlineoverride |
|
override |
IRndmGen implementation.
Initialize the generator.
Initialize the generator
Definition at line 26 of file RndmGen.cpp.
|
inlineoverride |
Access to random number generator parameters.
Definition at line 64 of file RndmGen.h.
|
override |
Multiple shots returning vector with random number according to specified distribution.
array | Array containing random numbers |
howmany | fill 'howmany' random numbers into array |
start | ... starting at position start |
Definition at line 35 of file RndmGen.cpp.
|
inlineoverride |
Random number generator type.
Definition at line 60 of file RndmGen.h.
|
protected |
|
protected |