Print

Print


Commit in lcsim/src/org/lcsim/contrib/SteveMagill on MAIN
TSCDriver.java+3-11.2 -> 1.3


lcsim/src/org/lcsim/contrib/SteveMagill
TSCDriver.java 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- TSCDriver.java	29 May 2008 22:36:23 -0000	1.2
+++ TSCDriver.java	6 Jun 2008 18:41:50 -0000	1.3
@@ -214,7 +214,9 @@
 //            tswim.setTrack(trp3, tror3, trq);  // deprecated, uses spacepoint for orogin
             tswim.setTrack(trp3, trorsp, trq);
             double tobrad = tswim.getDistanceToRadius(BRadii[ClIL]);
-            double toecz = tswim.getDistanceToZ(ECZs[ClIL]);
+            double toecz = 0.;
+            if (trp[2]>0) toecz = tswim.getDistanceToZ(ECZs[ClIL]);
+            if (trp[2]<0) toecz = tswim.getDistanceToZ(-ECZs[ClIL]);
             double trtheta = 0;
             double trphi = 0;
             double trilth = 0;  // this is theta at IL
CVSspam 0.2.8