Post

PrecursorIon.Constructor

Creates a precursor, empty, copied from another, or from its m/z.


Remarks

The copy constructor copies every field, including CollisionEnergy, FragmentationMethod and IsolationSpecificity. The m/z constructor leaves those three at their defaults.


Syntax

SyntaxDescription
PrecursorIon()PrecursorIon object constructor.
PrecursorIon(PrecursorIon pi)PrecursorIon object copy constructor.
PrecursorIon(double mz, double intensity = 0, int charge = 0, double isoMz = 0, double isoWidth = 0)Creates a precursor from its monoisotopic m/z, with optional intensity, charge, isolation m/z, and isolation width.

Parameters

NameTypeDescription
piPrecursorIonThe precursor to copy.
mzdoubleThe monoisotopic m/z.
intensitydoubleThe intensity of the precursor peak.
chargeintThe charge state.
isoMzdoubleThe isolation m/z of the precursor selection window.
isoWidthdoubleThe isolation width of the precursor selection window.

Example

1
2
3
4
5
6
7
using Nova.Data;

PrecursorIon precursor = new PrecursorIon(652.3412, 1.2e6, 2, 652.84, 1.6);
precursor.FragmentationMethod = FragmentationType.HCD;

// The copy carries every field.
PrecursorIon copy = new PrecursorIon(precursor);
This post is licensed under CC BY 4.0 by the author.

Trending Tags