3// -----------------------------------------------------------------------
6// inlined functions implementation file
7// -----------------------------------------------------------------------
9// =======================================================================
10// Gabriele Cosmo - Created: 20th August 1998
12// M. Fischler - Moved fire() and shoot(anEngine) into inline so that
13// the use of mapRandom does not cost an extra function call.
14// =======================================================================
18inline double RandGeneral::fire()
20 double rand = localEngine->flat();
21 return mapRandom(rand);
24inline double RandGeneral::shoot()
29inline double RandGeneral::operator() ()
34inline double RandGeneral::shoot( HepRandomEngine* anEngine )
36 double rand = anEngine->flat();
37 return mapRandom(rand);
40inline void RandGeneral::shootArray( const int size, double* vect )
42 fireArray(size, vect);