Print

Print


Commit in lcsim/src/org/lcsim/recon/cluster/structural on MAIN
SimpleFragmentIdentifier.java+2-21.1 -> 1.2
Bugfix for the rare case when a cluster of charged energy has multiple tracks with total charge zero

lcsim/src/org/lcsim/recon/cluster/structural
SimpleFragmentIdentifier.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- SimpleFragmentIdentifier.java	2 Mar 2006 20:51:54 -0000	1.1
+++ SimpleFragmentIdentifier.java	2 Nov 2006 23:00:41 -0000	1.2
@@ -30,7 +30,7 @@
  * the cluster being tested, it is considered to have a track and therefore
  * to be a primary. 
  *
- * @version $Id: SimpleFragmentIdentifier.java,v 1.1 2006/03/02 20:51:54 mcharles Exp $
+ * @version $Id: SimpleFragmentIdentifier.java,v 1.2 2006/11/02 23:00:41 mcharles Exp $
  */
 
 public class SimpleFragmentIdentifier implements FragmentIdentifier
@@ -64,7 +64,7 @@
         // Is there a track associated with this cluster?
         boolean hasTrack = false;
 	for (ReconstructedParticle part : particleList) {
-	    if ( Math.abs(part.getCharge()) > 0.5 ) {
+	    if ( Math.abs(part.getCharge()) > 0.5 || (part.getTracks()!= null && part.getTracks().size()>0)) {
 		List<Cluster> clustersAssociatedWithTrack = recursivelyFindSubClusters(part);
 		if (clustersAssociatedWithTrack.contains(clus)) {
 		    hasTrack = true;
CVSspam 0.2.8