...
The correct run header is copied to each file.
Source Code: StdhepSplitter.java
Dependencies
It is depending on the freehep-stdhep package: http://java.freehep.org/freehep-stdhep/index.html
...
and its dependencies freehep-mcfio (http://java.freehep.org/freehep-mcfio/) and freehep-xdr (http://java.freehep.org/freehep-xdr/)
In order to compile and run you will need to add all the jar files of the dependencies to the java class path:
Code Block |
---|
export CLASSPATH=<path/to/jar>:<path/to/other/jar>:<...>:$CLASSPATH
|
Usage
Compiling:
Code Block |
---|
javac StdhepSplitter.java
|
Running:
Code Block |
---|
java StdhepSplitter <input file> <number of events per output file> |
...