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-2013.
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: Florian Zeller $
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/CONCEPT/Types.h>
50 
53 
54 #include <list>
55 #include <vector>
56 
57 #include <boost/shared_ptr.hpp>
58 
59 namespace OpenMS
60 {
61 
62  class OPENMS_DLLAPI CentroidData
63  {
64 public:
65 
66  /*
67  static double sfMassTolPpm;
68  static double sfMassTolDa;
69  static double sfMinIntensity;
70  static double sfIntensityFloor;
71  */
72  // debugging parameters => used by other classes :( :( :(
73  /*
74  static bool MonoIsoDebugging;
75  static double DebugMonoIsoMassMin;
76  static double DebugMonoIsoMassMax;
77  */
78 
79  CentroidData(int, boost::shared_ptr<RawData>, bool);
80  CentroidData(int, boost::shared_ptr<RawData>, double, bool);
81  virtual ~CentroidData();
82 
83  void get(std::list<CentroidPeak> &);
84  void set(boost::shared_ptr<RawData>);
85  void set(std::vector<double> &, std::vector<double> &);
86 
87  void setWidth(int pWidth)
88  {
89  fWindowWidth = pWidth;
90  }
91 
92  int getWidth()
93  {
94  return fWindowWidth;
95  }
96 
97  void setNoise(double);
98  double getNoise()
99  {
100  return fNoise;
101  }
102 
103  void removeNoise();
104 
105  bool getNextPeakGroup(std::list<CentroidPeak>::iterator &, std::list<CentroidPeak>::iterator &);
106  void resetPeakGroupIter();
107 
109 
110 protected:
111 
112  void calcCentroids(boost::shared_ptr<RawData>);
113 
115  double fNoise;
117  std::list<CentroidPeak> fCentroidPeaks;
118  std::list<CentroidPeak>::iterator fPeakGroupStart;
119  };
120 
121  std::ostream & operator<<(std::ostream &, CentroidData &);
122 
123 } // ns
124 
125 #endif // OPENMS_TRANSFORMATIONS_FEATUREFINDER_SUPERHIRN_CENTROIDDATA_H
void setWidth(int pWidth)
Definition: CentroidData.h:87
std::list< CentroidPeak >::iterator fPeakGroupStart
Definition: CentroidData.h:118
double getNoise()
Definition: CentroidData.h:98
Definition: CentroidData.h:62
double fScanRetentionTime
Definition: CentroidData.h:116
std::ostream & operator<<(std::ostream &os, const ItraqQuantifier::ItraqQuantifierStats &stats)
int fWindowWidth
Definition: CentroidData.h:114
double fNoise
Definition: CentroidData.h:115
bool centroidDataModus_
Definition: CentroidData.h:108
std::list< CentroidPeak > fCentroidPeaks
Definition: CentroidData.h:117
int getWidth()
Definition: CentroidData.h:92

OpenMS / TOPP release 1.11.1 Documentation generated on Thu Nov 14 2013 11:19:11 using doxygen 1.8.5