OpenMS  2.5.0
Constants.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // OpenMS -- Open-Source Mass Spectrometry
3 // --------------------------------------------------------------------------
4 // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
5 // ETH Zurich, and Freie Universitaet Berlin 2002-2020.
6 //
7 // This software is released under a three-clause BSD license:
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright
11 // notice, this list of conditions and the following disclaimer in the
12 // documentation and/or other materials provided with the distribution.
13 // * Neither the name of any author or any participating institution
14 // may be used to endorse or promote products derived from this software
15 // without specific prior written permission.
16 // For a full list of authors, refer to the file AUTHORS.
17 // --------------------------------------------------------------------------
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 // ARE DISCLAIMED. IN NO EVENT SHALL ANY OF THE AUTHORS OR THE CONTRIBUTING
22 // INSTITUTIONS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
27 // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28 // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 //
30 // --------------------------------------------------------------------------
31 // $Maintainer: Timo Sachsenberg$
32 // $Authors: Marc Sturm $
33 // --------------------------------------------------------------------------
34 
35 #pragma once
36 
37 #include <OpenMS/config.h>
38 #include <string>
39 
45 namespace OpenMS
46 {
68  namespace Constants
69  {
73 
75  extern OPENMS_DLLAPI const double PI;
76 
78  extern OPENMS_DLLAPI const double E;
79 
83  extern OPENMS_DLLAPI double EPSILON;
85 
89 
93  extern OPENMS_DLLAPI const double ELEMENTARY_CHARGE; // C
94 
96  extern OPENMS_DLLAPI const double e0;
97 
101  extern OPENMS_DLLAPI const double ELECTRON_MASS; // kg
102 
106  extern OPENMS_DLLAPI const double ELECTRON_MASS_U; // u
107 
111  extern OPENMS_DLLAPI const double PROTON_MASS; // kg
112 
116  extern OPENMS_DLLAPI const double PROTON_MASS_U; // u
117 
121  extern OPENMS_DLLAPI const double C13C12_MASSDIFF_U; // u
122 
126  extern OPENMS_DLLAPI const double NEUTRON_MASS; // kg
127 
131  extern OPENMS_DLLAPI const double NEUTRON_MASS_U; // u
132 
136  extern OPENMS_DLLAPI const double AVOGADRO;
137 
140  extern OPENMS_DLLAPI const double NA;
141 
144  extern OPENMS_DLLAPI const double MOL;
145 
149  extern OPENMS_DLLAPI const double BOLTZMANN;
150 
153  extern OPENMS_DLLAPI const double k;
154 
158  extern OPENMS_DLLAPI const double PLANCK;
159 
162  extern OPENMS_DLLAPI const double h;
163 
166  extern OPENMS_DLLAPI const double GAS_CONSTANT;
167 
170  extern OPENMS_DLLAPI const double R;
171 
174  extern OPENMS_DLLAPI const double FARADAY;
175 
178  extern OPENMS_DLLAPI const double F;
179 
183  extern OPENMS_DLLAPI const double BOHR_RADIUS;
184 
187  extern OPENMS_DLLAPI const double a0;
188 
189  // the following values from:
190  // P.W.Atkins: Physical Chemistry, 5th ed., Oxford University Press, 1995
191 
195  extern OPENMS_DLLAPI const double VACUUM_PERMITTIVITY;
196 
200  extern OPENMS_DLLAPI const double VACUUM_PERMEABILITY;
201 
205  extern OPENMS_DLLAPI const double SPEED_OF_LIGHT;
206 
209  extern OPENMS_DLLAPI const double c;
210 
214  extern OPENMS_DLLAPI const double GRAVITATIONAL_CONSTANT;
215 
219  extern OPENMS_DLLAPI const double FINE_STRUCTURE_CONSTANT;
221 
225 
229  extern OPENMS_DLLAPI const double DEG_PER_RAD;
230 
234  extern OPENMS_DLLAPI const double RAD_PER_DEG;
235 
239  extern OPENMS_DLLAPI const double MM_PER_INCH;
240 
244  extern OPENMS_DLLAPI const double M_PER_FOOT;
245 
249  extern OPENMS_DLLAPI const double JOULE_PER_CAL;
250 
254  extern OPENMS_DLLAPI const double CAL_PER_JOULE;
255 
256  namespace UserParam
257  {
261  extern OPENMS_DLLAPI const std::string PRECURSOR_ERROR_PPM_USERPARAM;
262 
267  extern OPENMS_DLLAPI const std::string PRECURSOR_ASSIGNMENT_CORRECTION;
268 
272  extern OPENMS_DLLAPI const std::string FRAGMENT_ANNOTATION_USERPARAM;
273 
277  extern OPENMS_DLLAPI const std::string SPECTRUM_REFERENCE;
278 
282  extern OPENMS_DLLAPI const std::string TARGET_DECOY;
283 
287  extern OPENMS_DLLAPI const std::string DELTA_SCORE;
288 
289  // Cross-Linking Mass Spectrometry user parameters
293  extern OPENMS_DLLAPI const std::string OPENPEPXL_SCORE;
294 
298  extern OPENMS_DLLAPI const std::string OPENPEPXL_BETA_SEQUENCE;
299 
303  extern OPENMS_DLLAPI const std::string OPENPEPXL_BETA_ACCESSIONS;
304 
308  extern OPENMS_DLLAPI const std::string OPENPEPXL_XL_POS1;
309 
313  extern OPENMS_DLLAPI const std::string OPENPEPXL_XL_POS2;
314 
318  extern OPENMS_DLLAPI const std::string OPENPEPXL_XL_POS1_PROT;
319 
323  extern OPENMS_DLLAPI const std::string OPENPEPXL_XL_POS2_PROT;
324 
328  extern OPENMS_DLLAPI const std::string OPENPEPXL_XL_TYPE;
329 
333  extern OPENMS_DLLAPI const std::string OPENPEPXL_XL_RANK;
334 
338  extern OPENMS_DLLAPI const std::string OPENPEPXL_XL_MOD;
339 
343  extern OPENMS_DLLAPI const std::string OPENPEPXL_XL_MASS;
344 
348  extern OPENMS_DLLAPI const std::string OPENPEPXL_XL_TERM_SPEC_ALPHA;
349 
353  extern OPENMS_DLLAPI const std::string OPENPEPXL_XL_TERM_SPEC_BETA;
354 
358  extern OPENMS_DLLAPI const std::string OPENPEPXL_HEAVY_SPEC_RT;
359 
363  extern OPENMS_DLLAPI const std::string OPENPEPXL_HEAVY_SPEC_MZ;
364 
368  extern OPENMS_DLLAPI const std::string OPENPEPXL_HEAVY_SPEC_REF;
369 
373  extern OPENMS_DLLAPI const std::string OPENPEPXL_TARGET_DECOY_ALPHA;
374 
378  extern OPENMS_DLLAPI const std::string OPENPEPXL_TARGET_DECOY_BETA;
379 
383  extern OPENMS_DLLAPI const std::string OPENPEPXL_BETA_PEPEV_PRE;
384 
388  extern OPENMS_DLLAPI const std::string OPENPEPXL_BETA_PEPEV_POST;
389 
393  extern OPENMS_DLLAPI const std::string OPENPEPXL_BETA_PEPEV_START;
394 
398  extern OPENMS_DLLAPI const std::string OPENPEPXL_BETA_PEPEV_END;
399 
403  extern OPENMS_DLLAPI const std::string XFDR_FDR;
404  }
405 
407  }
408 }
OpenMS::Constants::ELEMENTARY_CHARGE
const double ELEMENTARY_CHARGE
OpenMS::Constants::VACUUM_PERMEABILITY
const double VACUUM_PERMEABILITY
OpenMS::Constants::UserParam::OPENPEPXL_HEAVY_SPEC_REF
const std::string OPENPEPXL_HEAVY_SPEC_REF
OpenMS::Constants::VACUUM_PERMITTIVITY
const double VACUUM_PERMITTIVITY
OpenMS::Constants::SPEED_OF_LIGHT
const double SPEED_OF_LIGHT
OpenMS::Constants::UserParam::FRAGMENT_ANNOTATION_USERPARAM
const std::string FRAGMENT_ANNOTATION_USERPARAM
OpenMS::Constants::a0
const double a0
OpenMS::Constants::BOLTZMANN
const double BOLTZMANN
OpenMS::Constants::UserParam::PRECURSOR_ERROR_PPM_USERPARAM
const std::string PRECURSOR_ERROR_PPM_USERPARAM
OpenMS::Constants::e0
const double e0
Elementary charge (alias)
OpenMS::Constants::UserParam::OPENPEPXL_XL_MOD
const std::string OPENPEPXL_XL_MOD
OpenMS::Constants::k
const double k
OpenMS::Constants::GRAVITATIONAL_CONSTANT
const double GRAVITATIONAL_CONSTANT
OpenMS::Constants::c
const double c
OpenMS::Constants::MOL
const double MOL
OpenMS::Constants::UserParam::OPENPEPXL_XL_POS2_PROT
const std::string OPENPEPXL_XL_POS2_PROT
OpenMS::Constants::R
const double R
OpenMS::Constants::UserParam::OPENPEPXL_SCORE
const std::string OPENPEPXL_SCORE
OpenMS::Constants::AVOGADRO
const double AVOGADRO
OpenMS::Constants::F
const double F
OpenMS::Constants::BOHR_RADIUS
const double BOHR_RADIUS
OpenMS::Constants::PROTON_MASS_U
const double PROTON_MASS_U
OpenMS::Constants::UserParam::OPENPEPXL_TARGET_DECOY_BETA
const std::string OPENPEPXL_TARGET_DECOY_BETA
OpenMS::Constants::JOULE_PER_CAL
const double JOULE_PER_CAL
OpenMS::Constants::UserParam::OPENPEPXL_HEAVY_SPEC_MZ
const std::string OPENPEPXL_HEAVY_SPEC_MZ
OpenMS::Constants::UserParam::OPENPEPXL_BETA_PEPEV_POST
const std::string OPENPEPXL_BETA_PEPEV_POST
OpenMS::Constants::M_PER_FOOT
const double M_PER_FOOT
OpenMS::Constants::PLANCK
const double PLANCK
OpenMS
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
OpenMS::Constants::UserParam::OPENPEPXL_HEAVY_SPEC_RT
const std::string OPENPEPXL_HEAVY_SPEC_RT
OpenMS::Constants::FARADAY
const double FARADAY
OpenMS::Constants::EPSILON
double EPSILON
OpenMS::Constants::UserParam::SPECTRUM_REFERENCE
const std::string SPECTRUM_REFERENCE
OpenMS::Constants::PROTON_MASS
const double PROTON_MASS
OpenMS::Constants::UserParam::OPENPEPXL_XL_TYPE
const std::string OPENPEPXL_XL_TYPE
OpenMS::Constants::DEG_PER_RAD
const double DEG_PER_RAD
OpenMS::Constants::UserParam::OPENPEPXL_XL_TERM_SPEC_ALPHA
const std::string OPENPEPXL_XL_TERM_SPEC_ALPHA
OpenMS::Constants::FINE_STRUCTURE_CONSTANT
const double FINE_STRUCTURE_CONSTANT
OpenMS::Constants::UserParam::OPENPEPXL_XL_RANK
const std::string OPENPEPXL_XL_RANK
OpenMS::Constants::UserParam::DELTA_SCORE
const std::string DELTA_SCORE
OpenMS::Constants::UserParam::OPENPEPXL_BETA_PEPEV_START
const std::string OPENPEPXL_BETA_PEPEV_START
OpenMS::Constants::ELECTRON_MASS
const double ELECTRON_MASS
OpenMS::Constants::UserParam::TARGET_DECOY
const std::string TARGET_DECOY
OpenMS::Constants::ELECTRON_MASS_U
const double ELECTRON_MASS_U
OpenMS::Constants::UserParam::OPENPEPXL_BETA_SEQUENCE
const std::string OPENPEPXL_BETA_SEQUENCE
OpenMS::Constants::UserParam::OPENPEPXL_XL_MASS
const std::string OPENPEPXL_XL_MASS
OpenMS::Constants::UserParam::OPENPEPXL_BETA_PEPEV_PRE
const std::string OPENPEPXL_BETA_PEPEV_PRE
OpenMS::Constants::PI
const double PI
PI.
OpenMS::Constants::h
const double h
OpenMS::Constants::NA
const double NA
OpenMS::Constants::UserParam::OPENPEPXL_XL_TERM_SPEC_BETA
const std::string OPENPEPXL_XL_TERM_SPEC_BETA
OpenMS::Constants::UserParam::XFDR_FDR
const std::string XFDR_FDR
OpenMS::Constants::CAL_PER_JOULE
const double CAL_PER_JOULE
OpenMS::Constants::UserParam::OPENPEPXL_BETA_ACCESSIONS
const std::string OPENPEPXL_BETA_ACCESSIONS
OpenMS::Constants::NEUTRON_MASS
const double NEUTRON_MASS
OpenMS::Constants::UserParam::OPENPEPXL_BETA_PEPEV_END
const std::string OPENPEPXL_BETA_PEPEV_END
OpenMS::Constants::UserParam::PRECURSOR_ASSIGNMENT_CORRECTION
const std::string PRECURSOR_ASSIGNMENT_CORRECTION
OpenMS::Constants::UserParam::OPENPEPXL_XL_POS2
const std::string OPENPEPXL_XL_POS2
OpenMS::Constants::UserParam::OPENPEPXL_XL_POS1_PROT
const std::string OPENPEPXL_XL_POS1_PROT
OpenMS::Constants::NEUTRON_MASS_U
const double NEUTRON_MASS_U
OpenMS::Constants::C13C12_MASSDIFF_U
const double C13C12_MASSDIFF_U
OpenMS::Constants::MM_PER_INCH
const double MM_PER_INCH
OpenMS::Constants::GAS_CONSTANT
const double GAS_CONSTANT
OpenMS::Constants::UserParam::OPENPEPXL_TARGET_DECOY_ALPHA
const std::string OPENPEPXL_TARGET_DECOY_ALPHA
OpenMS::Constants::RAD_PER_DEG
const double RAD_PER_DEG
OpenMS::Constants::E
const double E
Euler's number - base of the natural logarithm.
OpenMS::Constants::UserParam::OPENPEPXL_XL_POS1
const std::string OPENPEPXL_XL_POS1