53 const G4int border = 16;
58 G4double poissonValue = std::exp(-mean);
61 while(poissonSum <= position) {
63 poissonValue *= mean/number;
64 poissonSum += poissonValue;
73 value = mean + t*std::sqrt(mean) + 0.5;
74 if(value <= 0) {
return 0;}
75 if(value >= limit) {
return G4long(limit);}