![]() |
The Gaudi Framework
v25r3
|
Random Generator definition. More...
#include <src/RndmGenSvc/RndmGen.h>


Public Member Functions | |
| virtual StatusCode | initialize (const IRndmGen::Param &par) |
| IRndmGen implementation. More... | |
| virtual StatusCode | finalize () |
| Initialize the generator. More... | |
| virtual const InterfaceID & | type () const |
| Random number generator type. More... | |
| virtual long | ID () const |
| Random number generator ID. More... | |
| virtual const IRndmGen::Param * | parameters () const |
| Access to random number generator parameters. More... | |
| virtual double | shoot () const |
| Single shot returning single random number according to specified distribution. More... | |
| virtual StatusCode | shootArray (std::vector< double > &array, long howmany, long start) const |
| Multiple shots returning vector with random number according to specified distribution. More... | |
Public Member Functions inherited from extend_interfaces1< IRndmGen > | |
| virtual | ~extend_interfaces1 () |
| Virtual destructor. More... | |
Public Member Functions inherited from IRndmGen | |
| DeclareInterfaceID (IRndmGen, 2, 0) | |
| InterfaceID. More... | |
| virtual | ~IRndmGen () |
| Virtual destructor. More... | |
Public Member Functions inherited from IInterface | |
| virtual void * | i_cast (const InterfaceID &) const =0 |
| main cast function More... | |
| virtual std::vector< std::string > | getInterfaceNames () const =0 |
| Returns a vector of strings containing the names of all the implemented interfaces. More... | |
| virtual unsigned long | addRef ()=0 |
| Increment the reference count of Interface instance. More... | |
| virtual unsigned long | release ()=0 |
| Release Interface instance. More... | |
| virtual unsigned long | refCount () const =0 |
| Current reference count. More... | |
| virtual StatusCode | queryInterface (const InterfaceID &ti, void **pp)=0 |
| Set the void** to the pointer to the requested interface of the instance. More... | |
| virtual | ~IInterface () |
| Virtual destructor. More... | |
Protected Member Functions | |
| RndmGen (IInterface *engine) | |
| Standard Constructor. More... | |
| virtual | ~RndmGen () |
| Standard Destructor. More... | |
Protected Attributes | |
| IRndmGen::Param * | m_params |
| Generation parameters. More... | |
| IRndmEngine * | m_engine |
| Hosting service: Access must always be possible. More... | |
Additional Inherited Members | |
Public Types inherited from implements1< IRndmGen > | |
| typedef implements1 | base_class |
| Typedef to this class. More... | |
| typedef extend_interfaces1 < IRndmGen > | extend_interfaces_base |
| Typedef to the base of this class. More... | |
| typedef extend_interfaces_base::ext_iids | interfaces |
| MPL set of all the implemented interfaces. More... | |
Public Types inherited from extend_interfaces1< IRndmGen > | |
| typedef IRndmGen::iid::iids::type | ext_iids |
| MPL set of interfaces extended by this one. More... | |
Public Types inherited from IInterface | |
| enum | Status { SUCCESS = 1, NO_INTERFACE, VERSMISMATCH, LAST_ERROR } |
| Return status. More... | |
| typedef Gaudi::InterfaceId < IInterface, 0, 0 > | iid |
| Interface ID. More... | |
| typedef mpl::set1< iid > | ext_iids |
| Extra interfaces. More... | |
Static Public Member Functions inherited from IInterface | |
| static const InterfaceID & | interfaceID () |
| Return an instance of InterfaceID identifying the interface. 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 22 of file RndmGen.cpp.
|
protectedvirtual |
Standard Destructor.
Definition at line 29 of file RndmGen.cpp.
|
virtual |
Initialize the generator.
Initialize the RndmGen.
Implements IRndmGen.
Reimplemented in HepRndm::Generator< Rndm::DefinedPdf >.
Definition at line 43 of file RndmGen.cpp.
|
inlinevirtual |
|
virtual |
IRndmGen implementation.
Initialize the generator.
Initialize the generator
Implements IRndmGen.
Reimplemented in HepRndm::Generator< Rndm::DefinedPdf >, and HepRndm::Generator< TYPE >.
Definition at line 37 of file RndmGen.cpp.
|
inlinevirtual |
|
virtual |
Single shot returning single random number according to specified distribution.
Implements IRndmGen.
Reimplemented in HepRndm::Generator< TYPE >, HepRndm::Generator< Rndm::DefinedPdf >, HepRndm::Generator< TYPE >, HepRndm::Generator< TYPE >, HepRndm::Generator< TYPE >, HepRndm::Generator< TYPE >, HepRndm::Generator< TYPE >, HepRndm::Generator< TYPE >, HepRndm::Generator< TYPE >, HepRndm::Generator< TYPE >, HepRndm::Generator< TYPE >, HepRndm::Generator< TYPE >, HepRndm::Generator< TYPE >, HepRndm::Generator< TYPE >, and HepRndm::Generator< TYPE >.
Definition at line 48 of file RndmGen.cpp.
|
virtual |
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 |
Implements IRndmGen.
Definition at line 53 of file RndmGen.cpp.
|
inlinevirtual |
Random number generator type.
Implements IRndmGen.
Definition at line 60 of file RndmGen.h.
|
protected |
|
protected |