3// -----------------------------------------------------------------------
6// inlined functions implementation file
7// -----------------------------------------------------------------------
9// =======================================================================
10// Gabriele Cosmo - Created: 19th August 1998
11// =======================================================================
15inline RandGamma::RandGamma(HepRandomEngine & anEngine, double k,
17: HepRandom(), localEngine(&anEngine, do_nothing_deleter()),
18 defaultK(k), defaultLambda(lambda) {}
20inline RandGamma::RandGamma(HepRandomEngine * anEngine, double k,
22: HepRandom(), localEngine(anEngine),
23 defaultK(k), defaultLambda(lambda) {}
25inline double RandGamma::shoot() {
26 return shoot( 1.0, 1.0 );
29inline double RandGamma::shoot( HepRandomEngine* anEngine ) {
30 return shoot( anEngine, 1.0, 1.0 );
33inline double RandGamma::operator()() {
34 return fire( defaultK, defaultLambda );
37inline double RandGamma::operator()( double k, double lambda ) {
38 return fire( k, lambda );
41inline double RandGamma::fire() {
42 return fire( defaultK, defaultLambda );