Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
Public 멤버 함수 | Protected 멤버 함수 | Protected 속성 | 모든 멤버 목록
G4FPYSamplingOps 클래스 참조

#include <G4FPYSamplingOps.hh>

Public 멤버 함수

 G4FPYSamplingOps (void)
 
 G4FPYSamplingOps (G4int Verbosity)
 
G4int G4SampleIntegerGaussian (G4double Mean, G4double StdDev)
 
G4int G4SampleIntegerGaussian (G4double Mean, G4double StdDev, G4FFGEnumerations::GaussianRange Range)
 
G4double G4SampleGaussian (G4double Mean, G4double StdDev)
 
G4double G4SampleGaussian (G4double Mean, G4double StdDev, G4FFGEnumerations::GaussianRange Range)
 
G4double G4SampleUniform (void)
 
G4double G4SampleUniform (G4double Lower, G4double Upper)
 
G4double G4SampleWatt (G4int WhatIsotope, G4FFGEnumerations::FissionCause WhatCause, G4double WhatEnergy)
 
void G4SetVerbosity (G4int WhatVerbosity)
 
 ~G4FPYSamplingOps (void)
 

Protected 멤버 함수

void Initialize (void)
 
G4bool CheckAndSetParameters (void)
 
void EvaluateWattConstants (void)
 
G4double SampleGaussian (void)
 
void ShiftParameters (G4FFGEnumerations::GaussianReturnType Type)
 

Protected 속성

G4double Mean_
 
G4double StdDev_
 
G4ShiftedGaussianShiftedGaussianValues_
 
G4int Verbosity_
 
WattSpectrumConstantsWattConstants_
 
CLHEP::HepRandomEngineRandomEngine_
 
G4bool NextGaussianIsStoredInMemory_
 
G4double GaussianOne_
 
G4double GaussianTwo_
 
G4double Tolerance_
 

상세한 설명

G4FPYSamplingOps performs all the uniform and Gaussian distribution sampling operations

G4FPYSamplingOps.hh 파일의 52 번째 라인에서 정의되었습니다.

생성자 & 소멸자 문서화

G4FPYSamplingOps::G4FPYSamplingOps ( void  )

Default constructor

  • Usage: No arguments required
  • Notes:

G4FPYSamplingOps.cc 파일의 49 번째 라인에서 정의되었습니다.

다음을 참조함 : Initialize(), G4FFGDefaultValues::Verbosity, Verbosity_.

G4FPYSamplingOps::G4FPYSamplingOps ( G4int  Verbosity)

Overloaded constructor

  • Usage:
    • Verbosity: Verbosity level
  • Notes:

G4FPYSamplingOps.cc 파일의 59 번째 라인에서 정의되었습니다.

다음을 참조함 : Initialize(), Verbosity_.

G4FPYSamplingOps::~G4FPYSamplingOps ( void  )

Default deconstructor.

G4FPYSamplingOps.cc 파일의 678 번째 라인에서 정의되었습니다.

다음을 참조함 : G4FFG_FUNCTIONENTER__, G4FFG_FUNCTIONLEAVE__, ShiftedGaussianValues_, WattConstants_.

멤버 함수 문서화

G4bool G4FPYSamplingOps::CheckAndSetParameters ( void  )
protected

Check to see if the user requested parameters have already been calculated. If they have, it recalls the stored parameters and sets them as the current values.

G4FPYSamplingOps.cc 파일의 341 번째 라인에서 정의되었습니다.

다음을 참조함 : FALSE, G4FFG_SAMPLING_FUNCTIONENTER__, G4FFG_SAMPLING_FUNCTIONLEAVE__, G4ShiftedGaussian::G4FindShiftedMean(), Mean_, ShiftedGaussianValues_, StdDev_, TRUE.

다음에 의해서 참조됨 : ShiftParameters().

void G4FPYSamplingOps::EvaluateWattConstants ( void  )
protected
G4double G4FPYSamplingOps::G4SampleGaussian ( G4double  Mean,
G4double  StdDev 
)

