CLHEP 2.4.7.1
C++ Class Library for High Energy Physics
RandPoisson.icc
Go to the documentation of this file.
1// $Id: RandPoisson.icc,v 1.3 2010/06/16 17:24:53 garren Exp $
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
15namespace CLHEP {
16
17inline 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
23inline 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
30 return localEngine.get();
31}
32
33} // namespace CLHEP
HepRandomEngine * getLocalEngine()
RandPoisson(HepRandomEngine &anEngine, double a1=1.0)