Struct jetty::pseudojet::PseudoJet

source ·
pub struct PseudoJet { /* private fields */ }
Expand description

A pseudojet is a particle momentum or a sum of momenta of clustered particles

Implementations§

source§

impl PseudoJet

source

pub fn new() -> Self

Create pseudojet with vanishing four-momentum

source

pub fn e(&self) -> N64

Energy

source

pub fn px(&self) -> N64

Momentum in x direction

source

pub fn py(&self) -> N64

Momentum in y direction

source

pub fn pz(&self) -> N64

Momentum in z direction, i.e. along the beam axis

source

pub fn phi(&self) -> N64

Azimuthal angle φ

source

pub fn rap(&self) -> N64

Rapidity y

source

pub fn y(&self) -> N64

Rapidity y

source

pub fn inv_pt(&self) -> N64

Inverse transverse momentum inv_pt = 1/pt

source

pub fn inv_pt2(&self) -> N64

Inverse square of transverse momentum inv_pt2 = 1/pt2

source

pub fn pt2(&self) -> N64

Square of transverse momentum pt2 = px*px + py*py

source

pub fn pt(&self) -> N64

Absolute value of transverse momentum pt = (px*px + py*py)^(1/2)

source

pub fn delta_r2(&self, p: &PseudoJet) -> N64

Calculate ΔR^2 = Δφ^2 + Δy^2

source

pub fn delta_r(&self, p: &PseudoJet) -> N64

Calculate ΔR = (Δφ^2 + Δy^2)^(1/2)

source

pub fn delta_phi2(&self, p: &PseudoJet) -> N64

Square Δφ^2 of azimuthal angle difference

source

pub fn delta_phi(&self, p: &PseudoJet) -> N64

Difference Δφ in azimuthal angle

The difference is normalised such that -π < Δφ <= π

source

pub fn delta_phi_abs(&self, p: &PseudoJet) -> N64

Absolute difference |Δφ| in azimuthal angle

The difference is normalised such that 0 <= |Δφ| <= π

source

pub fn delta_rap2(&self, p: &PseudoJet) -> N64

Square Δφ^2 of azimuthal angle difference

source

pub fn delta_rap(&self, p: &PseudoJet) -> N64

Difference Δy in rapidity

Trait Implementations§

source§

impl Add<PseudoJet> for PseudoJet

§

type Output = PseudoJet

The resulting type after applying the + operator.
source§

fn add(self, other: PseudoJet) -> Self::Output

Performs the + operation. Read more
source§

impl AddAssign<PseudoJet> for PseudoJet

source§

fn add_assign(&mut self, other: PseudoJet)

Performs the += operation. Read more
source§

impl Clone for PseudoJet

source§

fn clone(&self) -> PseudoJet

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PseudoJet

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for PseudoJet

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<&[NoisyFloat<f64, NumChecker>; 4]> for PseudoJet

source§

fn from(from: &[N64; 4]) -> Self

Converts to this type from the input type.
source§

impl From<&[f64; 4]> for PseudoJet

source§

fn from(from: &[f64; 4]) -> Self

Converts to this type from the input type.
source§

impl From<&(NoisyFloat<f64, NumChecker>, NoisyFloat<f64, NumChecker>, NoisyFloat<f64, NumChecker>, NoisyFloat<f64, NumChecker>)> for PseudoJet

source§

fn from(from: &(N64, N64, N64, N64)) -> Self

Converts to this type from the input type.
source§

impl From<&(f64, f64, f64, f64)> for PseudoJet

source§

fn from(from: &(f64, f64, f64, f64)) -> Self

Converts to this type from the input type.
source§

impl From<[NoisyFloat<f64, NumChecker>; 4]> for PseudoJet

Create a pseudojet from the four-momentum components

source§

fn from(arr: [N64; 4]) -> Self

Converts to this type from the input type.
source§

impl From<[f64; 4]> for PseudoJet

Create a pseudojet from the four-momentum components

source§

fn from(arr: [f64; 4]) -> Self

Converts to this type from the input type.
source§

impl From<(NoisyFloat<f64, NumChecker>, NoisyFloat<f64, NumChecker>, NoisyFloat<f64, NumChecker>, NoisyFloat<f64, NumChecker>)> for PseudoJet

Create a pseudojet from the four-momentum components

source§

fn from(p: (N64, N64, N64, N64)) -> Self

Converts to this type from the input type.
source§

impl From<(f64, f64, f64, f64)> for PseudoJet

Create a pseudojet from the four-momentum components

source§

fn from(p: (f64, f64, f64, f64)) -> Self

Converts to this type from the input type.
source§

impl From<PseudoJet> for ClusterStep

source§

fn from(jet: PseudoJet) -> Self

Converts to this type from the input type.
source§

impl Hash for PseudoJet

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Index<usize> for PseudoJet

§

type Output = NoisyFloat<f64, NumChecker>

The returned type after indexing.
source§

fn index(&self, i: usize) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl Ord for PseudoJet

source§

fn cmp(&self, other: &PseudoJet) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<PseudoJet> for PseudoJet

source§

fn eq(&self, other: &PseudoJet) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<PseudoJet> for PseudoJet

source§

fn partial_cmp(&self, other: &PseudoJet) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Sub<PseudoJet> for PseudoJet

§

type Output = PseudoJet

The resulting type after applying the - operator.
source§

fn sub(self, other: PseudoJet) -> Self::Output

Performs the - operation. Read more
source§

impl SubAssign<PseudoJet> for PseudoJet

source§

fn sub_assign(&mut self, other: PseudoJet)

Performs the -= operation. Read more
source§

impl Copy for PseudoJet

source§

impl Eq for PseudoJet

source§

impl StructuralEq for PseudoJet

source§

impl StructuralPartialEq for PseudoJet

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Comparable<K> for Qwhere Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.