#include <RndmGen.h>
Inheritance diagram for RndmGen:

Public Methods | |
| unsigned long | addRef () |
| Increase reference count. More... | |
| unsigned long | release () |
| Decrease reference count. More... | |
| StatusCode | queryInterface (const IID& riid, void** ppvInterface) |
| Query interface. More... | |
| virtual StatusCode | initialize (const IRndmGen::Param& par) |
| Initialize the generator. More... | |
| virtual StatusCode | finalize () |
| Initialize the generator. More... | |
| virtual const IID& | type () const |
| Random number generator type. More... | |
| virtual const 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... | |
Protected Methods | |
| 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... | |
Private Attributes | |
| unsigned long | m_refCount |
| Reference count. More... | |
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
Definition at line 39 of file RndmGen.h.
|
|
Standard Constructor.
Definition at line 22 of file RndmGen.cpp. |
|
|
Standard Destructor.
Definition at line 29 of file RndmGen.cpp. |
|
|
Random number generator ID.
|
|
|
Increase reference count.
Definition at line 59 of file RndmGen.h. Referenced by queryInterface(), and HepRndm::RndmGenFactory::queryInterface(). |
|
|
Initialize the generator.
Reimplemented in HepRndm::Generator< Rndm::DefinedPdf >. Definition at line 56 of file RndmGen.cpp. |
|
|
Initialize the generator.
Reimplemented in HepRndm::Generator, and HepRndm::Generator< Rndm::DefinedPdf >. Definition at line 50 of file RndmGen.cpp. Referenced by HepRndm::Generator::initialize(). |
|
|
Access to random number generator parameters.
|
|
|
Query interface.
Definition at line 35 of file RndmGen.cpp. |
|
|
Decrease reference count.
|
|
|
Single shot returning single random number according to specified distribution.
Reimplemented in HepRndm::Generator, and HepRndm::Generator< Rndm::DefinedPdf >. Definition at line 63 of file RndmGen.cpp. Referenced by shootArray(). |
|
|
Multiple shots returning vector with random number according to specified distribution.
Definition at line 68 of file RndmGen.cpp. |
|
|
Random number generator type.
|
|
|
Hosting service: Access must always be possible.
|
|
|
Generation parameters.
|
|
|
Reference count.
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000