Returns a double value taken from a Gaussian distribution about Mean and with a standard deviation of StdDev.

  • Usage:
    • Mean: Mean about which the Gaussian distribution will be sampled
    • StdDev: Standard deviation of the Gaussian distribution. 68.3% of the values will lie within the first standard deviation, 95.4% within the second standard deviation, etc...
  • Notes:

G4FPYSamplingOps.cc 파일의 92 번째 라인에서 정의되었습니다.

다음을 참조함 : FALSE, G4FFG_SAMPLING_FUNCTIONENTER__, G4FFG_SAMPLING_FUNCTIONLEAVE__, Mean_, NextGaussianIsStoredInMemory_, SampleGaussian(), StdDev_, TRUE.

다음에 의해서 참조됨 : G4FissionProductYieldDist::G4GetFission(), G4SampleGaussian(), G4FissionProductYieldDist::SampleAlphaEnergies().

G4double G4FPYSamplingOps::G4SampleGaussian ( G4double  Mean,
G4double  StdDev,
G4FFGEnumerations::GaussianRange  Range 
)

Returns a double value taken from a Gaussian distribution about Mean and with a standard deviation of StdDev.

  • Usage:
    • Mean: Mean about which the Gaussian distribution will be sampled
    • StdDev: Standard deviation of the Gaussian distribution. 68.3% of the values will lie within the first standard deviation, 95.4% within the second standard deviation, etc...
    • Range: POSITIVE or ALL
  • Notes:

G4FPYSamplingOps.cc 파일의 115 번째 라인에서 정의되었습니다.

다음을 참조함 : G4FFGEnumerations::ALL, G4FFGEnumerations::DOUBLE, G4Exception(), G4FFG_SAMPLING_FUNCTIONENTER__, G4FFG_SAMPLING_FUNCTIONLEAVE__, G4SampleGaussian(), JustWarning, Mean_, SampleGaussian(), ShiftParameters(), StdDev_, TRUE.

G4int G4FPYSamplingOps::G4SampleIntegerGaussian ( G4double  Mean,
G4double  StdDev 
)

Returns an integer value taken from a Gaussian distribution. This overloaded version assumes that the range is not restricted to positive values only.

  • Usage:
    • Mean: Mean about which the Gaussian distribution will be sampled
    • StdDev: Standard deviation of the Gaussian distribution. 68.3% of the values will lie within the first standard deviation, 95.4% within the second standard deviation, etc...
  • Notes:

G4FPYSamplingOps.cc 파일의 168 번째 라인에서 정의되었습니다.

다음을 참조함 : FALSE, G4FFG_SAMPLING_FUNCTIONENTER__, G4FFG_SAMPLING_FUNCTIONLEAVE__, Mean_, NextGaussianIsStoredInMemory_, SampleGaussian(), StdDev_, TRUE.

다음에 의해서 참조됨 : G4SampleIntegerGaussian(), G4FissionProductYieldDist::GenerateAlphas(), G4FissionProductYieldDist::GenerateNeutrons().

G4int G4FPYSamplingOps::G4SampleIntegerGaussian ( G4double  Mean,
G4double  StdDev,
G4FFGEnumerations::GaussianRange  Range 
)

Returns an integer value taken from a Gaussian distribution about Mean and with a standard deviation of StdDev.

  • Usage:
    • Mean: Mean about which the Gaussian distribution will be sampled
    • StdDev: Standard deviation of the Gaussian distribution. 68.3% of the values will lie within the first standard deviation, 95.4% within the second standard deviation, etc...
    • Range: POSITIVE or ALL
  • Notes:

G4FPYSamplingOps.cc 파일의 192 번째 라인에서 정의되었습니다.

다음을 참조함 : G4FFGEnumerations::ALL, G4FFG_SAMPLING_FUNCTIONENTER__, G4FFG_SAMPLING_FUNCTIONLEAVE__, G4SampleIntegerGaussian(), G4FFGEnumerations::INT, Mean_, SampleGaussian(), ShiftParameters(), StdDev_, TRUE.

G4double G4FPYSamplingOps::G4SampleUniform ( void  )
G4double G4FPYSamplingOps::G4SampleUniform ( G4double  Lower,
G4double  Upper 
)

Returns a double value evenly distributed in the range (Lower, Upper].

  • Usage:
    • Lower: Lower bounds of the distribution
    • Upper: Upper bounds of the distribution
  • Notes:

