33 #define RandPoisson_h 1
57 static long shoot( HepDouble m=1.0 );
59 static void shootArray (
const HepInt size,
long* vect, HepDouble m=1.0 );
60 #ifndef ST_NO_TEMPLATE_DEF_ARGS
61 static void shootArray ( vector<long>&, HepDouble m=1.0 );
63 static void shootArray ( vector<
long, allocator<long> >&, HepDouble m=1.0 );
71 const HepInt size,
long* vect, HepDouble m=1.0 );
72 #ifndef ST_NO_TEMPLATE_DEF_ARGS
74 vector<long>&, HepDouble m=1.0 );
77 vector<
long, allocator<long> >&, HepDouble m=1.0 );
82 long fire( HepDouble m=1.0 );
84 void fireArray (
const HepInt size,
long* vect, HepDouble m=1.0 );
85 #ifndef ST_NO_TEMPLATE_DEF_ARGS
86 void fireArray ( vector<long>&, HepDouble m=1.0 );
88 void fireArray ( vector<
long,allocator<long> >&, HepDouble m=1.0 );
90 HepDouble operator()();
95 static HepDouble getOldMean() {
return HepRandom::getTheGenerator()->getOldMean();}
97 static HepDouble getMaxMean() {
return HepRandom::getTheGenerator()->getMaxMean();}
99 static void setOldMean( HepDouble val ){HepRandom::getTheGenerator()->setOldMean(val);}
101 static HepDouble* getPStatus() {
return HepRandom::getTheGenerator()->getPStatus();}
103 static void setPStatus(HepDouble sq, HepDouble alxm, HepDouble g) {
104 HepRandom::getTheGenerator()->setPStatus(sq, alxm, g);
110 HepBoolean deleteEngine;
111 HepDouble status[3], oldm;
112 const HepDouble meanMax;
120 : localEngine(&anEngine), deleteEngine(false),
121 oldm(-1.0), meanMax(2.0E9) {
122 status[0] = status[1] = status[2] = 0.;
126 : localEngine(anEngine), deleteEngine(true),
127 oldm(-1.0), meanMax(2.0E9) {
128 status[0] = status[1] = status[2] = 0.;