lcio/src/java/hep/lcio/util
diff -u -r1.4 -r1.5
--- Printer.java 16 Nov 2006 00:43:47 -0000 1.4
+++ Printer.java 7 Dec 2006 20:27:38 -0000 1.5
@@ -773,10 +773,11 @@
class VertexPrinter extends LCTypePrinter{
void print(LCCollection coll, int nprint){
ps.println(" [ id ] | pri | alg. type | chi2 | prob. | position ( x,y,z) | [assRecP]");
-
+
for (int i=0; i<nprint; i++){
Vertex v = (Vertex)coll.getElementAt(i);
- ps.format(" [%08x] | %3s | %15s | %4.2e | %4.2e | (%5.3e,%5.3e,%5.3e) | %4.2e | %4.2e | %4.2e | (%5.3e,%5.3e,%5.3e) | [%08x] \n",
+
+ ps.format(" [%08x] | %3s | %15s | %4.2e | %4.2e | (%5.3e,%5.3e,%5.3e) | [%08x] \n",
new Object[] {
Integer.valueOf(v.hashCode()),
v.isPrimary() ? "yes" : "no",
@@ -786,7 +787,7 @@
Double.valueOf(v.getPosition()[0]),
Double.valueOf(v.getPosition()[1]),
Double.valueOf(v.getPosition()[2]),
- (v.getAssociatedParticle() != null ? Integer.valueOf(v.getAssociatedParticle().hashCode()):0)
+ (v.getAssociatedParticle() != null ? Integer.valueOf(v.getAssociatedParticle().hashCode()):new Integer(0))
}
);