Commit in lcsim/src/org/lcsim/mc/fast/tracking on MAIN | |||
MCFastTracking.java | +1 | -1 | 1.8 -> 1.9 |
GL: minor fix, protection picks up more cases
diff -u -r1.8 -r1.9 --- MCFastTracking.java 24 Sep 2005 01:46:38 -0000 1.8 +++ MCFastTracking.java 15 Mar 2006 11:36:02 -0000 1.9 @@ -97,7 +97,7 @@
continue; } double pCharge = p.getCharge();
- if (pCharge == 0 || pCharge == Double.NaN || pCharge == Double.NEGATIVE_INFINITY || pCharge == Double.POSITIVE_INFINITY)
+ if (pCharge == 0 || Double.isNaN(pCharge) || pCharge == Double.NEGATIVE_INFINITY || pCharge == Double.POSITIVE_INFINITY)
{ continue; }