pub struct ActivationPolicy {
pub method: ActivationMethod,
pub unit: EnergyUnit,
pub model: CollisionEnergyModel,
}Expand description
Vendor-neutral activation policy: the typed ActivationCondition producer
for an acquisition. Pairs a dissociation method + energy unit with a
CollisionEnergyModel. The Bruker timsTOF default reproduces the legacy CE
numbers byte-for-byte; P6 supplies a Thermo policy with the same interface.
Fields§
§method: ActivationMethod§unit: EnergyUnit§model: CollisionEnergyModelImplementations§
Source§impl ActivationPolicy
impl ActivationPolicy
Sourcepub fn bruker_pasef(ce_bias: f64, ce_slope: f64) -> Self
pub fn bruker_pasef(ce_bias: f64, ce_slope: f64) -> Self
Bruker timsTOF DDA-PASEF: collisional activation (HCD), eV, CE linear in
scan. ce_bias/ce_slope default (in dda_selection_scheme) to
54.1984 / -0.0345 — pass those to reproduce the legacy output exactly.
Sourcepub fn thermo_nce(ce: CollisionEnergyPolicy) -> Self
pub fn thermo_nce(ce: CollisionEnergyPolicy) -> Self
Thermo Orbitrap Astral: collisional activation (HCD) reported as a
normalized collision energy (NCE), produced per isolation window. The
per-window NCE is carried in the window’s own CollisionEnergyPolicy
(ce), and the unit is EnergyUnit::NormalizedCe — so a downstream
fragment predictor that was calibrated in eV will reject it rather than
silently mis-encode an NCE as an absolute energy. There is no scan
dependence (no IMS): condition_for_scan is None; use
Self::condition_for_window.
Sourcepub fn collision_energy_for_scan(&self, scan: u32) -> Option<f64>
pub fn collision_energy_for_scan(&self, scan: u32) -> Option<f64>
Collision energy (eV) the instrument applies at a Bruker mobility scan.
Only meaningful for scan-parameterised models (Bruker DDA-PASEF). A
per-window model has NO scan dependence — it returns None (use
Self::condition_for_window) rather than silently misreading the scan
number as an m/z.
Sourcepub fn condition_for_scan(&self, scan: u32) -> Option<ActivationCondition>
pub fn condition_for_scan(&self, scan: u32) -> Option<ActivationCondition>
Typed activation condition at a Bruker mobility scan (scan-parameterised
models only; None for per-window models).
Sourcepub fn condition_for_window(
&self,
center_mz: f64,
) -> Option<ActivationCondition>
pub fn condition_for_window( &self, center_mz: f64, ) -> Option<ActivationCondition>
Typed activation condition for a per-window model at center_mz.
Trait Implementations§
Source§impl Clone for ActivationPolicy
impl Clone for ActivationPolicy
Source§fn clone(&self) -> ActivationPolicy
fn clone(&self) -> ActivationPolicy
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 ActivationPolicy
impl Debug for ActivationPolicy
impl Copy for ActivationPolicy
Auto Trait Implementations§
impl Freeze for ActivationPolicy
impl RefUnwindSafe for ActivationPolicy
impl Send for ActivationPolicy
impl Sync for ActivationPolicy
impl Unpin for ActivationPolicy
impl UnsafeUnpin for ActivationPolicy
impl UnwindSafe for ActivationPolicy
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<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 more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§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).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.