/usr/include/CLHEP/Random/RandGauss.icc is in libclhep-dev 2.1.4.1+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | // $Id: RandGauss.icc,v 1.3 2010/06/16 17:24:53 garren Exp $
// -*- C++ -*-
//
// -----------------------------------------------------------------------
// HEP Random
// --- RandGauss ---
// inlined functions implementation file
// -----------------------------------------------------------------------
// This file is part of Geant4 (simulation toolkit for HEP).
// =======================================================================
// Gabriele Cosmo - Created: 19th August 1998
// =======================================================================
namespace CLHEP {
inline RandGauss::RandGauss(HepRandomEngine & anEngine, double mean,
double stdDev )
: HepRandom(), defaultMean(mean), defaultStdDev(stdDev),
localEngine(&anEngine, do_nothing_deleter()), set(false), nextGauss(0.0){}
inline RandGauss::RandGauss(HepRandomEngine * anEngine, double mean,
double stdDev )
: HepRandom(), defaultMean(mean), defaultStdDev(stdDev),
localEngine(anEngine), set(false), nextGauss(0.0) {}
inline double RandGauss::shoot(double mean, double stdDev) {
return shoot()*stdDev + mean;
}
inline double RandGauss::shoot(HepRandomEngine* anEngine,
double mean, double stdDev) {
return shoot(anEngine)*stdDev + mean;
}
inline double RandGauss::fire() {
return normal()*defaultStdDev + defaultMean;
}
inline double RandGauss::fire(double mean, double stdDev) {
return normal()*stdDev + mean;
}
} // namespace CLHEP
|