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. The current version is not ready for production use. In
particular, be aware of
- Non-existing documentation
- Lack of rigorous tests
- No support for heavy ions
Examples
// 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