15 #define GAUDI_RANDOMGENSVC_RndmEngine_CPP
89 array.resize(start+howmany);
90 for (
long i = start, num = start+howmany;
i < num;
i++ ) {
91 array[cnt++] =
rndm();
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.
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.
bool isValid() const
Allow for check if smart pointer is valid.
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.
StatusCode setProperties()
Method for setting declared properties to the values specified for the job.
struct GAUDI_API array
Parametrisation class for redirection array - like implementation.
virtual StatusCode initialize()
Initialization (from CONFIGURED to INITIALIZED).
virtual ~RndmEngine()
Standard Destructor.
Base class for all Incidents (computing events).
Templated class to add the standard messaging functionalities.
virtual StatusCode start()
Start (from INITIALIZED to RUNNING).
virtual StatusCode initialize()
Service override: initialization.
virtual StatusCode finalize()
Finalize (from INITIALIZED to CONFIGURED).
SmartIF< ISvcLocator > & serviceLocator() const
Retrieve pointer to service locator.