hps-java/src/main/java/org/lcsim/hps/evio
diff -u -r1.23 -r1.24
--- TestRunEvioToLcio.java 21 Sep 2012 23:22:18 -0000 1.23
+++ TestRunEvioToLcio.java 6 Nov 2012 03:56:55 -0000 1.24
@@ -35,7 +35,7 @@
*/
public class TestRunEvioToLcio {
- private static final String defaultDetectorName = "HPS-TestRun-v2";
+ private static final String defaultDetectorName = "";
private static final String defaultSteeringFile = "/org/lcsim/hps/steering/DummyMonitoring.lcsim";
/**
@@ -108,6 +108,10 @@
detectorName = cl.getOptionValue("d");
}
+ 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");
@@ -277,14 +281,17 @@
if (!cl.hasOption("w")) {
System.out.println("Exiting");
jobManager.finish();
+ System.out.println("jobManager finished");
}
if (writer != null) {
+ System.out.println("close writer");
try {
writer.close();
} catch (IOException e) {
throw new RuntimeException(e);
}
+ System.out.println("closed writer");
}
}
}
\ No newline at end of file