Print

Print


Commit in lcsim/src/org/lcsim/util/swim on MAIN
HelixSwim.java+22-11.8 -> 1.9
added method stub for swimToPoca.
Added definition (to be) used in function. Will be modified to Tony's choice of parameters, once he has it finalized.

lcsim/src/org/lcsim/util/swim
HelixSwim.java 1.8 -> 1.9
diff -u -r1.8 -r1.9
--- HelixSwim.java	15 Aug 2005 23:10:25 -0000	1.8
+++ HelixSwim.java	18 Aug 2005 06:22:29 -0000	1.9
@@ -16,7 +16,7 @@
  * This implementation works for charged and neutral particles alike.
  * 
  * @author W.Walkowiak
- * @version $Id: HelixSwim.java,v 1.8 2005/08/15 23:10:25 jstrube Exp $
+ * @version $Id: HelixSwim.java,v 1.9 2005/08/18 06:22:29 jstrube Exp $
  */
 public class HelixSwim {
     /**
@@ -230,6 +230,27 @@
     }
 
     /**
+     * Swims the helix along its trajectory to the
+     * point of closest approach to the given SpacePoint.
+     * The equation to solve for s is an O(2) Taylor-expansion.
+     * The parameterization is as follows:<br />
+     * p<sub>x</sub> = p<sub>0x</sub> cos(&rho s) - p<sub>0y</sub> sin(&rho s)<br />
+     * p<sub>y</sub> = p<sub>0y</sub> cos(&rho s) + p<sub>0x</sub> sin(&rho s)<br />
+     * p<sub>z</sub> = p<sub>0z</sub><br />
+     * x = x<sub>0</sub> + p<sub>0x</sub>/a sin(&rho s) - p<sub>0y</sub>/a (1-cos(&rho s))<br />
+     * y = y<sub>0</sub> + p<sub>0y</sub>/a sin(&rho s) + p<sub>0x</sub>/a (1-cos(&rho s))<br />
+     * z = z<sub>0</sub> + p<sub>z</sub>/p s<br />
+     * a = -0.299792458 B q, where [B] = T and [q] = e;<br />
+     * &rh0 = a / p;<br />
+     * @param point Point in Space to swim to. 
+     * @return the length Parameter s
+     */
+    public double swimToPoca(SpacePoint point) {
+    	
+    	return 0;
+    }
+    
+    /**
      * Set cylindrical geometry parallel to z-axis.
      * 
      * @param rhoMin minimum radius
CVSspam 0.2.8