/// <summary>
        ///     Create a new scorer based on the specified fit type, copying scorer settings from another scorer
        /// </summary>
        /// <param name="fitType"></param>
        /// <param name="oldFit"></param>
        /// <returns></returns>
        public static IsotopicProfileFitScorer ScorerFactory(Globals.IsotopicProfileFitType fitType,
                                                             IsotopicProfileFitScorer oldFit)
        {
            var scorer = ScorerFactory(fitType);

            scorer.CloneSettings(oldFit);
            return(scorer);
        }
 public IsotopicProfileFitScorer(IsotopicProfileFitScorer fit)
 {
     // only copies settings not variables.
     CompleteFitThrash   = fit.CompleteFitThrash;
     UseThrash           = fit.UseThrash;
     ChargeCarrierMass   = fit.ChargeCarrierMass;
     AveragineObj        = new Averagine(fit.AveragineObj);
     IsotopeDistribution = new MercuryIsotopeDistribution(fit.IsotopeDistribution);
     Init();
 }