pub struct DatasetReadOptions {
pub p4_names: Option<Vec<String>>,
pub aux_names: Option<Vec<String>>,
pub tree: Option<String>,
pub aliases: IndexMap<String, P4Selection>,
}Expand description
Fields§
§p4_names: Option<Vec<String>>Particle names to read from the data file.
aux_names: Option<Vec<String>>Auxiliary scalar names to read from the data file.
tree: Option<String>Name of the tree to read when loading ROOT files. When absent and the file contains a single tree, it will be selected automatically.
aliases: IndexMap<String, P4Selection>Optional aliases mapping logical names to selections of four-momenta.
Implementations§
Source§impl DatasetReadOptions
impl DatasetReadOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new Default set of DatasetReadOptions.
Sourcepub fn p4_names<I, S>(self, names: I) -> Self
pub fn p4_names<I, S>(self, names: I) -> Self
If provided, the specified particles will be read from the data file (assuming columns with
required suffixes are present, i.e. <particle>_px, <particle>_py, <particle>_pz, and <particle>_e). Otherwise, all valid columns with these suffixes will be read.
Sourcepub fn aux_names<I, S>(self, names: I) -> Self
pub fn aux_names<I, S>(self, names: I) -> Self
If provided, the specified columns will be read as auxiliary scalars. Otherwise, all valid columns which do not satisfy the conditions required to be read as four-momenta will be used.
Sourcepub fn alias<N, S>(self, name: N, selection: S) -> Self
pub fn alias<N, S>(self, name: N, selection: S) -> Self
Register an alias for one or more existing four-momenta.
Trait Implementations§
Source§impl Clone for DatasetReadOptions
impl Clone for DatasetReadOptions
Source§fn clone(&self) -> DatasetReadOptions
fn clone(&self) -> DatasetReadOptions
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for DatasetReadOptions
impl Default for DatasetReadOptions
Source§fn default() -> DatasetReadOptions
fn default() -> DatasetReadOptions
Auto Trait Implementations§
impl Freeze for DatasetReadOptions
impl RefUnwindSafe for DatasetReadOptions
impl Send for DatasetReadOptions
impl Sync for DatasetReadOptions
impl Unpin for DatasetReadOptions
impl UnwindSafe for DatasetReadOptions
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.