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:

 export CLASSPATH=<path/to/jar>:<path/to/other/jar>:<...>:$CLASSPATH

Usage

Compiling:

 javac StdhepSplitter.java

Running:

 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".

  • No labels