RandPoisson.icc

Go to the documentation of this file.
00001 // $Id:$
00002 // -*- C++ -*-
00003 // 
00004 // -----------------------------------------------------------------------
00005 //                             HEP Random
00006 //                        --- RandPoisson ---
00007 //                 inlined functions implementation file
00008 // -----------------------------------------------------------------------
00009 // This file is part of Geant4 (simulation toolkit for HEP).
00010  
00011 // =======================================================================
00012 // Gabriele Cosmo - Created: 19th August 1998
00013 // =======================================================================
00014 
00015 namespace CLHEP {
00016 
00017 inline RandPoisson::RandPoisson(HepRandomEngine & anEngine, double a )
00018 : HepRandom(), meanMax(2.0E9), defaultMean(a),
00019   localEngine(&anEngine, do_nothing_deleter()), oldm(-1.0) {
00020   status[0] = status[1] = status[2] = 0.;
00021 }
00022 
00023 inline RandPoisson::RandPoisson(HepRandomEngine * anEngine, double a )
00024 : HepRandom(), meanMax(2.0E9), defaultMean(a), 
00025   localEngine(anEngine), oldm(-1.0) {
00026   status[0] = status[1] = status[2] = 0.;
00027 }
00028 
00029 inline HepRandomEngine * RandPoisson::getLocalEngine() {
00030   return localEngine.get();
00031 }
00032 
00033 }  // namespace CLHEP

Generated on Mon May 27 17:50:33 2013 for Geant4 by  doxygen 1.4.7