Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
CentroidData.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-2017.
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: Markus Mueller $
33 // --------------------------------------------------------------------------
34 //
35 /*
36  * CentroidData.h
37  * PeakDetection
38  *
39  * Created by Markus Mueller on 10/19/06.
40  *
41  * Ported to OpenMS by Florian Zeller, florian.zeller@bsse.ethz.ch
42  * December 2010
43  *
44  */
45 
46 #ifndef OPENMS_TRANSFORMATIONS_FEATUREFINDER_SUPERHIRN_CENTROIDDATA_H
47 #define OPENMS_TRANSFORMATIONS_FEATUREFINDER_SUPERHIRN_CENTROIDDATA_H
48 
49 #include <OpenMS/TRANSFORMATIONS/FEATUREFINDER/SUPERHIRN/SuperHirnConfig.h>
50 
51 #include <OpenMS/CONCEPT/Types.h>
52 
55 
56 #include <list>
57 #include <vector>
58 
59 #include <boost/shared_ptr.hpp>
60 
61 namespace OpenMS
62 {
63 
64  class SUPERHIRN_DLLAPI CentroidData
65  {
66 public:
67 
68  /*
69  static double sfMassTolPpm;
70  static double sfMassTolDa;
71  static double sfMinIntensity;
72  static double sfIntensityFloor;
73  */
74  // debugging parameters => used by other classes :( :( :(
75  /*
76  static bool MonoIsoDebugging;
77  static double DebugMonoIsoMassMin;
78  static double DebugMonoIsoMassMax;
79  */
80 
81  CentroidData(int, boost::shared_ptr<RawData>, bool);
82  CentroidData(int, boost::shared_ptr<RawData>, double, bool);
83  virtual ~CentroidData();
84 
85  void get(std::list<CentroidPeak> &);
86  void set(boost::shared_ptr<RawData>);
87  void set(std::vector<double> &, std::vector<double> &);
88 
89  void setWidth(int pWidth);
90 
91  int getWidth();
92 
93  void setNoise(double);
94  double getNoise();
95 
96  void removeNoise();
97 
98  bool getNextPeakGroup(std::list<CentroidPeak>::iterator &, std::list<CentroidPeak>::iterator &);
99  void resetPeakGroupIter();
100 
102 
103 protected:
104 
105  void calcCentroids(boost::shared_ptr<RawData>);
106 
108  double fNoise;
110  std::list<CentroidPeak> fCentroidPeaks;
111  std::list<CentroidPeak>::iterator fPeakGroupStart;
112  };
113 
114  std::ostream & operator<<(std::ostream &, CentroidData &);
115 
116 } // ns
117 
118 #endif // OPENMS_TRANSFORMATIONS_FEATUREFINDER_SUPERHIRN_CENTROIDDATA_H
std::list< CentroidPeak >::iterator fPeakGroupStart
Definition: CentroidData.h:111
Definition: CentroidData.h:64
double fScanRetentionTime
Definition: CentroidData.h:109
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
int fWindowWidth
Definition: CentroidData.h:107
double fNoise
Definition: CentroidData.h:108
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
bool centroidDataModus_
Definition: CentroidData.h:101
std::list< CentroidPeak > fCentroidPeaks
Definition: CentroidData.h:110

OpenMS / TOPP release 2.3.0 Documentation generated on Tue Jan 9 2018 18:21:59 using doxygen 1.8.13