8 #ifndef GAUDI_RANDOMGENSVC_RNDMGENSVC_H
9 #define GAUDI_RANDOMGENSVC_RNDMGENSVC_H 1
22 class IRndmGenFactory;
77 virtual double rndm()
const;
91 #endif // GAUDI_RANDOMGENSVC_RNDMGENSVC_H
RndmGenSvc(const std::string &name, ISvcLocator *svc)
Standard Service constructor.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
virtual StatusCode seeds(std::vector< long > &seeds) const
Allow to get seeds.
The stream buffer is a small object collecting object data.
Definition of a interface for a generic random number generators.
std::string m_engineName
Engine name.
virtual double rndm() const
Single shot returning single random number.
virtual StatusCode initialize()
Service override: initialization.
virtual StatusCode rndmArray(std::vector< double > &array, long howmany, long start=0) const
Multiple shots returning vector with flat random numbers.
Base class used to extend a class implementing other interfaces.
virtual StatusCode setSeeds(const std::vector< long > &seeds)
Allow to set new seeds.
Random Generator service definition.
virtual StatusCode generator(const IRndmGen::Param &par, IRndmGen *&refpGen)
Retrieve a valid generator from the service.
This class is used for returning status codes from appropriate routines.
virtual StatusCode finalize()
Service override: finalization.
The IMessage is the interface implemented by the message service.
virtual IRndmEngine * engine()
Retrieve engine.
virtual ~RndmGenSvc()
Standard Service destructor.
virtual const std::string & name() const
Retrieve name of the service.
IRndmEngine * m_engine
Random number engine.
virtual StreamBuffer & serialize(StreamBuffer &str)
IRndmGenSvc interface implementation.
struct GAUDI_API array
Parametrisation class for redirection array - like implementation.
Definition of a interface for a generic random number generator giving randomly distributed numbers i...
virtual StatusCode start()
Start (from INITIALIZED to RUNNING).
Object serialization interface definition.
ISerialize * m_serialize
Serialization interface of random number engine.