4 // -----------------------------------------------------------------------
7 // inlined functions implementation file
8 // -----------------------------------------------------------------------
9 // This file is part of Geant4 (simulation toolkit for HEP).
11 // =======================================================================
12 // Gabriele Cosmo - Created: 19th August 1998
13 // =======================================================================
17 inline RandGauss::RandGauss(HepRandomEngine & anEngine, double mean,
19 : HepRandom(), defaultMean(mean), defaultStdDev(stdDev),
20 localEngine(&anEngine, do_nothing_deleter()), set(false), nextGauss(0.0){}
22 inline RandGauss::RandGauss(HepRandomEngine * anEngine, double mean,
24 : HepRandom(), defaultMean(mean), defaultStdDev(stdDev),
25 localEngine(anEngine), set(false), nextGauss(0.0) {}
27 inline double RandGauss::shoot(double mean, double stdDev) {
28 return shoot()*stdDev + mean;
31 inline double RandGauss::shoot(HepRandomEngine* anEngine,
32 double mean, double stdDev) {
33 return shoot(anEngine)*stdDev + mean;
36 inline double RandGauss::fire() {
37 return normal()*defaultStdDev + defaultMean;
40 inline double RandGauss::fire(double mean, double stdDev) {
41 return normal()*stdDev + mean;