public virtual void AddSelectedChromPeakAndScanSet(ChromPeak bestPeak, ScanSet scanset, Globals.IsotopicProfileType isotopicProfileType = Globals.IsotopicProfileType.UNLABELLED)
        {
            if (isotopicProfileType == Globals.IsotopicProfileType.UNLABELLED)
            {
                ChromPeakSelected = bestPeak;
                ScanSet           = scanset;

                if (ScanSet != null)
                {
                    NumMSScansSummed = ScanSet.IndexValues.Count;
                }



                var failedChromPeakSelection = (ChromPeakSelected == null || ChromPeakSelected.XValue == 0);
                if (failedChromPeakSelection)
                {
                    FailedResult = true;
                    FailureType  = Globals.TargetedResultFailureType.ChrompeakNotFoundWithinTolerances;
                }
                else
                {
                    FailedResult = false;
                    FailureType  = Globals.TargetedResultFailureType.None;
                }
            }
            else
            {
                throw new NotSupportedException("Cannot add data for a labeled result in this base class");
            }
        }
 public virtual void ResetResult()
 {
     this.Flags.Clear();
     this.ErrorDescription  = "";
     this.Score             = 1;
     this.InterferenceScore = 1;
     this.IsotopicProfile   = null;
     this.ChromPeakSelected = null;
     this.FailedResult      = false;
     this.FailureType       = Globals.TargetedResultFailureType.None;
 }