3// -----------------------------------------------------------------------
5// --- RandChiSquare ---
6// inlined functions implementation file
7// -----------------------------------------------------------------------
9// =======================================================================
10// Gabriele Cosmo - Created: 19th August 1998
11// =======================================================================
15inline RandChiSquare::RandChiSquare(HepRandomEngine & anEngine, double a)
16: HepRandom( ), localEngine(&anEngine, do_nothing_deleter()), defaultA(a)
19inline RandChiSquare::RandChiSquare(HepRandomEngine * anEngine, double a)
20: HepRandom( ), localEngine(anEngine), defaultA(a)
23inline double RandChiSquare::fire() {
24 return fire( defaultA );
27inline double RandChiSquare::shoot() {
31inline double RandChiSquare::operator()() {
32 return fire( defaultA );
35inline double RandChiSquare::operator()( double a ) {
39inline double RandChiSquare::shoot( HepRandomEngine* anEngine ) {
40 return shoot( anEngine, 1.0 );