39 #ifndef G4FPYSAMPLINGOPS_HH
40 #define G4FPYSAMPLINGOPS_HH
G4double G4SampleGaussian(G4double Mean, G4double StdDev)
Returns a double value taken from a Gaussian distribution about Mean and with a standard deviation of...
G4double SampleGaussian(void)
Samples a Gaussian distribution defined by the internal class variables NewMean_ and NewStdDev_...
~G4FPYSamplingOps(void)
Default deconstructor.
void EvaluateWattConstants(void)
Evaluates the constants that are required for the Watt fission spectrum sampling. ...
G4double G4SampleWatt(G4int WhatIsotope, G4FFGEnumerations::FissionCause WhatCause, G4double WhatEnergy)
Samples the Watt fission spectrum for the selected isotope, using an algorithm adopted from Ref...
WattSpectrumConstants contains constants and other variables for use in sampling the Watt fission spe...
G4double G4SampleUniform(void)
Returns a double value evenly distributed in the range (0, 1].
G4double StdDev_
Standard deviation for sampling a GaussianDistribution.
G4ShiftedGaussian * ShiftedGaussianValues_
Structure chain that contains the all the previous values used for sampling a Gaussian distribution...
FissionCause
Causes of fission.
Verbosity
These are the verbosity levels.
WattSpectrumConstants * WattConstants_
Structure that contains the values for sampling the Watt fission spectrum.
GaussianReturnType
Sample a discretized Gaussian distribution (INT) or continuous (DOUBLE)
G4double GaussianOne_
Contains the first of the two paired random numbers from the Gaussian distribution sampling...
void ShiftParameters(G4FFGEnumerations::GaussianReturnType Type)
Sets the mean and standard deviation of the Gaussian distribution sampled by this class when POSITIVE...
G4int Verbosity_
Verbosity level.
G4double GaussianTwo_
Contains the second of the two paired random numbers from the Gaussian distribution sampling...
void Initialize(void)
Initialize is a common function called by all constructors.
GaussianRange
Truncate the Gaussian distribution at 0 (POSITIVE) or sample all values (ALL)
CLHEP::HepRandomEngine * RandomEngine_
Pointer to the CLHEP random number generator.
G4double Tolerance_
Defines the tolerance that ShiftParameters() must match.
G4double Mean_
Mean for sampling a Gaussian distribution.
G4FPYSamplingOps performs all the uniform and Gaussian distribution sampling operations.
G4ShiftedGaussian is a class for storing the shifted values used for sampling a Gaussian distribution...
void G4SetVerbosity(G4int WhatVerbosity)
Sets the verbosity levels.
G4FPYSamplingOps(void)
Default constructor.
G4bool CheckAndSetParameters(void)
Check to see if the user requested parameters have already been calculated.
G4bool NextGaussianIsStoredInMemory_
Declares whether the second paired random number has been already returned.
G4int G4SampleIntegerGaussian(G4double Mean, G4double StdDev)
Returns an integer value taken from a Gaussian distribution.