Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049 #ifndef OPENMS_TRANSFORMATIONS_FEATUREFINDER_SUPERHIRN_MSPEAK_H
00050 #define OPENMS_TRANSFORMATIONS_FEATUREFINDER_SUPERHIRN_MSPEAK_H
00051
00052 #include <string>
00053 #include <vector>
00054 #include <map>
00055
00056 #include <OpenMS/CONCEPT/Types.h>
00057 #include <OpenMS/TRANSFORMATIONS/FEATUREFINDER/SUPERHIRN/CentroidPeak.h>
00058
00059 namespace OpenMS
00060 {
00061
00062
00063
00064 class OPENMS_DLLAPI MSPeak
00065 {
00066
00068
00069
00070 double precursorMZ;
00071 double MZ;
00072 float INTENSITY;
00073 int SCAN;
00074 double TR;
00075 unsigned int CHRG;
00076 unsigned int NRISOTOPES;
00077 float SCORE;
00078
00079 std::string extraMSPeakInfo;
00080
00081
00082 bool precursorMass;
00083 int childScan;
00084
00085 double SignalToNoise;
00086 std::vector<CentroidPeak> ISOPEAKS;
00087
00088 private:
00089
00091
00092
00093 public:
00094
00095
00096 ~MSPeak();
00097
00098
00099 MSPeak(int, double, float);
00100 MSPeak();
00101 MSPeak(int, double, float, unsigned int, unsigned int, float, std::vector<CentroidPeak>);
00102 MSPeak(const MSPeak &);
00103 MSPeak(const MSPeak *);
00104
00106
00107 MSPeak & operator=(const MSPeak &);
00108 MSPeak & operator<=(const MSPeak &);
00109 MSPeak & operator>=(const MSPeak &);
00110 MSPeak & operator<(const MSPeak &);
00111 MSPeak & operator>(const MSPeak &);
00112
00113
00114 void show_info();
00115
00116
00117 void activateAsPrecursorPeak(int);
00118
00120
00121 bool checkIsotopeBelongingAndAdjustMass(double, double);
00122
00124
00125
00126
00127
00128 std::vector<CentroidPeak> & get_isotopic_peaks()
00129 {
00130 return ISOPEAKS;
00131 }
00132
00133 std::vector<CentroidPeak>::iterator get_isotopic_peaks_start()
00134 {
00135 return ISOPEAKS.begin();
00136 }
00137
00138 std::vector<CentroidPeak>::iterator get_isotopic_peaks_end()
00139 {
00140 return ISOPEAKS.end();
00141 }
00142
00143 void setExtraPeakInfo(std::string in)
00144 {
00145 extraMSPeakInfo = in;
00146 }
00147
00148 std::string getExtraPeakInfo()
00149 {
00150 return extraMSPeakInfo;
00151 }
00152
00153
00154 void setPrecursorMZ(double in)
00155 {
00156 precursorMZ = in;
00157 }
00158
00159 double getPrecursorMZ()
00160 {
00161 return precursorMZ;
00162 }
00163
00164
00165 void setPrecursorCHRG(int in)
00166 {
00167 CHRG = in;
00168 }
00169
00170 int getPrecursorCHRG()
00171 {
00172 return CHRG;
00173 }
00174
00175
00176 bool getPrecursorActivation()
00177 {
00178 return precursorMass;
00179 }
00180
00181 int get_Chrg()
00182 {
00183 return CHRG;
00184 }
00185
00186 void set_Chrg(int z)
00187 {
00188 CHRG = z;
00189 }
00190
00191 int get_Scan()
00192 {
00193 return SCAN;
00194 }
00195
00196 float get_intensity()
00197 {
00198 return INTENSITY;
00199 }
00200
00201 double get_MZ()
00202 {
00203 return MZ;
00204 }
00205
00206 int get_scan_number()
00207 {
00208 return SCAN;
00209 }
00210
00211 void set_retention_time(double IN)
00212 {
00213 TR = IN;
00214 }
00215
00216 double get_retention_time()
00217 {
00218 return TR;
00219 }
00220
00221 unsigned int get_charge_state()
00222 {
00223 return CHRG;
00224 }
00225
00226 unsigned int get_nr_isotopes()
00227 {
00228 return NRISOTOPES;
00229 }
00230
00231 float get_score()
00232 {
00233 return SCORE;
00234 }
00235
00236 double getSignalToNoise()
00237 {
00238 return SignalToNoise;
00239 }
00240
00241 void setSignalToNoise(double in)
00242 {
00243 SignalToNoise = in;
00244 }
00245
00246 };
00247
00248 }
00249
00250 #endif // OPENMS_TRANSFORMATIONS_FEATUREFINDER_SUPERHIRN_MSPEAK_H