Commit in lcsim/src/org/lcsim/mc/fast/tracking on MAIN
MCFastTracking.java+6-11.18 -> 1.19
 check for NAN momenta  

lcsim/src/org/lcsim/mc/fast/tracking
MCFastTracking.java 1.18 -> 1.19
diff -u -r1.18 -r1.19
--- MCFastTracking.java	8 Oct 2008 18:56:54 -0000	1.18
+++ MCFastTracking.java	29 May 2009 22:49:55 -0000	1.19
@@ -1,7 +1,7 @@
 package org.lcsim.mc.fast.tracking;
 
 /**
- *  $Id: MCFastTracking.java,v 1.18 2008/10/08 18:56:54 cassell Exp $
+ *  $Id: MCFastTracking.java,v 1.19 2009/05/29 22:49:55 timb Exp $
  */
 import hep.physics.particle.Particle;
 import java.io.IOException;
@@ -134,6 +134,11 @@
          }
          
          double[] momentum = p.getMomentum().v();
+         if (Double.isNaN(momentum[0]) || Double.isNaN(momentum[1]) || Double.isNaN(momentum[2]) )
+         {
+            continue;
+         }
+         
          double pt2 = (momentum[0] * momentum[0]) + (momentum[1] * momentum[1]);
          double pt = Math.sqrt(pt2);
          double ptot = Math.sqrt(pt2 + (momentum[2] * momentum[2]));
CVSspam 0.2.8