Crates.io | event-file-reader |
lib.rs | event-file-reader |
version | 0.4.0 |
source | src |
created_at | 2023-09-02 07:25:18.397262 |
updated_at | 2024-06-21 08:45:00.813614 |
description | Generic reader for scattering event files |
homepage | |
repository | https://github.com/a-maier/event-file-reader |
max_upload_size | |
id | 961572 |
size | 12,051 |
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.
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
}
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.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