lcsim/src/org/lcsim/contrib/Cassell/recon/Cheat
diff -N OutputMCFastRecon.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ OutputMCFastRecon.java 2 Sep 2008 14:49:10 -0000 1.1
@@ -0,0 +1,60 @@
+/*
+ * OutputMCFastRecon.java
+ *
+ * Created on Sep 1, 2008, 11:20 AM
+ *
+ * To change this template, choose Tools | Options and locate the template under
+ * the Source Creation and Management node. Right-click the template and choose
+ * Open. You can then make changes to the template in the Source Editor.
+ */
+
+package org.lcsim.contrib.Cassell.recon.Cheat;
+import org.lcsim.mc.fast.MCFast;
+import org.lcsim.util.Driver;
+import java.io.File;
+import org.lcsim.util.loop.LCIODriver;
+
+/**
+ *
+ * @author cassell
+ */
+public class OutputMCFastRecon extends Driver
+{
+ String[] outcolls = {"MCParticle","MCFastReconstructedParticles",
+ "Clusters","Tracks","TracksToMCP","ClustersToMCP"};
+ /** Creates a new instance of OutputPPRRecon */
+ public OutputMCFastRecon(File output)
+ {
+//
+// Do the PPR reconstruction
+//
+ add(new MCFast());
+//
+// Write the events to disk
+//
+ LCIODriver driver = new LCIODriver(output);
+ for(int i=0;i<outcolls.length;i++)
+ {
+ driver.getWriter().addWriteOnly(outcolls[i]);
+ }
+ add(driver);
+ }
+ public OutputMCFastRecon(String path, String name)
+ {
+//
+// Do the PPR reconstruction
+//
+ add(new MCFast());
+//
+// Write the events to disk
+//
+ File output = new File(path,name);
+ LCIODriver driver = new LCIODriver(output);
+ for(int i=0;i<outcolls.length;i++)
+ {
+ driver.getWriter().addWriteOnly(outcolls[i]);
+ }
+ add(driver);
+ }
+
+}