public ISpectrum GetSpectrum(int scanNum) { int msOrder = getter.GetMSnOrder(scanNum); TypeOfMSActivation type = (TypeOfMSActivation)getter.GetTypeofActivation(scanNum); double[] mzCharge = getter.GetParentMZCharge(scanNum); ISpectrum spectrum = new GeneralSpectrumMSn(msOrder, scanNum, type, mzCharge[0], (int)mzCharge[1]); List <IPeak> peaks = getter.GetPeaks(scanNum); spectrum.SetPeaks(peaks); return(spectrum); }
public TypeOfMSActivation GetActivation(int scanNum) { return((TypeOfMSActivation)specParamGetter.GetTypeofActivation(scanNum)); }