Commit in lcsim/src/org/lcsim/contrib/uiowa on MAIN
RemoveHitsFromClusters.java-71.2 -> 1.3
MJC: (contrib) Take out some debug

lcsim/src/org/lcsim/contrib/uiowa
RemoveHitsFromClusters.java 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- RemoveHitsFromClusters.java	15 Oct 2008 22:10:25 -0000	1.2
+++ RemoveHitsFromClusters.java	21 Oct 2008 23:02:24 -0000	1.3
@@ -27,11 +27,9 @@
 	for (Cluster clus : inputMap.values()) {
 	    hitsToRemove.addAll(clus.getCalorimeterHits());
 	}
-	System.out.println("DEBUG: RemoveHitsFromClusters: Flagged "+hitsToRemove.size()+" MIP/muon hits that will be removed if found in a photon cluster");
 	// Remove those:
 	List<Cluster> inputClusterList = event.get(Cluster.class, m_inputClusterListName);
 	List<Cluster> outputClusterList = new Vector<Cluster>();
-	System.out.println("DEBUG: RemoveHitsFromClusters: Will scan "+inputClusterList.size()+" photon clusters...");
 	for (Cluster inputClus : inputClusterList) {
 	    // Photons have a core & halo
 	    Cluster oldCore = inputClus.getClusters().get(0);
@@ -41,7 +39,6 @@
 	    oldHaloHits.addAll(inputClus.getCalorimeterHits());
 	    oldHaloHits.removeAll(oldCoreHits);
 	    if (oldCoreHits.size() + oldHaloHits.size() != inputClus.getCalorimeterHits().size()) { throw new AssertionError("Book-keeping error!"); }
-	    System.out.println("DEBUG: RemoveHitsFromClusters: Checking a cluster with "+inputClus.getCalorimeterHits().size()+" hits ("+oldCoreHits.size()+" core + "+oldHaloHits.size()+" halo)");
 	    // Remove hits as needed:
 	    Set<CalorimeterHit> newCoreHits = new HashSet<CalorimeterHit>();
 	    Set<CalorimeterHit> newHaloHits = new HashSet<CalorimeterHit>();
@@ -49,7 +46,6 @@
 	    newHaloHits.addAll(oldHaloHits);
 	    newCoreHits.removeAll(hitsToRemove);
 	    newHaloHits.removeAll(hitsToRemove);
-	    System.out.println("DEBUG: RemoveHitsFromClusters: After purging MIP hits, "+newCoreHits.size()+" core + "+newHaloHits.size()+" halo hits remain.");
 	    // Build output cluster -- must have at least one hit left in core.
 	    if (newCoreHits.size() > 0) {
 		// Set up core & halo hits for new cluster:
@@ -67,9 +63,6 @@
 		if (outputClus.getCalorimeterHits().size() > inputClus.getCalorimeterHits().size() ) { throw new AssertionError("Book-keeping error!"); }
 		// All good -- keep it
 		outputClusterList.add(outputClus);
-		System.out.println("DEBUG: RemoveHitsFromClusters: Wrote out updated cluster with "+outputClus.getCalorimeterHits().size()+" hits.");
-	    } else {
-		System.out.println("DEBUG: RemoveHitsFromClusters: Skipped writing an output cluster since there were "+newCoreHits.size()+" core hits left.");
 	    }
 	}
 	// Write out
CVSspam 0.2.8