OpenMS
Loading...
Searching...
No Matches
IsotopeModel.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- 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
15namespace OpenMS
16{
17 class EmpiricalFormula;
18
32 class OPENMS_DLLAPI IsotopeModel :
34 {
35
36public:
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
74 using InterpolationModel::setSamples;
75
80 CoordinateType getCenter() const override;
81
88
89
90protected:
93
97 double averagine_[AVERAGINE_NUM];
102
103 void updateMembers_() override;
104
105 };
106}
107
Representation of an empirical formula.
Definition EmpiricalFormula.h:63
Abstract class for 1D-models that are approximated using linear interpolation.
Definition InterpolationModel.h:30
double CoordinateType
Definition InterpolationModel.h:35
Definition IsotopeDistribution.h:40
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
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
virtual IsotopeModel & operator=(const IsotopeModel &source)
assignment operator
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()
You can set more CMake variables adding< code > linking and adding include directories</td ></tr >< tr >< th valign="top"> CMAKE_PREFIX_PATH</td >< td > Additional search path for the contrib libraries[MacOSX only] If you want to use libraries installed via Homebrew or MacPorts you might need to provide the corresponding paths< code > e g< code > C
Definition common-cmake-parameters.doxygen:35
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