OpenMS  2.4.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-2018.
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 
259  extern OPENMS_DLLAPI const std::string PRECURSOR_ERROR_PPM_USERPARAM;
260 
264  extern OPENMS_DLLAPI const std::string FRAGMENT_ANNOTATION_USERPARAM;
265 
266 
268  }
269 }
270 
const double k
const double E
Euler&#39;s number - base of the natural logarithm.
const double C13C12_MASSDIFF_U
const double MOL
const std::string PRECURSOR_ERROR_PPM_USERPARAM
const double GRAVITATIONAL_CONSTANT
const double F
const double a0
const double JOULE_PER_CAL
const double VACUUM_PERMEABILITY
const double AVOGADRO
const double SPEED_OF_LIGHT
const double M_PER_FOOT
const double BOLTZMANN
const double PROTON_MASS
const double e0
Elementary charge (alias)
const double c
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
const double R
const double DEG_PER_RAD
const double PLANCK
const double PROTON_MASS_U
const double BOHR_RADIUS
const double FINE_STRUCTURE_CONSTANT
const double NA
const double FARADAY
const double CAL_PER_JOULE
const double h
const double PI
PI.
const double ELECTRON_MASS_U
const double ELECTRON_MASS
const double NEUTRON_MASS
const double RAD_PER_DEG
const double ELEMENTARY_CHARGE
const double MM_PER_INCH
const double NEUTRON_MASS_U
const std::string FRAGMENT_ANNOTATION_USERPARAM
const double GAS_CONSTANT
const double VACUUM_PERMITTIVITY