/// <summary> /// Mass-to-charge ratio of a precursor ion selected for fragmentation. [PSI:PI] /// </summary> public static SelectedIon SetSelectedIonMz( this SelectedIon si, double mz) { if (mz < 0) { throw new ArgumentOutOfRangeException("mz"); } return(si.SetCvParam(SelectedIonMz, mz).PSIMS_Mz()); }
/// <summary> /// The charge state of the ion, single or multiple and positive or negatively charged. [PSI:MS] /// </summary> public static SelectedIon SetChargeState( this SelectedIon si, int state) { return(si.SetCvParam(ChargeState, state).NoUnit()); }