File indexing completed on 2025-01-18 09:54:37
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 namespace CLHEP {
0015
0016 inline RandChiSquare::RandChiSquare(HepRandomEngine & anEngine, double a)
0017 : HepRandom( ), localEngine(&anEngine, do_nothing_deleter()), defaultA(a)
0018 {}
0019
0020 inline RandChiSquare::RandChiSquare(HepRandomEngine * anEngine, double a)
0021 : HepRandom( ), localEngine(anEngine), defaultA(a)
0022 {}
0023
0024 inline double RandChiSquare::fire() {
0025 return fire( defaultA );
0026 }
0027
0028 inline double RandChiSquare::shoot() {
0029 return shoot( 1.0 );
0030 }
0031
0032 inline double RandChiSquare::operator()() {
0033 return fire( defaultA );
0034 }
0035
0036 inline double RandChiSquare::operator()( double a ) {
0037 return fire( a );
0038 }
0039
0040 inline double RandChiSquare::shoot( HepRandomEngine* anEngine ) {
0041 return shoot( anEngine, 1.0 );
0042 }
0043
0044 }