File indexing completed on 2025-01-18 09:54:38
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 namespace CLHEP {
0022
0023 RandGaussT::RandGaussT(HepRandomEngine & anEngine, double mean,
0024 double stdDev )
0025 : RandGauss(anEngine, mean, stdDev) {}
0026
0027 RandGaussT::RandGaussT(HepRandomEngine * anEngine, double mean,
0028 double stdDev )
0029 : RandGauss(anEngine, mean, stdDev) {}
0030
0031
0032
0033
0034 double RandGaussT::shoot()
0035 {
0036 HepRandomEngine* anEngine = HepRandom::getTheEngine();
0037 return HepStat::flatToGaussian (anEngine->flat());
0038 }
0039
0040 double RandGaussT::shoot( HepRandomEngine* anotherEngine )
0041 {
0042 return HepStat::flatToGaussian (anotherEngine->flat());
0043 }
0044
0045 double RandGaussT::shoot(double mean, double stdDev) {
0046 return shoot()*stdDev + mean;
0047 }
0048
0049 double RandGaussT::shoot(HepRandomEngine* anotherEngine,
0050 double mean, double stdDev) {
0051 return shoot(anotherEngine)*stdDev + mean;
0052 }
0053
0054
0055
0056
0057 double RandGaussT::fire() {
0058 return HepStat::flatToGaussian(localEngine->flat()) * defaultStdDev
0059 + defaultMean;
0060 }
0061
0062 double RandGaussT::fire(double mean, double stdDev) {
0063 return HepStat::flatToGaussian(localEngine->flat()) * stdDev + mean;
0064 }
0065
0066
0067 }