This small java programm allows splitting of stdhep files into smaller samples.
The correct run header is copied to each file.
Dependencies
It is depending on the freehep-stdhep package: http://java.freehep.org/freehep-stdhep/index.html
Usage
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".
Source Code: StdhepSplitter.java