pub struct GeneratedEventLayout { /* private fields */ }Expand description
Metadata describing the columns and generated particles in a generated event batch.
Implementations§
Source§impl GeneratedEventLayout
impl GeneratedEventLayout
Sourcepub fn new(
p4_labels: Vec<String>,
aux_labels: Vec<String>,
particles: Vec<GeneratedParticleLayout>,
vertices: Vec<GeneratedVertexLayout>,
) -> Self
pub fn new( p4_labels: Vec<String>, aux_labels: Vec<String>, particles: Vec<GeneratedParticleLayout>, vertices: Vec<GeneratedVertexLayout>, ) -> Self
Construct generated event layout metadata from p4 and auxiliary labels.
Sourcepub fn aux_labels(&self) -> &[String]
pub fn aux_labels(&self) -> &[String]
Return generated auxiliary column labels in dataset order.
Sourcepub fn particles(&self) -> &[GeneratedParticleLayout]
pub fn particles(&self) -> &[GeneratedParticleLayout]
Return generated particle layout entries in stable product-ID order.
Sourcepub fn particle(&self, id: &str) -> Option<&GeneratedParticleLayout>
pub fn particle(&self, id: &str) -> Option<&GeneratedParticleLayout>
Return the generated particle layout for a generated particle ID.
Sourcepub fn product(&self, product_id: usize) -> Option<&GeneratedParticleLayout>
pub fn product(&self, product_id: usize) -> Option<&GeneratedParticleLayout>
Return the generated particle layout for a stable product ID.
Sourcepub fn vertices(&self) -> &[GeneratedVertexLayout]
pub fn vertices(&self) -> &[GeneratedVertexLayout]
Return generated vertex layout entries in stable vertex-ID order.
Sourcepub fn vertex(&self, vertex_id: usize) -> Option<&GeneratedVertexLayout>
pub fn vertex(&self, vertex_id: usize) -> Option<&GeneratedVertexLayout>
Return the generated vertex layout for a stable vertex ID.
Sourcepub fn production_vertex(&self) -> Option<&GeneratedVertexLayout>
pub fn production_vertex(&self) -> Option<&GeneratedVertexLayout>
Return the production vertex layout, if the generated layout has one.
Sourcepub fn decay_products(
&self,
parent_product_id: usize,
) -> Vec<&GeneratedParticleLayout>
pub fn decay_products( &self, parent_product_id: usize, ) -> Vec<&GeneratedParticleLayout>
Return the generated decay daughters of a parent product ID.
Sourcepub fn production_incoming(&self) -> Vec<&GeneratedParticleLayout>
pub fn production_incoming(&self) -> Vec<&GeneratedParticleLayout>
Return production-level incoming particle layouts.
Sourcepub fn production_outgoing(&self) -> Vec<&GeneratedParticleLayout>
pub fn production_outgoing(&self) -> Vec<&GeneratedParticleLayout>
Return production-level outgoing particle layouts.
Trait Implementations§
Source§impl Clone for GeneratedEventLayout
impl Clone for GeneratedEventLayout
Source§fn clone(&self) -> GeneratedEventLayout
fn clone(&self) -> GeneratedEventLayout
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GeneratedEventLayout
impl Debug for GeneratedEventLayout
Source§impl PartialEq for GeneratedEventLayout
impl PartialEq for GeneratedEventLayout
Source§fn eq(&self, other: &GeneratedEventLayout) -> bool
fn eq(&self, other: &GeneratedEventLayout) -> bool
self and other values to be equal, and is used by ==.impl Eq for GeneratedEventLayout
impl StructuralPartialEq for GeneratedEventLayout
Auto Trait Implementations§
impl Freeze for GeneratedEventLayout
impl RefUnwindSafe for GeneratedEventLayout
impl Send for GeneratedEventLayout
impl Sync for GeneratedEventLayout
impl Unpin for GeneratedEventLayout
impl UnsafeUnpin for GeneratedEventLayout
impl UnwindSafe for GeneratedEventLayout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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.