OpenMS
IsotopeModel.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg $
6 // $Authors: Clemens Groepl, Chris Bielow $
7 // --------------------------------------------------------------------------
8 
9 
10 #pragma once
11 
14 
15 namespace OpenMS
16 {
17  class EmpiricalFormula;
18 
32  class OPENMS_DLLAPI IsotopeModel :
33  public InterpolationModel
34  {
35 
36 public:
39 
40  enum Averagines {C = 0, H, N, O, S, AVERAGINE_NUM};
41 
44 
46  IsotopeModel(const IsotopeModel & source);
47 
49  ~IsotopeModel() override;
50 
52  virtual IsotopeModel & operator=(const IsotopeModel & source);
53 
54  UInt getCharge() const;
55 
63  void setOffset(CoordinateType offset) override;
64 
66 
69 
71  virtual void setSamples(const EmpiricalFormula & formula);
72 
75 
80  CoordinateType getCenter() const override;
81 
88 
89 
90 protected:
93 
97  double averagine_[AVERAGINE_NUM];
102 
103  void updateMembers_() override;
104 
105  };
106 }
107 
double CoordinateType
Definition: BaseModel.h:25
Representation of an empirical formula.
Definition: EmpiricalFormula.h:59
Abstract class for 1D-models that are approximated using linear interpolation.
Definition: InterpolationModel.h:30
double CoordinateType
Definition: InterpolationModel.h:35
virtual void setSamples()
set sample/supporting points of interpolation wrt params.
Definition: InterpolationModel.h:136
Definition: IsotopeDistribution.h:39
Definition: IsotopeModel.h:34
UInt charge_
Definition: IsotopeModel.h:94
CoordinateType isotope_stdev_
Definition: IsotopeModel.h:91
EmpiricalFormula getFormula()
return the Averagine peptide formula (mass calculated from mean mass and charge – use ....
IsotopeDistribution isotope_distribution_
Definition: IsotopeModel.h:101
virtual IsotopeModel & operator=(const IsotopeModel &source)
assignment operator
CoordinateType monoisotopic_mz_
Definition: IsotopeModel.h:96
void setOffset(CoordinateType offset) override
set the offset of the model
double isotope_distance_
Definition: IsotopeModel.h:100
IsotopeModel(const IsotopeModel &source)
copy constructor
InterpolationModel::CoordinateType CoordinateType
Definition: IsotopeModel.h:37
CoordinateType isotope_lorentz_fwhm_
Definition: IsotopeModel.h:92
virtual void setSamples(const EmpiricalFormula &formula)
set sample/supporting points of interpolation
InterpolationModel::CoordinateType IntensityType
Definition: IsotopeModel.h:38
~IsotopeModel() override
destructor
const IsotopeDistribution & getIsotopeDistribution() const
the Isotope distribution (without widening) from the last setSamples() call
CoordinateType getCenter() const override
get the center of the Isotope model
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
UInt getCharge() const
Averagines
Definition: IsotopeModel.h:40
double trim_right_cutoff_
Definition: IsotopeModel.h:99
Int max_isotope_
Definition: IsotopeModel.h:98
IsotopeModel()
Default constructor.
CoordinateType mean_
Definition: IsotopeModel.h:95
CoordinateType getOffset()
int Int
Signed integer type.
Definition: Types.h:72
unsigned int UInt
Unsigned integer type.
Definition: Types.h:64
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19