slic/src
diff -u -r1.32 -r1.33
--- SlicApplication.cc 27 Jun 2005 19:21:10 -0000 1.32
+++ SlicApplication.cc 3 Aug 2005 23:18:26 -0000 1.33
@@ -1,4 +1,4 @@
-// $Header: /cvs/lcd/slic/src/SlicApplication.cc,v 1.32 2005/06/27 19:21:10 jeremy Exp $
+// $Header: /cvs/lcd/slic/src/SlicApplication.cc,v 1.33 2005/08/03 23:18:26 jeremy Exp $
#include "SlicApplication.hh"
// SLIC
@@ -130,14 +130,6 @@
0);
cmd_mgr->addCmd(cmd_usage, "/slic/usage" );
- // print SLIC version info
- CmdLineOpt* cmd_version = new CmdLineOpt("v",
- "version",
- "Print SLIC version.",
- 0,
- 0);
- cmd_mgr->addCmd(cmd_version, "/slic/version");
-
// interactive mode
CmdLineOpt* cmd_iact = new CmdLineOpt("n",
"interactive-mode",
@@ -146,6 +138,14 @@
0);
cmd_mgr->addCmd(cmd_iact, "/control/interactive");
+ // print SLIC version info
+ CmdLineOpt* cmd_version = new CmdLineOpt("v",
+ "version",
+ "Print SLIC version.",
+ 0,
+ 0);
+ cmd_mgr->addCmd(cmd_version, "/slic/version");
+
// exec macro
CmdLineOpt* cmd_exec = new CmdLineOpt("m",
"macro",
@@ -219,10 +219,18 @@
0);
cmd_mgr->addCmd(cmd_autoname, "/lcio/autoname" );
+ // overwrite an LCIO output file if it exists already
+ CmdLineOpt* delLcio = new CmdLineOpt("x",
+ "lcio-delete",
+ "Delete an existing LCIO file.",
+ 0,
+ 0);
+ cmd_mgr->addCmd(delLcio, "/lcio/fileExists delete");
+
// beamOn
CmdLineOpt* cmd_beamon = new CmdLineOpt("r",
"run-events",
- "Run # of events.",
+ "Run # of events. (Should be last arg if batch!)",
1,
1);
cmd_mgr->addCmd(cmd_beamon, "/run/beamOn");
@@ -274,6 +282,14 @@
0,
0);
cmd_mgr->addCmd(cmd_mom, "/lcio/storeMomentum");
+
+ // random seed
+ CmdLineOpt* rndSeed = new CmdLineOpt("d",
+ "seed",
+ "Set the random seed. (No argument seeds with time.)",
+ 1,
+ 0);
+ cmd_mgr->addCmd(rndSeed, "/random/seed");
}
void SlicApplication::printOutUsage(std::ostream& os)