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;
39 CLHEP::RandFlat flatDistribution(*
engine_);
48 CLHEP::RandGaussQ gaussianDistribution(*
engine_);
49 return mean + sigma * gaussianDistribution.fire();
57 CLHEP::RandPoissonQ poissonDistribution(*
engine_);
58 return poissonDistribution.fire(mean);
67 #endif // FastSimulation_Utilities_RandomEngineAndDistribution_H
double flatShoot(double xmin=0.0, double xmax=1.0) const
~RandomEngineAndDistribution()
CLHEP::HepRandomEngine & theEngine() const
CLHEP::HepRandomEngine * engine_
RandomEngineAndDistribution()
double gaussShoot(double mean=0.0, double sigma=1.0) const
unsigned int poissonShoot(double mean) const