G4FPYSamplingOps.cc 파일의 268 번째 라인에서 정의되었습니다.

다음을 참조함 : G4FFG_SAMPLING_FUNCTIONENTER__, G4FFG_SAMPLING_FUNCTIONLEAVE__, G4SampleUniform().

G4double G4FPYSamplingOps::G4SampleWatt ( G4int  WhatIsotope,
G4FFGEnumerations::FissionCause  WhatCause,
G4double  WhatEnergy 
)

Samples the Watt fission spectrum for the selected isotope, using an algorithm adopted from Ref. 1

  • Usage:
    • WhatIsotope: The isotope that is to be sampled
    • WhatCause: The cause of the isotope to be sampled
    • WhatEnergy: The energy, in MeV of the incident particle
  • Notes:
    • All variables needed for this function are grouped together in WattConstants_.

G4FPYSamplingOps.cc 파일의 284 번째 라인에서 정의되었습니다.

다음을 참조함 : WattSpectrumConstants::B, WattSpectrumConstants::Cause, WattSpectrumConstants::Energy, EvaluateWattConstants(), G4cout, G4endl, G4FFG_SAMPLING_FUNCTIONENTER__, G4FFG_SAMPLING_FUNCTIONLEAVE__, G4Log(), G4SampleUniform(), G4Pow::GetInstance(), WattSpectrumConstants::L, WattSpectrumConstants::M, WattSpectrumConstants::Product, WattConstants_, X, Y.

다음에 의해서 참조됨 : G4FissionProductYieldDist::SampleNeutronEnergies().

void G4FPYSamplingOps::G4SetVerbosity ( G4int  WhatVerbosity)

Sets the verbosity levels

  • Usage:
    • WhichVerbosity: Combination of levels
  • Notes:
    • SILENT: All verbose output is repressed
    • UPDATES: Only high-level internal changes are reported
    • DAUGHTER_INFO: Displays information about daughter product sampling
    • NEUTRON_INFO: Displays information about neutron sampling
    • GAMMA_INFO: Displays information about gamma sampling
    • ALPHA_INFO: Displays information about alpha sampling
    • MOMENTUM_INFO: Displays information about momentum balancing
    • EXTRAPOLATION_INTERPOLATION_INFO: Displays information about any data extrapolation or interpolation that occurs
    • DEBUG: Reports program flow as it steps through functions
    • PRINT_ALL: Displays any and all output

G4FPYSamplingOps.cc 파일의 329 번째 라인에서 정의되었습니다.

다음을 참조함 : G4FFG_SAMPLING_FUNCTIONENTER__, G4FFG_SAMPLING_FUNCTIONLEAVE__, G4ShiftedGaussian::G4SetVerbosity(), ShiftedGaussianValues_, Verbosity_.

다음에 의해서 참조됨 : G4FissionProductYieldDist::G4SetVerbosity().

void G4FPYSamplingOps::Initialize ( void  )
protected

Initialize is a common function called by all constructors.

G4FPYSamplingOps.cc 파일의 69 번째 라인에서 정의되었습니다.

다음을 참조함 : FALSE, G4FFG_FUNCTIONENTER__, G4FFG_FUNCTIONLEAVE__, GaussianOne_, GaussianTwo_, Mean_, NextGaussianIsStoredInMemory_, WattSpectrumConstants::Product, RandomEngine_, ShiftedGaussianValues_, StdDev_, Tolerance_, WattConstants_.

다음에 의해서 참조됨 : G4FPYSamplingOps().

G4double G4FPYSamplingOps::SampleGaussian ( void  )
protected

Samples a Gaussian distribution defined by the internal class variables NewMean_ and NewStdDev_.

G4FPYSamplingOps.cc 파일의 490 번째 라인에서 정의되었습니다.

다음을 참조함 : FALSE, G4FFG_SAMPLING_FUNCTIONENTER__, G4FFG_SAMPLING_FUNCTIONLEAVE__, G4Log(), G4SampleUniform(), GaussianOne_, GaussianTwo_, Mean_, NextGaussianIsStoredInMemory_, StdDev_, TRUE.

