Commit in lcsim/src/org/lcsim/contrib/uiowa on MAIN
ExampleRunAndWriteOutPFA.java-161.1 -> 1.2
MJC: Removed workaround that purged MCParticle lists -- no longer needed

lcsim/src/org/lcsim/contrib/uiowa
ExampleRunAndWriteOutPFA.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- ExampleRunAndWriteOutPFA.java	4 Sep 2007 17:27:56 -0000	1.1
+++ ExampleRunAndWriteOutPFA.java	9 Nov 2007 20:00:43 -0000	1.2
@@ -24,22 +24,6 @@
     {
         add(new org.lcsim.contrib.uiowa.NonTrivialPFA(false)); // Run the PFA, output is a List<ReconstructedParticle> named "PFAReconstructedParticles"
 	add(new org.lcsim.contrib.uiowa.MassPlots("PFAReconstructedParticles", "output-write.aida")); // Make some histograms and write them to a file
-	add(new LocalRemoveMCPColls()); // Remove nonstandard MCParticle lists (needed to ensure internally consistent output)
         add(new org.lcsim.util.loop.LCIODriver("test.slcio")); // Write out to an LCIO file
     }
-
-    /** Class by Ron, designed to remove nonstandard MCParticle lists. */
-    private class LocalRemoveMCPColls extends Driver {
-	public LocalRemoveMCPColls() {}
-	public void process(EventHeader event) {
-	    List<MCParticle> particles = event.get(MCParticle.class,event.MC_PARTICLES);
-	    List<List<MCParticle>> collections = event.get(MCParticle.class);
-	    for (List<MCParticle> collection : collections) {
-		if(collection != particles) {
-		    String name = event.getMetaData(collection).getName();
-		    event.remove(name);
-		}
-	    }
-	}
-    }
 }
CVSspam 0.2.8