Files
geant4/source/externals/clhep/include/CLHEP/Random/RandPoisson.icc
T
2016-06-10 12:08:39 +02:00

34 lines
1.1 KiB
C++

// $Id:$
// -*- C++ -*-
//
// -----------------------------------------------------------------------
// HEP Random
// --- RandPoisson ---
// inlined functions implementation file
// -----------------------------------------------------------------------
// This file is part of Geant4 (simulation toolkit for HEP).
// =======================================================================
// Gabriele Cosmo - Created: 19th August 1998
// =======================================================================
namespace CLHEP {
inline RandPoisson::RandPoisson(HepRandomEngine & anEngine, double a1 )
: HepRandom(), meanMax(2.0E9), defaultMean(a1),
localEngine(&anEngine, do_nothing_deleter()), oldm(-1.0) {
status[0] = status[1] = status[2] = 0.;
}
inline RandPoisson::RandPoisson(HepRandomEngine * anEngine, double a1 )
: HepRandom(), meanMax(2.0E9), defaultMean(a1),
localEngine(anEngine), oldm(-1.0) {
status[0] = status[1] = status[2] = 0.;
}
inline HepRandomEngine * RandPoisson::getLocalEngine() {
return localEngine.get();
}
} // namespace CLHEP