14 #define GAUDI_RANDOMGENSVC_RNDMGEN_CPP
18 #include "GaudiKernel/ISvcLocator.h"
19 #include "GaudiKernel/IRndmEngine.h"
40 array.resize(start+howmany);
41 std::generate_n( std::next(
std::begin(array), start ), howmany, [&](){
return this->shoot(); } );
virtual Param * clone() const =0
Clone parameters.
RndmGen(IInterface *engine)
Standard Constructor.
auto begin(reverse_wrapper< T > &w)
SmartIF< IRndmEngine > m_engine
Hosting service: Access must always be possible.
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
StatusCode initialize(const IRndmGen::Param &par) override
IRndmGen implementation.
StatusCode finalize() override
Finalize the generator.
struct GAUDI_API array
Parametrisation class for redirection array - like implementation.
StatusCode shootArray(std::vector< double > &array, long howmany, long start) const override
Multiple shots returning vector with random number according to specified distribution.
std::unique_ptr< IRndmGen::Param > m_params
Generation parameters.