pub trait EventLike {
// Required methods
fn p4_at(&self, p4_index: usize) -> Vec4;
fn aux_at(&self, aux_index: usize) -> f64;
fn n_p4(&self) -> usize;
fn n_aux(&self) -> usize;
fn weight(&self) -> f64;
fn metadata(&self) -> &DatasetMetadata;
// Provided methods
fn p4(&self, name: &str) -> Option<Vec4> { ... }
fn aux(&self, name: &str) -> Option<f64> { ... }
fn get_p4_sum<N>(&self, names: N) -> Option<Vec4>
where Self: Sized,
N: IntoIterator,
N::Item: AsRef<str> { ... }
}Expand description
Shared event access interface implemented by borrowed and owned event rows.
Required Methods§
Sourcefn metadata(&self) -> &DatasetMetadata
fn metadata(&self) -> &DatasetMetadata
Retrieve the dataset metadata attached to this event.
Provided Methods§
Sourcefn get_p4_sum<N>(&self, names: N) -> Option<Vec4>
fn get_p4_sum<N>(&self, names: N) -> Option<Vec4>
Retrieve the sum of multiple four-momenta selected by name.