1 #ifndef FastSimulation_Utilities_RandomEngineAndDistribution_H 2 #define FastSimulation_Utilities_RandomEngineAndDistribution_H 4 #include "CLHEP/Random/RandFlat.h" 5 #include "CLHEP/Random/RandGaussQ.h" 6 #include "CLHEP/Random/RandPoissonQ.h" 10 class HepRandomEngine;
14 class LuminosityBlockIndex;
27 CLHEP::HepRandomEngine&
theEngine()
const {
return *engine_; }
34 return CLHEP::RandGauss::shoot(engine_,
mean, sigma);
38 return CLHEP::RandPoissonQ::shoot(engine_, mean);
45 #endif // FastSimulation_Utilities_RandomEngineAndDistribution_H double flatShoot(double xmin=0.0, double xmax=1.0) const
CLHEP::HepRandomEngine & theEngine() const
CLHEP::HepRandomEngine * engine_
double gaussShoot(double mean=0.0, double sigma=1.0) const
unsigned int poissonShoot(double mean) const