lcsim/src/org/lcsim/recon/cluster/util
diff -u -r1.12 -r1.13
--- BasicCluster.java 20 Feb 2006 22:24:56 -0000 1.12
+++ BasicCluster.java 21 Jun 2006 17:18:55 -0000 1.13
@@ -339,6 +339,11 @@
*/
public String toString()
{
- return "BasicCluster with "+hits.size()+ " calorimeter hits";
+ double[] pos = this.getPosition();
+ double rho = Math.sqrt(pos[0]*pos[0]+pos[1]*pos[1]);
+ double theta = Math.atan2( rho, pos[2]);
+ double phi = Math.atan2( pos[1], pos[0] );
+ if(phi<0) phi += 2*Math.PI;
+ return "BasicCluster w/ "+this.getSize()+" hits at theta="+theta+", phi="+phi;
}
}