Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

IsotopeWaveletConstants.h

Go to the documentation of this file.
00001 // --------------------------------------------------------------------------
00002 //                   OpenMS -- Open-Source Mass Spectrometry
00003 // --------------------------------------------------------------------------
00004 // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
00005 // ETH Zurich, and Freie Universitaet Berlin 2002-2012.
00006 //
00007 // This software is released under a three-clause BSD license:
00008 //  * Redistributions of source code must retain the above copyright
00009 //    notice, this list of conditions and the following disclaimer.
00010 //  * Redistributions in binary form must reproduce the above copyright
00011 //    notice, this list of conditions and the following disclaimer in the
00012 //    documentation and/or other materials provided with the distribution.
00013 //  * Neither the name of any author or any participating institution
00014 //    may be used to endorse or promote products derived from this software
00015 //    without specific prior written permission.
00016 // For a full list of authors, refer to the file AUTHORS.
00017 // --------------------------------------------------------------------------
00018 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00019 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00020 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00021 // ARE DISCLAIMED. IN NO EVENT SHALL ANY OF THE AUTHORS OR THE CONTRIBUTING
00022 // INSTITUTIONS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00023 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00024 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
00025 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
00026 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
00027 // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
00028 // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00029 //
00030 // --------------------------------------------------------------------------
00031 // $Maintainer: Rene Hussong$
00032 // $Authors: Rene Hussong$
00033 // --------------------------------------------------------------------------
00034 
00035 #ifndef OPENMS_TRANSFORMATIONS_FEATUREFINDER_ISOTOPEWAVELETCONSTANTS_H
00036 #define OPENMS_TRANSFORMATIONS_FEATUREFINDER_ISOTOPEWAVELETCONSTANTS_H
00037 
00038 namespace OpenMS
00039 {
00040   //We cannot define these constants as extern variable because of the cuda interface
00041   namespace Constants
00042   {
00043 #undef OPENMS_DEBUG_ISOTOPE_WAVELET
00044 
00045     const unsigned int DEFAULT_NUM_OF_INTERPOLATION_POINTS = 3;
00046 
00047     const double MASS_EPSILON = 1e-4f;
00048 
00049     const double MARR_WAVELET_CUTOFF = 4.f;
00050 
00051     const double PEPTIDE_MASS_RULE_FACTOR = 0.000507f;
00052     const   double PEPTIDE_MASS_RULE_BOUND =    1. / PEPTIDE_MASS_RULE_FACTOR;
00053     const double PEPTIDE_MASS_RULE_THEO_PPM_BOUND = 200;
00054 
00055     //exact
00056     const double IW_NEUTRON_MASS = 1.00866491578f;
00057     const double IW_HALF_NEUTRON_MASS = 0.5043325f;
00058     const double IW_QUARTER_NEUTRON_MASS = 0.252166228f;
00059     const double WAVELET_PERIODICITY = 6.229209734f;
00060 
00061     //according to Horn et al. (2000)
00062     /*const double IW_NEUTRON_MASS = 1.00235f;
00063     const double IW_HALF_NEUTRON_MASS = 0.501175f;
00064     const double IW_QUARTER_NEUTRON_MASS = 0.2505875f;
00065     const double WAVELET_PERIODICITY = 6.268454439f;*/
00066 
00067 
00068     const double ONEOLOG2E = 0.6931471806f;
00069 
00070     const double IW_PROTON_MASS = 1.00727646688f;
00071 
00072     //Linear Fit (standard)
00073     const double LAMBDA_L_0 = 0.120398590399013419f;
00074     const double LAMBDA_L_1 = 0.635926795694698589e-3f;
00075 
00076     const double CUT_LAMBDA_Q_0_A = 1.9498e+00f;
00077     const double CUT_LAMBDA_Q_0_B = 2.4244e-03f;
00078     const double CUT_LAMBDA_Q_0_C = -2.4183e-07f;
00079     const double CUT_LAMBDA_Q_1_A = 3.6870e+00f;
00080     const double CUT_LAMBDA_Q_1_B = 1.1561e-03f;
00081     const double CUT_LAMBDA_Q_1_C = -1.0329e-08f;
00082     const double CUT_LAMBDA_L_2_A = 5.7661e+00f;
00083     const double CUT_LAMBDA_L_2_B = 8.6301e-04f;
00084     const double CUT_LAMBDA_BREAK_0_1 = 2739.4f;
00085     const double CUT_LAMBDA_BREAK_1_2 = 1.4187e+04f;
00086 
00087     const int SHIFT23 = (1 << 23);
00088     const double SHIFT23_00 = (1.0 / (1 << 23));
00089     const double LOG_CONST = 0.346607f;
00090     const double POW_CONST = 0.33971f;
00091 
00092     const int CUDA_INIT_SUCCESS = 1;
00093     const int CUDA_INIT_FAIL = -1;
00094 
00095     const int CUDA_BLOCKS_PER_GRID_MAX = 65535;
00096     const int CUDA_BLOCK_SIZE_MAX = 256;    //limited due to the shared memory
00097     const int CUDA_EXTENDED_BLOCK_SIZE_MAX = 2039;
00098     const int CUDA_TEXTURE_THREAD_LIMIT = 384;    //limited due to the number of used registers
00099 
00100     const int CUDA_ELEMENTS_SORT = 512;
00101     const int CUDA_THREADS_SORT =  (CUDA_ELEMENTS_SORT >> 2);
00102     const int CUDA_SORT_NUM = 0xFFFFFE00;
00103     const int CUDA_ELEMENTS_MERGE = 1024;
00104     const int CUDA_MERGE_NUM = 0xFFFFFC00;
00105     const int CUDA_THREADS_MERGE = (CUDA_ELEMENTS_MERGE >> 2);
00106     const int CUDA_ELEMENTS_GL = 2;
00107     const int CUDA_THREADS_GL = 256;
00108     const int CUDA_MIN_SORT_SIZE = CUDA_ELEMENTS_SORT;
00109 
00110     const int TBB_NUM_OF_GPU_DEVICES = 2;
00111 
00112 #define CUDA_CHECK_ERROR
00113   }
00114 }
00115 
00116 #endif

OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:40 using doxygen 1.7.1