]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Better protection against FPE
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Jan 2001 10:54:31 +0000 (10:54 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Jan 2001 10:54:31 +0000 (10:54 +0000)
EVGEN/AliGenPythia.cxx

index 8ab6626d0f418926ea99c72d4a6ec8c2b5d72840..d20692d4890b5c5e45cb2b3dd31e40ea09052b60 100644 (file)
@@ -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 {