15 #define GAUDI_RANDOMGENSVC_RndmEngine_CPP
21 #include "GaudiKernel/IMessageSvc.h"
22 #include "GaudiKernel/ISvcLocator.h"
23 #include "GaudiKernel/IIncidentSvc.h"
24 #include "GaudiKernel/IOpaqueAddress.h"
25 #include "GaudiKernel/IDataProviderSvc.h"
26 #include "GaudiKernel/DataObject.h"
27 #include "GaudiKernel/MsgStream.h"
44 status = setProperties();
89 array.resize(start+howmany);
90 for (
long i = start, num = start+howmany;
i < num;
i++ ) {
91 array[cnt++] =
rndm();
StatusCode initialize() override
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
RndmEngine(const std::string &name, ISvcLocator *loc)
Standard Constructor.
StatusCode finalize() override
virtual StatusCode rndmArray(std::vector< double > &array, long howmany, long start=0) const
Multiple shots returning vector with flat random numbers.
The stream buffer is a small object collecting object data.
bool isSuccess() const
Test for a status code of SUCCESS.
virtual double rndm() const
Single shot returning single random number.
virtual void handle(const Incident &inc)
Inform that a new incident has occurred.
SmartIF< IIncidentSvc > m_pIncidentSvc
Reference to the incident service.
virtual StatusCode finalize()
Service override: finalization.
This class is used for returning status codes from appropriate routines.
virtual StreamBuffer & serialize(StreamBuffer &str)
Input serialization from stream buffer.
struct GAUDI_API array
Parametrisation class for redirection array - like implementation.
Base class used to extend a class implementing other interfaces.
virtual ~RndmEngine()
Standard Destructor.
Base class for all Incidents (computing events).
virtual StatusCode initialize()
Service override: initialization.