Commit in java/trunk/integration-tests/src/test/java/org/hps on MAIN
ReadoutToLcioTest.java+41added 1095
Add ReadoutToLcioTest integration test.

java/trunk/integration-tests/src/test/java/org/hps
ReadoutToLcioTest.java added at 1095
--- java/trunk/integration-tests/src/test/java/org/hps/ReadoutToLcioTest.java	                        (rev 0)
+++ java/trunk/integration-tests/src/test/java/org/hps/ReadoutToLcioTest.java	2014-09-26 01:35:56 UTC (rev 1095)
@@ -0,0 +1,41 @@
+package org.hps;
+
+import java.io.File;
+import java.net.URL;
+
+import org.lcsim.job.JobControlManager;
+import org.lcsim.util.cache.FileCache;
+import org.lcsim.util.test.TestUtil.TestOutputFile;
+
+import junit.framework.TestCase;
+
+/**
+ * <p>
+ * This test runs the readout simulation on pre-filtered MC events and writes LCIO.
+ * <p>
+ * The original name of the input MC file was:
+ * <p>
+ * ap2.2gev100mev_SLIC-v04-00-00_Geant4-v10-00-02_QGSP_BERT_HPS-Proposal2014-v8-2pt2.slcio
+ * <p>
+ * The <code>FilterMCBunches</code> utility was run using 500 empty events per input event.
+ * 
+ * @author Jeremy McCormick <[log in to unmask]>
+ */
+public class ReadoutToLcioTest extends TestCase {
+        
+    public void testReadoutToLcio() 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/ReadoutToLcioTest.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.setup("/org/hps/steering/readout/HPS2014ReadoutToLcio.lcsim");
+        job.run();
+    }
+
+}
SVNspam 0.1