From 57df3e62840b1a0c4c92d0e7dd5d4233b3ad0b6b Mon Sep 17 00:00:00 2001 From: "Richard T. Jones" Date: Tue, 24 Sep 2024 20:32:01 -0400 Subject: [PATCH] * change the return type of the Poisson random generator to ULong64_t [rtj] --- src/G4TRandom.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/G4TRandom.hh b/src/G4TRandom.hh index 3ee1a45..90b2cfa 100644 --- a/src/G4TRandom.hh +++ b/src/G4TRandom.hh @@ -27,7 +27,7 @@ class G4TRandom : public TRandom { virtual UInt_t GetSeed() const; virtual UInt_t Integer(UInt_t imax); virtual Double_t Landau(Double_t mean=0, Double_t sigma=1); - virtual Int_t Poisson(Double_t mean); + virtual ULong64_t Poisson(Double_t mean); virtual Double_t PoissonD(Double_t mean); virtual void Rannor(Float_t &a, Float_t &b); virtual void Rannor(Double_t &a, Double_t &b); @@ -79,7 +79,7 @@ inline Double_t G4TRandom::Landau(Double_t mean, Double_t sigma) { return CLHEP::RandLandau::shoot() * sigma + mean; } -inline Int_t G4TRandom::Poisson(Double_t mean) { +inline ULong64_t G4TRandom::Poisson(Double_t mean) { return CLHEP::RandPoisson::shoot(mean); }