hepmc2
Read and write event files in the hepmc2 format, also known as
IO_GenEvent.
Caveats
This crate is inspired by the code for the ReaderAsciiHepMC2 in the
HepMC3 library, version
3.2.0. When using the current version, be aware of
- Lack of rigorous tests
- No support for heavy ions
Example
// Read events from `events_in.hepmc2` and write them to `events_out.hepmc2`
use Reader;
use Writer;
use BufReader;
use File;
let input = new;
let in_events = from;
let output = create?;
let mut writer = try_from?;
for event in in_events
writer.finish?;
License: GPL-3.0-or-later