다음에 의해서 참조됨 : G4SampleGaussian(), G4SampleIntegerGaussian().

void G4FPYSamplingOps::ShiftParameters ( G4FFGEnumerations::GaussianReturnType  Type)
protected

Sets the mean and standard deviation of the Gaussian distribution sampled by this class when POSITIVE values are requested. ShiftMean() performs two different operations based on the requested data type.

  • INTEGER: Iteratively searches for an adjusted mean that produces the same result as the mean requested by the implementor. In this instance the standard deviation is not adjusted.
  • DOUBLE: Adjusts the standard deviation of the Gaussian distribution so that the first seven standard deviations occur are all positive. The chance that a negative value will result using this method is 2.56E-12

G4FPYSamplingOps.cc 파일의 527 번째 라인에서 정의되었습니다.

다음을 참조함 : CheckAndSetParameters(), CLHEP::HepStat::erf(), FALSE, G4cout, G4endl, G4FFG_SAMPLING_FUNCTIONENTER__, G4FFG_SAMPLING_FUNCTIONLEAVE__, G4ShiftedGaussian::G4InsertShiftedMean(), G4FFGEnumerations::INT, Mean_, NextGaussianIsStoredInMemory_, ShiftedGaussianValues_, StdDev_, Tolerance_, TRUE.

다음에 의해서 참조됨 : G4SampleGaussian(), G4SampleIntegerGaussian().

멤버 데이타 문서화

G4double G4FPYSamplingOps::GaussianOne_
protected

Contains the first of the two paired random numbers from the Gaussian distribution sampling.

G4FPYSamplingOps.hh 파일의 203 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : Initialize(), SampleGaussian().

G4double G4FPYSamplingOps::GaussianTwo_
protected

Contains the second of the two paired random numbers from the Gaussian distribution sampling.

G4FPYSamplingOps.hh 파일의 207 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : Initialize(), SampleGaussian().

G4double G4FPYSamplingOps::Mean_
protected

Mean for sampling a Gaussian distribution

G4FPYSamplingOps.hh 파일의 177 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : CheckAndSetParameters(), G4SampleGaussian(), G4SampleIntegerGaussian(), Initialize(), SampleGaussian(), ShiftParameters().

G4bool G4FPYSamplingOps::NextGaussianIsStoredInMemory_
protected

Declares whether the second paired random number has been already returned.

G4FPYSamplingOps.hh 파일의 199 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : G4SampleGaussian(), G4SampleIntegerGaussian(), Initialize(), SampleGaussian(), ShiftParameters().

CLHEP::HepRandomEngine* G4FPYSamplingOps::RandomEngine_
protected

Pointer to the CLHEP random number generator.

G4FPYSamplingOps.hh 파일의 193 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : G4SampleUniform(), Initialize().

G4ShiftedGaussian* G4FPYSamplingOps::ShiftedGaussianValues_
protected

Structure chain that contains the all the previous values used for sampling a Gaussian distribution

G4FPYSamplingOps.hh 파일의 183 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : CheckAndSetParameters(), G4SetVerbosity(), Initialize(), ShiftParameters(), ~G4FPYSamplingOps().

G4double G4FPYSamplingOps::StdDev_
protected

Standard deviation for sampling a GaussianDistribution

G4FPYSamplingOps.hh 파일의 179 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : CheckAndSetParameters(), G4SampleGaussian(), G4SampleIntegerGaussian(), Initialize(), SampleGaussian(), ShiftParameters().

G4double G4FPYSamplingOps::Tolerance_
protected

Defines the tolerance that ShiftParameters() must match.

G4FPYSamplingOps.hh 파일의 209 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : Initialize(), ShiftParameters().

G4int G4FPYSamplingOps::Verbosity_
protected

Verbosity level

G4FPYSamplingOps.hh 파일의 185 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : G4FPYSamplingOps(), G4SetVerbosity().

WattSpectrumConstants* G4FPYSamplingOps::WattConstants_
protected

Structure that contains the values for sampling the Watt fission spectrum

G4FPYSamplingOps.hh 파일의 189 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : EvaluateWattConstants(), G4SampleWatt(), Initialize(), ~G4FPYSamplingOps().


이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: