Commit in hps-java/src/main/java/org/lcsim/hps/evio on MAIN | |||
TestRunEvioToLcio.java | +8 | -1 | 1.23 -> 1.24 |
Removed default detector and force a detector name as input to avoid using wrong detector.
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
Use REPLY-ALL to reply to list
To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1