lcsim/src/org/lcsim/recon/cluster/structural
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;