Esempio n. 1
0
        protected void GatherPeakStatistics(Run run)
        {
            ScanSet currentScanset;

            if (run is UIMFRun)
            {
                currentScanset = ((UIMFRun)run).CurrentIMSScanSet;
            }
            else
            {
                currentScanset = run.CurrentScanSet;
            }

            Check.Require(currentScanset != null, "the CurrentScanSet for the Run is null. This needs to be set.");

            currentScanset.BackgroundIntensity = BackgroundIntensity;
            currentScanset.NumPeaks            = run.PeakList.Count;                       //used in ScanResult
            currentScanset.BasePeak            = _peakUtilities.GetBasePeak(run.PeakList); //Used in ScanResult
        }