00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
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 }