Print

Print


Commit in lcsim/src/org/lcsim/contrib/uiowa on MAIN
ProximityClusterSharingAlgorithm.java+1-11.1 -> 1.2
MJC: (contrib) Add more info to assertion error

lcsim/src/org/lcsim/contrib/uiowa
ProximityClusterSharingAlgorithm.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- ProximityClusterSharingAlgorithm.java	2 Jul 2008 20:49:42 -0000	1.1
+++ ProximityClusterSharingAlgorithm.java	13 Oct 2008 06:32:32 -0000	1.2
@@ -41,7 +41,7 @@
 	for (CalorimeterHit hit1 : clus1.getCalorimeterHits()) {
 	    Hep3Vector hitPosition1 = new BasicHep3Vector(hit1.getPosition());
 	    for (CalorimeterHit hit2 : clus2.getCalorimeterHits()) {
-		if (hit1 == hit2) { throw new AssertionError("Hits overlap!"); }
+		if (hit1 == hit2) { throw new AssertionError("Hits overlap! ID="+hit1.getCellID()+" in "+hit1.getSubdetector().getName()); }
 		Hep3Vector hitPosition2 = new BasicHep3Vector(hit2.getPosition());
 		double distance = VecOp.sub(hitPosition1,hitPosition2).magnitude();
 		if (distance<minDist || found==false) {
CVSspam 0.2.8