24#define GAUDI_RANDOMGENSVC_RNDMGEN_CPP
46 array.resize( start + howmany );
47 std::generate_n( std::next( std::begin( array ), start ), howmany, [&]() {
return this->shoot(); } );
Definition of the basic interface.
SmartIF< IRndmEngine > m_engine
Hosting service: Access must always be possible.
RndmGen(IInterface *engine)
Standard Constructor.
StatusCode finalize() override
Finalize the generator.
std::unique_ptr< IRndmGen::Param > m_params
Generation parameters.
StatusCode shootArray(std::vector< double > &array, long howmany, long start) const override
Multiple shots returning vector with random number according to specified distribution.
StatusCode initialize(const IRndmGen::Param &par) override
IRndmGen implementation.
This class is used for returning status codes from appropriate routines.
constexpr static const auto SUCCESS
constexpr static const auto FAILURE