00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef MS_MS1QUANT_CHARGE_STATE_HPP
00018 #define MS_MS1QUANT_CHARGE_STATE_HPP
00019
00020
00021 namespace matrix_science
00022 {
00023
00029 class ms_ms1quant_charge_state_body;
00030
00032
00035 class MS_MASCOTRESFILE_API ms_ms1quant_charge_state :
00036 public ms_handle
00037 {
00038 public:
00040 ms_ms1quant_charge_state();
00041
00043 ms_ms1quant_charge_state(const ms_ms1quant_charge_state_body & body);
00044
00045 #ifndef SWIG
00046 ms_ms1quant_charge_state_body * body();
00047 const ms_ms1quant_charge_state_body * body() const;
00048
00050 ms_ms1quant_charge_state(const double correctSppWidthMin,
00051 const double correctSppWidthMax,
00052 const double correctSppWidth,
00053 const double bucketWidth,
00054 const double maxAlignment,
00055 const double matchedRho,
00056 const double matchedFraction,
00057 const double totalIntensity,
00058 const std::map<int, double> & bucketAreas,
00059 const std::vector<double> & calcMzVar,
00060 const std::vector<int> & idx2Comp
00061
00062 );
00063 #endif
00064
00066 double getCorrectedMinSPPwidth() const;
00067
00069 double getCorrectedMaxSPPwidth() const;
00070
00072 double getCorrectedSPPwidth() const;
00073
00075 double getBucketWidth() const;
00076
00078 double getMaxAlignment() const;
00079
00081 double getMatchedRho() const;
00082
00084 double getMatchedFraction() const;
00085
00087 double getTotalIntensity() const;
00088
00090 int getNumberOfBuckets() const;
00091 #ifndef SWIG
00092
00093 bool getBucket(int index, unsigned & scanId, double & area) const;
00094 #else // SWIG Multiple return values
00095 bool getBucket(int index, unsigned & OUTPUT, double & OUTPUT) const;
00096 #endif
00097
00098
00100 void setCorrectedMinSPPwidth(double width);
00101
00103 void setCorrectedMaxSPPwidth(double width);
00104
00106 void setCorrectedSPPwidth(double width) ;
00107
00109 void setBucketWidth(double width);
00110
00112 void setMaxAlignment(double alignemnt);
00113
00115 void setMatchedRho(double rho);
00116
00118 void setMatchedFraction(double fraction);
00119
00121 void setTotalIntensity(double intensity);
00122
00124 std::vector<double> & getCalcMz();
00125
00127 const std::vector<double> & getCalcMz() const;
00128
00130 std::vector<int> & getIdx2Comp();
00131
00133 int getIdx2Comp(std::size_t index) const;
00134
00136 std::map<int, double> & getBucketAreas();
00137
00138
00139 };
00140
00142
00143
00144 }
00145
00146 #endif // MS_MS1QUANT_CHARGE_STATE_HPP
00147
00148