lcsim/src/org/lcsim/recon/cluster/cheat
diff -u -r1.6 -r1.7
--- CheatClusterDriver.java 5 Mar 2007 18:20:00 -0000 1.6
+++ CheatClusterDriver.java 26 Apr 2007 21:22:05 -0000 1.7
@@ -56,22 +56,16 @@
Map<MCParticle,CheatCluster> result = _clusterer.findClusters(collection);
String name = event.getMetaData(collection).getName();
int flag = (1<<LCIOConstants.CLBIT_HITS);
- if (result.size() > 0)
- {
- List<CheatCluster> ccl = new ArrayList(result.values());
- event.put(name+"CheatClusters", ccl, CheatCluster.class, flag);
- clusters.add(ccl);
- }
+ List<CheatCluster> ccl = new ArrayList(result.values());
+ event.put(name+"CheatClusters", ccl, CheatCluster.class, flag);
+ clusters.add(ccl);
}
// Then look for refined clusters combining hits from all collections
Map<MCParticle, CheatCluster> refined = _clusterer.findRefinedClusters(clusters);
- if (refined.size() > 0)
- {
- int flag = 1<<LCIOConstants.CLBIT_HITS;
- event.put(outputName, new ArrayList(refined.values()), CheatCluster.class, flag );
- }
+ int flag = 1<<LCIOConstants.CLBIT_HITS;
+ event.put(outputName, new ArrayList(refined.values()), CheatCluster.class, flag );
}
public String toString()