GeomConverter/src/org/lcsim/geometry/segmentation
diff -u -r1.10 -r1.11
--- ProjectiveZPlane.java 13 Jul 2005 07:10:43 -0000 1.10
+++ ProjectiveZPlane.java 13 Jul 2005 18:21:54 -0000 1.11
@@ -74,9 +74,7 @@
//double cosTheta = Math.cos(getTheta());
//return getRadius(getLayer())*cosTheta/Math.sqrt(1-cosTheta*cosTheta);
/* getRadius() is misnamed here. Actually returning distance to layer center along Z. */
- double zdet = getRadius(getLayer() );
-
- return zdet;
+ return Math.signum(getTheta()-PI/2) * getRadius(getLayer() );
}
private double getSphericalRadius()