Print

Print


Commit in lcsim/src/org/lcsim/fit/helicaltrack on MAIN
HelicalTrackCross.java+1-11.4 -> 1.5
HitUtils.java+4-21.2 -> 1.3
+5-3
2 modified files
It seems that Math.copySign is not found for some reason - simple work-around implemented.

lcsim/src/org/lcsim/fit/helicaltrack
HelicalTrackCross.java 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- HelicalTrackCross.java	29 Jul 2008 18:08:05 -0000	1.4
+++ HelicalTrackCross.java	30 Jul 2008 00:11:50 -0000	1.5
@@ -71,7 +71,7 @@
     }
     
     /**
-     * Return a list of HelicalTrackStrips that contain the two strips that
+     * Return a list of HelicalTrackStrips that contains the two strips that
      * form the cross.
      * @return list of the two strips that form this cross
      */

lcsim/src/org/lcsim/fit/helicaltrack
HitUtils.java 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- HitUtils.java	29 Jul 2008 23:43:51 -0000	1.2
+++ HitUtils.java	30 Jul 2008 00:11:50 -0000	1.3
@@ -309,8 +309,10 @@
     
     private static double NonZeroDotProduct(Hep3Vector v1, Hep3Vector v2) {
         double cth = VecOp.dot(v1, v2);
-        if (Math.abs(cth) < _eps) cth = Math.copySign(_eps, cth);
-        if (cth == 0.) cth = _eps;
+        if (Math.abs(cth) < _eps) {
+          if (cth < 0.) cth = -_eps;
+          else cth = _eps;
+        }
         return cth;
     }
     
CVSspam 0.2.8