OpenMS
IsotopeDistributionCache.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Lars Nilse $
6 // $Authors: Steffen Sass, Holger Plattfaut, Bastian Blank $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
13 
14 namespace OpenMS
15 {
19  class OPENMS_DLLAPI IsotopeDistributionCache
20  {
21 public:
23 
24  IsotopeDistributionCache(double max_mass, double mass_window_width, double intensity_percentage = 0, double intensity_percentage_optional = 0);
25 
28 
29 private:
31  std::vector<TheoreticalIsotopePattern> isotope_distributions_;
32 
34  };
35 }
36 
Pre-calculate isotope distributions for interesting mass ranges.
Definition: IsotopeDistributionCache.h:20
const TheoreticalIsotopePattern & getIsotopeDistribution(double mass) const
Returns the isotope distribution for a certain mass window.
double mass_window_width_
Definition: IsotopeDistributionCache.h:33
IsotopeDistributionCache(double max_mass, double mass_window_width, double intensity_percentage=0, double intensity_percentage_optional=0)
FeatureFinderAlgorithmPickedHelperStructs::TheoreticalIsotopePattern TheoreticalIsotopePattern
Definition: IsotopeDistributionCache.h:22
std::vector< TheoreticalIsotopePattern > isotope_distributions_
Vector of pre-calculated isotope distributions for several mass windows.
Definition: IsotopeDistributionCache.h:31
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
Helper structure for a theoretical isotope pattern used in FeatureFinderAlgorithmPicked.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:148