Print

Print


Commit in lcsim/src/org/lcsim/fit/helicaltrack on MAIN
HelixUtils.java+5-51.10 -> 1.11
Typos fixed

lcsim/src/org/lcsim/fit/helicaltrack
HelixUtils.java 1.10 -> 1.11
diff -u -r1.10 -r1.11
--- HelixUtils.java	12 May 2010 21:19:59 -0000	1.10
+++ HelixUtils.java	14 Nov 2010 00:33:25 -0000	1.11
@@ -33,7 +33,7 @@
 public class HelixUtils {
     private static double _minslope = 1.e-6;
 	private static double _maxpath  = 2400; // todo, add a more "dynamic" maxpath
-	private static double _epsilon  = 0.01; // value below witch a z vector Or an angle is considered as null
+	private static double _epsilon  = 0.01; // value below which a z vector Or an angle is considered as null
         private static double _tol = 1.e-4; // Maximum aspect ratio of hit covariance terms for hit to measure x-y coord
     
     /**
@@ -320,14 +320,14 @@
 	 * @param vertices
 	 * @return true OR false wether the helix intercept or not the polygone
 	 */
-	public static boolean isInterceptingZpolygone(HelicalTrackFit helix,double z,List<Hep3Vector> vertices){
+	public static boolean isInterceptingZpolygon(HelicalTrackFit helix,double z,List<Hep3Vector> vertices){
 	//todo: check if all vertices are on same z
 		double epsilon = Math.PI/360.;
 		double s = PathToZPlane(helix,z);
 		if(s<0){return false;}
 		if(s>_maxpath){return false;}
 		Hep3Vector point = PointOnHelix(helix,s);
-		double angle = insidePolygone(point,vertices);
+		double angle = insidePolygon(point,vertices);
 		if(Math.abs(angle-2*Math.PI)<epsilon)
 			return true;
 		return false;
@@ -379,7 +379,7 @@
 		if(s<0)    {return false;}
 		if(s>_maxpath){return false;}
 		Hep3Vector point = PointOnHelix(helix, s);
-		if(Math.abs(insidePolygone(point, nodes)-2*Math.PI)<_epsilon)
+		if(Math.abs(insidePolygon(point, nodes)-2*Math.PI)<_epsilon)
 			return true;
 		return false;
 	}
@@ -429,7 +429,7 @@
 	 * @param p List of edges of the polygone
 	 * @return 2PI if inside, 0 if outside,intermediate values if not on the plane
 	 */
-	private static double insidePolygone(Hep3Vector q,List<Hep3Vector> p)
+	private static double insidePolygon(Hep3Vector q,List<Hep3Vector> p)
 	{
 	   int i;
 	   double epsilon = _epsilon;
CVSspam 0.2.8