lcsim/src/org/lcsim/contrib/uiowa/structural
diff -u -r1.1 -r1.2
--- CheatFragmentMerger.java 16 Dec 2005 21:11:39 -0000 1.1
+++ CheatFragmentMerger.java 6 Jan 2006 01:01:38 -0000 1.2
@@ -66,7 +66,14 @@
List<Cluster> tmpAssocClus2 = assocE2.associateMCParticleToClusters(alpha);
if (tmpAssocClus2.size()>0) {
Cluster match = tmpAssocClus2.iterator().next();
- if (match == fragment) { throw new AssertionError("BUG"); }
+ if (match == fragment) {
+ // In this case, the "fragment" is actually the primary cluster for this particle,
+ // i.e. we misidentified it as a fragment before. At this point, we know that there
+ // are no non-fragment clusters from this MC particle. Cheating doesn't make a lot
+ // of sense here...
+
+ throw new AssertionError("BUG");
+ }
if (match==null) {
throw new AssertionError("BUG");
} else {