lcsim/src/org/lcsim/fit/zsegment
diff -u -r1.1 -r1.2
--- ZSegmentFit.java 1 Aug 2007 20:54:42 -0000 1.1
+++ ZSegmentFit.java 10 Aug 2007 15:48:06 -0000 1.2
@@ -68,11 +68,11 @@
*/
public String toString() {
String nl = System.getProperty("line.separator");
- StringBuffer output = new StringBuffer("ZSegmentFit with centroid at z0 = "+_centroid[0]+", tan(lambda) = "+_centroid[1]+nl);
- output.append(" and covariance matrix"+_covariance.e(0,0)+", "+_covariance.e(1,0)+", "+_covariance.e(1,1)+nl);
- output.append(" z0 - tan(lambda) allowed region is a "+_polygon.size()+" sided polygon with vertices:"+nl);
+ StringBuffer output = new StringBuffer("ZSegmentFit: Centroid (z0, tan(lambda)) = ("+_centroid[0]+", "+_centroid[1]+")"+nl);
+ output.append(" Covariance matrix ("+_covariance.e(0,0)+", "+_covariance.e(1,0)+", "+_covariance.e(1,1)+")"+nl);
+ output.append(" Allowed region is a "+_polygon.size()+" sided polygon with vertices:"+nl);
for (double[] vert : _polygon) {
- output.append(" z0= "+vert[0]+" tan(lambda)= "+vert[1]+nl);
+ output.append(" ("+vert[0]+", "+vert[1]+")"+nl);
}
return new String(output);
}