Skip to content

Commit

Permalink
* change the return type of the Poisson random generator to ULong64_t…
Browse files Browse the repository at this point in the history
… [rtj]
  • Loading branch information
Richard T. Jones committed Sep 25, 2024
1 parent cdb1967 commit 57df3e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/G4TRandom.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 57df3e6

Please sign in to comment.