Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

This small java programm allows splitting of stdhep files into smaller samples.

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/ 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>

The output is written to the same directory as the input file. The output files are named like the input file with an incrementing number appended. Input files have to end on ".stdhep".