CLHEP
2.4.7.1
C++ Class Library for High Energy Physics
CLHEP
Random
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
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
CLHEP::HepRandomEngine
Definition
RandomEngine.h:55
CLHEP::HepRandom
Definition
Random.h:50
CLHEP::RandPoisson::getLocalEngine
HepRandomEngine * getLocalEngine()
Definition
RandPoisson.icc:29
CLHEP::RandPoisson::RandPoisson
RandPoisson(HepRandomEngine &anEngine, double a1=1.0)
Definition
RandPoisson.icc:17
CLHEP
Definition
ClhepVersion.h:13
CLHEP::do_nothing_deleter
Definition
memory.h:25
Generated by
1.12.0