4 releases (breaking)

0.4.0 Jun 21, 2024
0.3.0 Nov 29, 2023
0.2.0 Sep 5, 2023
0.1.0 Sep 2, 2023

#1105 in Parser implementations

Download history 19/week @ 2024-03-27 41/week @ 2024-04-03 107/week @ 2024-06-19 4/week @ 2024-06-26

111 downloads per month

GPL-3.0-or-later

13KB
173 lines

event-file-reader

Generic event file reader.

This crate provides the [EventFileReader] struct for reading scattering event files in different formats. See the Features section for a list of supported formats and the avery crate for the format of the returned events.

Example

use event_file_reader::EventFileReader as Reader;

let reader = Reader::new("events.lhe.gz")?;
for event in reader {
  let event = event?;
  // do something with the event
}

Features

Default Features

  • lhef: Support for event files in the Les Houches Event File format.
  • hepmc2: Support for event files in the HepMC 2 format.
  • flate2: Support for DEFLATE compressed event files, e.g. gzip.
  • zstd: Support for event files compressed with zstd.

Non-default Features

  • all: Enable all mutually compatible features. Use --features all instead of --all-features.
  • bzip2: Support for bzip2 compressed event files.
  • ntuple: Support for ntuple event files.
  • lz4: Support for lz4 compressed event files using the lz4 crate. Incompatible with the lz4_flex feature.
  • lz4_flex: Support for lz4 compressed event files using the lz4_flex crate. Incompatible with the lz4 feature.

License: GPL-3.0-or-later

Dependencies

~5–7.5MB
~123K SLoC