From 0f9e52a3721f0e0fb9a08896a6c14becf3e3cd04 Mon Sep 17 00:00:00 2001 From: hristov Date: Wed, 17 Jan 2001 10:54:31 +0000 Subject: [PATCH] Better protection against FPE --- EVGEN/AliGenPythia.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/EVGEN/AliGenPythia.cxx b/EVGEN/AliGenPythia.cxx index 8ab6626d0f4..d20692d4890 100644 --- a/EVGEN/AliGenPythia.cxx +++ b/EVGEN/AliGenPythia.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.30 2000/12/18 08:55:35 morsch +Make AliPythia dependent generartors work with new scheme of random number generation + Revision 1.29 2000/12/04 11:22:03 morsch Init of sRandom as in 1.15 @@ -441,7 +444,7 @@ Bool_t AliGenPythia::KinematicSelection(TParticle *particle) // // rapidity cut - if (e==pz) { + if ( (e-pz)<=0 || (e+pz)<=0 ) { return kFALSE; } else { -- 2.39.3