72 QMutexLocker lock(&m_mutex);
73 if(m_niMinAbundance == ni_min_abundance)
78 m_peptideNaturalIsotopeAverageSpListByCharge.clear();
79 m_niMinAbundance = ni_min_abundance;
82 auto it = m_peptideNaturalIsotopeAverageSpListByCharge.find(charge);
83 if(it != m_peptideNaturalIsotopeAverageSpListByCharge.end())
85 if(it->second.size() == 0)
87 it->second = mpa_peptideNaturalIsotopeList->getByIntensityRatio(
88 charge, precision, ni_min_abundance);
95 auto it_insert = m_peptideNaturalIsotopeAverageSpListByCharge.insert(
97 mpa_peptideNaturalIsotopeList->getByIntensityRatio(
98 charge, precision, ni_min_abundance)});
100 return it_insert.first->second;
virtual const std::vector< pappso::PeptideNaturalIsotopeAverageSp > & getPeptideNaturalIsotopeAverageSpList(pappso::PrecisionPtr precision, std::uint8_t charge, double ni_min_abundance)
get possible and distinguishable masses of isotopes get list of distinguishable isotopes given the ch...