/usr/include/OpenMS/CONCEPT/Constants.h is in libopenms-dev 1.11.1-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universitaet Berlin 2002-2013.
//
// This software is released under a three-clause BSD license:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of any author or any participating institution
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
// For a full list of authors, refer to the file AUTHORS.
// --------------------------------------------------------------------------
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL ANY OF THE AUTHORS OR THE CONTRIBUTING
// INSTITUTIONS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// --------------------------------------------------------------------------
// $Maintainer: Stephan Aiche$
// $Authors: Marc Sturm $
// --------------------------------------------------------------------------
#ifndef OPENMS_CONCEPT_CONSTANTS_H
#define OPENMS_CONCEPT_CONSTANTS_H
#include <OpenMS/config.h>
/**
@brief Main %OpenMS namespace.
In this namespace all the main %OpenMS classes are located.
*/
namespace OpenMS
{
/**
@brief Mathematical and physical constants namespace.
This namespace contains definitions for some basic mathematical and physical constants.
All constants are double precision.
<BR>
There are basically two ways of accessing these constants:
<UL>
<LI> specify all namespaces:
<BR>
<tt>double my_pi = OpenMS::Constants::PI</tt>
<BR>
<LI>shortcut via the <tt>using directive</tt>:
<BR>
<tt>using namespace OpenMS::Constants;
<BR>
double my_pi = PI;</tt>
</UL>
@ingroup Concept
*/
namespace Constants
{
/** @name Mathematical constants.
*/
//@{
/// PI
extern OPENMS_DLLAPI const double PI;
/// Euler's number - base of the natural logarithm
extern OPENMS_DLLAPI const double E;
/** Internal theshold for equality comparisons.
Default value is 1e-6.
*/
extern OPENMS_DLLAPI double EPSILON;
//@}
/** @name Chemical/physical constants.
*/
//@{
/** Elementary charge.
In units of C (\f$1.60217738 \cdot 10^{-19} C\f$).
*/
extern OPENMS_DLLAPI const double ELEMENTARY_CHARGE; // C
/// Elementary charge (alias)
extern OPENMS_DLLAPI const double e0;
/** Electron mass.
In units of kg (\f$9.1093897 \cdot 10^{-31}\f$ kg).
*/
extern OPENMS_DLLAPI const double ELECTRON_MASS; // kg
/** Electron mass
In units (\f$1,822.88850204(77)^{-1}\f$u).
*/
extern OPENMS_DLLAPI const double ELECTRON_MASS_U; // u
/** Proton mass.
In units of kg (\f$1.6726230 \cdot 10^{-27}\f$ kg).
*/
extern OPENMS_DLLAPI const double PROTON_MASS; // kg
/** Proton mass.
In units (\f$1.00727646677(10)\f$u)
*/
extern OPENMS_DLLAPI const double PROTON_MASS_U; // u
/** C13C12 mass difference.
In units (\f$1.0033548\f$u)
*/
extern OPENMS_DLLAPI const double C13C12_MASSDIFF_U; // u
/** Neutron mass.
In units of kg (\f$1.6749286 \cdot 10^{-27}\f$ kg).
*/
extern OPENMS_DLLAPI const double NEUTRON_MASS; // kg
/** Neutron mass.
In units (\f$1.0086649156(6)\f$u)
*/
extern OPENMS_DLLAPI const double NEUTRON_MASS_U; // u
/** Avogadro constant.
In units of \f$mol^{-1}\f$ (\f$6.0221367 \cdot 10^{23} mol^{-1}\f$).
*/
extern OPENMS_DLLAPI const double AVOGADRO;
/** Avogadro constant (alias)
*/
extern OPENMS_DLLAPI const double NA;
/** Avogadro constant (alias)
*/
extern OPENMS_DLLAPI const double MOL;
/** Boltzmann constant.
In units of J/K (\f$1.380657 \cdot 10^{-23}\f$ J/K).
*/
extern OPENMS_DLLAPI const double BOLTZMANN;
/** Boltzmann constant (alias)
*/
extern OPENMS_DLLAPI const double k;
/** Planck constant.
In units of Js (\f$6.6260754 \cdot 10^{-34}\f$ Js).
*/
extern OPENMS_DLLAPI const double PLANCK;
/** Planck constant (alias)
*/
extern OPENMS_DLLAPI const double h;
/** Gas constant (= NA * k)
*/
extern OPENMS_DLLAPI const double GAS_CONSTANT;
/** Gas constant (alias)
*/
extern OPENMS_DLLAPI const double R;
/** Faraday constant (= NA * e0)
*/
extern OPENMS_DLLAPI const double FARADAY;
/** Faraday constant (alias)
*/
extern OPENMS_DLLAPI const double F;
/** Bohr radius.
In units m (\f$5.29177249 \cdot 10^{-11}\f$ m).
*/
extern OPENMS_DLLAPI const double BOHR_RADIUS;
/** Bohr radius (alias)
*/
extern OPENMS_DLLAPI const double a0;
// the following values from:
// P.W.Atkins: Physical Chemistry, 5th ed., Oxford University Press, 1995
/** Vacuum permittivity.
In units of \f$C^2J^{-1}m^{-1}\f$ (\f$8.85419 \cdot 10^{-12} C^2J^{-1}m^{-1}\f$).
*/
extern OPENMS_DLLAPI const double VACUUM_PERMITTIVITY;
/** Vacuum permeability.
In units of \f$Js^2C^{-2}m^{-1}\f$ (\f$4\pi \cdot 10^{-7} Js^2C^{-2}m^{-1}\f$).
*/
extern OPENMS_DLLAPI const double VACUUM_PERMEABILITY;
/** Speed of light.
In units of m/s (\f$2.99792458 \cdot 10^8 ms^{-1}\f$).
*/
extern OPENMS_DLLAPI const double SPEED_OF_LIGHT;
/** Speed of Light (alias)
*/
extern OPENMS_DLLAPI const double c;
/** Gravitational constant.
In units of \f$Nm^2kg^{-2}\f$ (\f$6.67259 \cdot 10^{-11} Nm^2kg^{-2}\f$).
*/
extern OPENMS_DLLAPI const double GRAVITATIONAL_CONSTANT;
/** Fine structure constant.
Without unit (\f$7.29735 \cdot 10^{-3}\f$).
*/
extern OPENMS_DLLAPI const double FINE_STRUCTURE_CONSTANT;
//@}
/** @name Conversion factors
*/
//@{
/** Degree per rad.
57.2957795130823209
*/
extern OPENMS_DLLAPI const double DEG_PER_RAD;
/** Rad per degree.
0.0174532925199432957
*/
extern OPENMS_DLLAPI const double RAD_PER_DEG;
/** mm per inch.
25.4
*/
extern OPENMS_DLLAPI const double MM_PER_INCH;
/** m per foot.
3.048
*/
extern OPENMS_DLLAPI const double M_PER_FOOT;
/** Joules per calorie.
4.184
*/
extern OPENMS_DLLAPI const double JOULE_PER_CAL;
/** Calories per Joule.
1/JOULE_PER_CAL
*/
extern OPENMS_DLLAPI const double CAL_PER_JOULE;
//@}
}
}
#endif // OPENMS_CONCEPT_CONSTANTS_H
|