Geant4  10.01.p03
RandPoisson.icc
Go to the documentation of this file.
1 // $Id:$
2 // -*- C++ -*-
3 //
4 // -----------------------------------------------------------------------
5 // HEP Random
6 // --- RandPoisson ---
7 // inlined functions implementation file
8 // -----------------------------------------------------------------------
9 // This file is part of Geant4 (simulation toolkit for HEP).
10 
11 // =======================================================================
12 // Gabriele Cosmo - Created: 19th August 1998
13 // =======================================================================
14 
15 namespace CLHEP {
16 
17 inline RandPoisson::RandPoisson(HepRandomEngine & anEngine, double a1 )
18 : HepRandom(), meanMax(2.0E9), defaultMean(a1),
19  localEngine(&anEngine, do_nothing_deleter()), oldm(-1.0) {
20  status[0] = status[1] = status[2] = 0.;
21 }
22 
23 inline RandPoisson::RandPoisson(HepRandomEngine * anEngine, double a1 )
24 : HepRandom(), meanMax(2.0E9), defaultMean(a1),
25  localEngine(anEngine), oldm(-1.0) {
26  status[0] = status[1] = status[2] = 0.;
27 }
28 
29 inline HepRandomEngine * RandPoisson::getLocalEngine() {
30  return localEngine.get();
31 }
32 
33 } // namespace CLHEP