private static List <int> GetUpperScans(Run run, int startingScan, int currentMSLevel, int numUpperScansToGet) { var currentScan = startingScan + 1; var scans = new List <int>(); var scansCounter = 0; var scanUpperLimit = run.GetMaxPossibleLCScanNum(); while (currentScan <= scanUpperLimit && numUpperScansToGet > scansCounter) { if (run.GetMSLevel(currentScan) == currentMSLevel) { scans.Add(currentScan); scansCounter++; } currentScan++; } return(scans); }
protected virtual int GetMaxScan(Run run) { return(run.GetMaxPossibleLCScanNum()); }