GeomConverter/src/org/lcsim/geometry/segmentation
diff -u -r1.11 -r1.12
--- ProjectiveZPlane.java 13 Jul 2005 18:21:54 -0000 1.11
+++ ProjectiveZPlane.java 13 Jul 2005 18:34:19 -0000 1.12
@@ -43,10 +43,6 @@
public double getPhi()
{
double phi = (Math.PI*2) * ((getValue(phiIndex)+0.5)/phiBins);
- if ( phi < PI )
- {
- phi += PI;
- }
return phi;
//double (getValue(phiIndex) + 0.5) * phiDim;
}
@@ -74,7 +70,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. */
- return Math.signum(getTheta()-PI/2) * getRadius(getLayer() );
+ return -Math.signum(getTheta()-PI/2) * getRadius(getLayer() );
}
private double getSphericalRadius()