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