14 #define GAUDI_RANDOMGENSVC_RNDMGEN_CPP
56 array.resize(start+howmany);
57 for (
long i = start, num = start+howmany;
i < num;
i++ ) {
58 array[cnt++] =
shoot();
virtual StatusCode initialize(const IRndmGen::Param &par)
IRndmGen implementation.
virtual Param * clone() const =0
Clone parameters.
IRndmGen::Param * m_params
Generation parameters.
RndmGen(IInterface *engine)
Standard Constructor.
virtual ~RndmGen()
Standard Destructor.
virtual StatusCode finalize()
Initialize the generator.
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
IRndmEngine * m_engine
Hosting service: Access must always be possible.
virtual double shoot() const
Single shot returning single random number according to specified distribution.
struct GAUDI_API array
Parametrisation class for redirection array - like implementation.
virtual unsigned long release()=0
Release Interface instance.
virtual StatusCode shootArray(std::vector< double > &array, long howmany, long start) const
Multiple shots returning vector with random number according to specified distribution.
static const InterfaceID & interfaceID()
Return an instance of InterfaceID identifying the interface.
virtual StatusCode queryInterface(const InterfaceID &ti, void **pp)=0
Set the void** to the pointer to the requested interface of the instance.