3// -----------------------------------------------------------------------
6// inlined functions implementation file
7// -----------------------------------------------------------------------
8// This file is part of Geant4 (simulation toolkit for HEP).
10// =======================================================================
11// Gabriele Cosmo - Created: 19th August 1998
12// =======================================================================
16inline RandGauss::RandGauss(HepRandomEngine & anEngine, double mean,
18: HepRandom(), defaultMean(mean), defaultStdDev(stdDev),
19 localEngine(&anEngine, do_nothing_deleter()), set(false), nextGauss(0.0){}
21inline RandGauss::RandGauss(HepRandomEngine * anEngine, double mean,
23: HepRandom(), defaultMean(mean), defaultStdDev(stdDev),
24 localEngine(anEngine), set(false), nextGauss(0.0) {}
26inline double RandGauss::shoot(double mean, double stdDev) {
27 return shoot()*stdDev + mean;
30inline double RandGauss::shoot(HepRandomEngine* anEngine,
31 double mean, double stdDev) {
32 return shoot(anEngine)*stdDev + mean;
35inline double RandGauss::fire() {
36 return normal()*defaultStdDev + defaultMean;
39inline double RandGauss::fire(double mean, double stdDev) {
40 return normal()*stdDev + mean;