hps-java/src/main/resources/org/lcsim/hps/steering
diff -u -r1.1 -r1.2
--- DataQuality.lcsim 22 Feb 2013 01:32:22 -0000 1.1
+++ DataQuality.lcsim 7 Mar 2013 03:14:41 -0000 1.2
@@ -1,13 +1,13 @@
<!--
Quick summary of file contents, to be run after readout simulation or reconstruction.
@author Sho Uemura <[log in to unmask]>
- @version $Id: DataQuality.lcsim,v 1.1 2013/02/22 01:32:22 meeg Exp $
+ @version $Id: DataQuality.lcsim,v 1.2 2013/03/07 03:14:41 meeg Exp $
-->
<lcsim xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:noNamespaceSchemaLocation="http://www.lcsim.org/schemas/lcsim/1.0/lcsim.xsd">
<control>
- <printInputFiles>true</printInputFiles>
- <printDriversDetailed>true</printDriversDetailed>
+<!-- <printInputFiles>true</printInputFiles>-->
+<!-- <printDriversDetailed>true</printDriversDetailed>-->
</control>
<execute>
<driver name="CollectionSizeDriver"/>
hps-java/src/main/java/org/lcsim/hps/evio
diff -u -r1.25 -r1.26
--- TestRunEvioToLcio.java 25 Feb 2013 22:39:25 -0000 1.25
+++ TestRunEvioToLcio.java 7 Mar 2013 03:14:41 -0000 1.26
@@ -52,8 +52,9 @@
options.addOption(new Option("s", true, "Sleep duration between events (in ms)"));
options.addOption(new Option("n", true, "Stop after N events"));
options.addOption(new Option("w", false, "Wait after end of data"));
- options.addOption(new Option("r", false, "Show run control window"));
+ options.addOption(new Option("c", false, "Show run control window"));
options.addOption(new Option("D", true, "Pass a variable to the steering file"));
+ options.addOption(new Option("r", false, "Interpret -x argument as a steering resource instead of a file path"));
return options;
}
@@ -111,14 +112,18 @@
if ("".equals(detectorName)) {
throw new RuntimeException("You need to specify a valid detector name as input, use the -d option");
}
-
+
// LCSim XML file to execute inline.
if (cl.hasOption("x")) {
String lcsimXmlName = cl.getOptionValue("x");
- try {
- steeringStream = new FileInputStream(lcsimXmlName);
- } catch (FileNotFoundException e) {
- throw new RuntimeException(e);
+ if (cl.hasOption("r")) {
+ steeringStream = TestRunEvioToLcio.class.getResourceAsStream(lcsimXmlName);
+ } else {
+ try {
+ steeringStream = new FileInputStream(lcsimXmlName);
+ } catch (FileNotFoundException e) {
+ throw new RuntimeException(e);
+ }
}
}
@@ -138,7 +143,7 @@
RunControlDialog runControl = null;
- if (cl.hasOption("r")) {
+ if (cl.hasOption("c")) {
runControl = new RunControlDialog();
}
hps-java/src/main/resources/org/lcsim/hps/steering/recon
diff -u -r1.2 -r1.3
--- TestRunOfflineRecon.lcsim 6 Mar 2013 02:36:43 -0000 1.2
+++ TestRunOfflineRecon.lcsim 7 Mar 2013 03:14:41 -0000 1.3
@@ -1,8 +1,5 @@
<lcsim xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:noNamespaceSchemaLocation="http://www.lcsim.org/schemas/lcsim/1.0/lcsim.xsd">
- <control>
- <numberOfEvents>-1</numberOfEvents>
- </control>
<execute>
<driver name="EventMarkerDriver"/>
<driver name="CalibrationDriver"/>
@@ -49,7 +46,7 @@
</driver>
<driver name="LCIOWriter"
type="org.lcsim.util.loop.LCIODriver">
- <outputFilePath>${outputFile}</outputFilePath>
+ <outputFilePath>${outputFile}.slcio</outputFilePath>
</driver>
</drivers>
</lcsim>