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