java/trunk/integration-tests/src/test/java/org/hps
--- java/trunk/integration-tests/src/test/java/org/hps/TestRunReadoutToEvioTest.java (rev 0)
+++ java/trunk/integration-tests/src/test/java/org/hps/TestRunReadoutToEvioTest.java 2014-09-26 01:00:53 UTC (rev 1094)
@@ -0,0 +1,36 @@
+package org.hps;
+
+import java.io.File;
+import java.net.URL;
+
+import junit.framework.TestCase;
+
+import org.lcsim.job.JobControlManager;
+import org.lcsim.util.cache.FileCache;
+import org.lcsim.util.test.TestUtil.TestOutputFile;
+
+/**
+ * <p>
+ * This test will run the readout simulation on pre-filtered MC events
+ * in a Test Run detector and write the output to EVIO.
+ *
+ * @author Jeremy McCormick <[log in to unmask]>
+ */
+public class TestRunReadoutToEvioTest extends TestCase {
+
+ public void testTestRunReadoutToEvio() throws Exception {
+
+ new TestOutputFile(this.getClass().getSimpleName()).mkdir();
+
+ FileCache cache = new FileCache();
+ File inputFile = cache.getCachedFile(new URL("http://www.lcsim.org/test/hps-java/TestRunReadoutToEvioTest.slcio"));
+
+ JobControlManager job = new JobControlManager();
+ job.addInputFile(inputFile);
+ File outputFile = new TestOutputFile(this.getClass().getSimpleName() + File.separator + this.getClass().getSimpleName());
+ job.addVariableDefinition("outputFile", outputFile.getPath());
+ job.addVariableDefinition("runNumber", "1351");
+ job.setup("/org/hps/steering/readout/TestRunReadoutToEvio.lcsim");
+ job.run();
+ }
+}