lcsim/src/org/lcsim/fit/helicaltrack
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
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;
}