public class CommandLineTool extends Object
concat
-concatenate LCIO files together
,
merge
-overlay events
,
split
-split LCIO file into multiple output files
,
siodump
-dump low-level SIOinfo
,
compare
-compare series of LCIO files
,
count
-print header info
-number of LCRunHeader
-number of LCEventHeader
-number of LCEvent
,
random
-generate X random events
,
validate
-Is an LCIO file?
-version check
,
stdhep
-convert from stdhep file to lcio MCParticles
,
print
-dump lcio file (similar to C++ dump cmd)
,
-run a class within the LCIO distribution
Modifier and Type | Method and Description |
---|---|
void |
addCommandHandler(CommandHandler handler)
Add a @see CommandHandler to the CommandLineTool.
|
String |
getCommand()
Get the name of the currently active command.
|
CommandHandler |
getCommandHandler(String command)
Get a CommandHandler for the command.
|
org.apache.commons.cli.CommandLine |
getGlobalOptions()
Get the global options.
|
static CommandLineTool |
instance()
Get an instance of CommandLineTool.
|
static void |
main(String[] argv)
The default main method for the CommandLineTool.
|
void |
parse(String[] argv)
Parse the argv for global options.
|
void |
printUsage(boolean doExit)
Print the lcio command usage.
|
public static CommandLineTool instance()
public org.apache.commons.cli.CommandLine getGlobalOptions()
public static void main(String[] argv) throws Exception
argv
- The raw input arguments from the CL.Exception
public String getCommand()
public void parse(String[] argv) throws Exception
argv
- The raw input arguments from CL.Exception
public void addCommandHandler(CommandHandler handler)
handler
- The CommandHandler.public CommandHandler getCommandHandler(String command) throws Exception
command
- A String of the command to lookup.Exception
public void printUsage(boolean doExit)
doExit
- Boolean that specifies whether to exit or not.Jas4pp 1.5 © Java Analysis Studio for Particle Physics