15 #define GAUDI_RANDOMGENSVC_RndmEngine_CPP 81 array.
resize( start + howmany );
82 for (
long i = start, num = start + howmany; i < num; i++ ) {
83 array[cnt++] =
rndm();
StatusCode initialize() override
StreamBuffer & serialize(StreamBuffer &str) override
Input serialization from stream buffer.
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
StatusCode start() override
The stream buffer is a small object collecting object data.
bool isSuccess() const
Test for a status code of SUCCESS.
StatusCode finalize() override
Service override: finalization.
StatusCode service(const Gaudi::Utils::TypeNameString &name, T *&svc, bool createIf=true)
Templated method to access a service by name.
SmartIF< IIncidentSvc > m_pIncidentSvc
Reference to the incident service.
This class is used for returning status codes from appropriate routines.
StatusCode initialize() override
Service override: initialization.
void handle(const Incident &inc) override
Inform that a new incident has occurred.
~RndmEngine() override
Standard Destructor.
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.
StatusCode rndmArray(std::vector< double > &array, long howmany, long start=0) const override
Multiple shots returning vector with flat random numbers.
double rndm() const override
Single shot returning single random number.
Base class for all Incidents (computing events).
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator.