1 #ifndef _utl_VRandomSampler_h_
2 #define _utl_VRandomSampler_h_
4 #include <utl/config.h>
5 #include <CLHEP/Random/Random.h>
43 shootArray(
HepEngine& engine,
const unsigned int size,
double*
const vect)
47 engine.flatArray(size, rand);
48 for (
unsigned int i = 0; i < size; ++i)
53 virtual double MapRandom(
const double rand)
const = 0;
virtual ~VRandomSampler()
double shoot(HepEngine &engine) const
Method to shoot random values using a given engine by-passing the static generator.
CLHEP::HepRandomEngine HepEngine
virtual double MapRandom(const double rand) const =0
Class to shoot random numbers given by a user-defined distribution function.