|
||||
File indexing completed on 2025-01-18 09:54:38
0001 // $Id: RandPoisson.icc,v 1.3 2010/06/16 17:24:53 garren Exp $ 0002 // -*- C++ -*- 0003 // 0004 // ----------------------------------------------------------------------- 0005 // HEP Random 0006 // --- RandPoisson --- 0007 // inlined functions implementation file 0008 // ----------------------------------------------------------------------- 0009 // This file is part of Geant4 (simulation toolkit for HEP). 0010 0011 // ======================================================================= 0012 // Gabriele Cosmo - Created: 19th August 1998 0013 // ======================================================================= 0014 0015 namespace CLHEP { 0016 0017 inline RandPoisson::RandPoisson(HepRandomEngine & anEngine, double a1 ) 0018 : HepRandom(), meanMax(2.0E9), defaultMean(a1), 0019 localEngine(&anEngine, do_nothing_deleter()), oldm(-1.0) { 0020 status[0] = status[1] = status[2] = 0.; 0021 } 0022 0023 inline RandPoisson::RandPoisson(HepRandomEngine * anEngine, double a1 ) 0024 : HepRandom(), meanMax(2.0E9), defaultMean(a1), 0025 localEngine(anEngine), oldm(-1.0) { 0026 status[0] = status[1] = status[2] = 0.; 0027 } 0028 0029 inline HepRandomEngine * RandPoisson::getLocalEngine() { 0030 return localEngine.get(); 0031 } 0032 0033 } // namespace CLHEP
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |