Commit in hps-java/src/main/java/org/lcsim/hps/util on MAIN | |||
ConvertToStdhep.java | +9 | -2 | 1.10 -> 1.11 |
Added help option.
diff -u -r1.10 -r1.11 --- ConvertToStdhep.java 9 Apr 2013 22:03:53 -0000 1.10 +++ ConvertToStdhep.java 6 Sep 2013 19:10:01 -0000 1.11 @@ -7,7 +7,7 @@
/** * * @author Mathew Thomas Graham <[log in to unmask]>
- * $Id: ConvertToStdhep.java,v 1.10 2013/04/09 22:03:53 mgraham Exp $
+ * $Id: ConvertToStdhep.java,v 1.11 2013/09/06 19:10:01 phansson Exp $
*/ import java.io.FileReader; import java.io.IOException;
@@ -78,6 +78,7 @@
options.addOption(new Option("s", false, "Filter Events")); options.addOption(new Option("u", false, "Is muonic decay?")); options.addOption(new Option("t", false, "Is trident decay?"));
+ options.addOption(new Option("h", "print this message"));
return options; }
@@ -110,6 +111,12 @@
String sigxString = String.valueOf(sigx); String sigyString = String.valueOf(sigy); eptString = convertDecimal(eptString);
+ if(cl.hasOption("h")) { + HelpFormatter formatter = new HelpFormatter(); + formatter.printHelp("ConvertToStdhep", options); + return; + } +
if (cl.hasOption("t")) { trident = true; System.out.println("Is a trident decay");
@@ -193,7 +200,7 @@
String outDir = "/nfs/slac/g/hps/mgraham/DarkPhoton/SignalEvents/";
-
+
int nOutFile = nBegin; System.out.println(fDir + fileLabel); for (int i = nBegin; i < nBegin+nInFiles; i++) {
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