8 #ifndef GAUDI_RANDOMGENSVC_RNDMGEN_H 9 #define GAUDI_RANDOMGENSVC_RNDMGEN_H 1 60 const InterfaceID&
type()
const override {
return ( m_params != 0 ) ? m_params->
type() : IID_IRndmFlat; }
62 long ID()
const override {
return long(
this ); }
73 #endif // GAUDI_RANDOMGENSVC_RNDMGEN_H
Base class used to implement the interfaces.
RndmGen(IInterface *engine)
Standard Constructor.
virtual const InterfaceID & type() const
Parameter's type.
const InterfaceID & type() const override
Random number generator type.
long ID() const override
Random number generator ID.
const IRndmGen::Param * parameters() const override
Access to random number generator parameters.
SmartIF< IRndmEngine > m_engine
Hosting service: Access must always be possible.
This class is used for returning status codes from appropriate routines.
StatusCode shootArray(std::vector< double > &array, long howmany, long start) const override
Multiple shots returning vector with random number according to specified distribution.
Definition of the basic interface.
StatusCode initialize(const IRndmGen::Param &par) override
IRndmGen implementation.
Random Generator definition.
StatusCode finalize() override
Finalize the generator.
struct GAUDI_API array
Parametrisation class for redirection array - like implementation.
std::unique_ptr< IRndmGen::Param > m_params
Generation parameters.
Definition of a interface for a generic random number generator giving randomly distributed numbers i...