Author: [log in to unmask] Date: Wed Jan 7 18:28:24 2015 New Revision: 1903 Log: Remove hit sort. This is done from the Driver. Modified: java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ReconClusterer.java Modified: java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ReconClusterer.java ============================================================================= --- java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ReconClusterer.java (original) +++ java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ReconClusterer.java Wed Jan 7 18:28:24 2015 @@ -518,10 +518,9 @@ } // End cluster loop // System.out.println("Number of clusters: "+clusterList.size()); } // End event output loop. - ClusterUtilities.sortReconClusterHits(clusterList); return clusterList; } - + private static class EnergyComparator implements Comparator<CalorimeterHit> { /** * Compares the first hit with respect to the second. This method will compare hits first by @@ -544,9 +543,11 @@ // Perform the energy comparison. The higher energy hit // will be ordered first. - if (e[0] < e[1]) { + if (e[0] < e[1]) { + // FIXME: This should return -1 instead. return 1; } else if (e[0] > e[1]) { + // FIXME: This should return 1. return -1; }