96     inline const std::vector<double> & 
getML1s()
 const {
return ml1s_; }
 
   98     inline void setML1s(
const std::vector<double> & ml1s)
 
  104     inline const std::vector<double> & 
getML2s()
 const {
return ml2s_; }
 
  106     inline void setML2s(
const std::vector<double> & ml2s)
 
  112     inline const std::vector<double> & 
getML3s()
 const {
return ml3s_; }
 
  114     inline void setML3s(
const std::vector<double> & ml3s)
 
  128     std::map<double, std::vector<double> > 
errors_;
 
  169                       std::vector<std::vector<unsigned int> > & monoiso_peaks, 
 
  170                       std::vector<unsigned int> & obs_masses, 
 
  171                       std::vector<double> & exp_masses, 
 
  175     inline double mQ_(
double ft, 
unsigned int spec)
 
  177       return coeff_quad_fit_[3 * spec] + ft * coeff_quad_fit_[3 * spec + 1] + ft * ft * coeff_quad_fit_[3 * spec + 2];
 
  183       return a_ + ft * b_ + ft * ft * c_;
 
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:93
 
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:80
 
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:55
 
This class implements an external calibration for TOF data using external calibrant spectra.
Definition: TOFCalibration.h:69
 
std::vector< double > ml1s_
calibration constants from the instrument needed for the conversion of the calibrant spectra
Definition: TOFCalibration.h:137
 
void setML1s(const std::vector< double > &ml1s)
mutable access to the first calibration constant
Definition: TOFCalibration.h:98
 
std::map< double, std::vector< double > > errors_
error in ppm after quadratic fit
Definition: TOFCalibration.h:128
 
double mQ_(double ft, unsigned int spec)
Calculate the mass value for a given flight time using the coefficients of the quadratic fit in a spe...
Definition: TOFCalibration.h:175
 
~TOFCalibration() override
Destructor.
 
const std::vector< double > & getML2s() const
Non-mutable access to the second calibration constant.
Definition: TOFCalibration.h:104
 
std::vector< double > ml3s_
Definition: TOFCalibration.h:139
 
std::vector< double > error_medians_
median errors
Definition: TOFCalibration.h:131
 
void pickAndCalibrate(PeakMap &calib_spectra, PeakMap &exp, std::vector< double > &exp_masses)
 
PeakMap calib_peaks_ft_
the calibrant spectra still using flight times instead of m/z-values
Definition: TOFCalibration.h:121
 
void averageCoefficients_()
Average the coefficients of the quadratic fit.
 
void getMonoisotopicPeaks_(PeakMap &calib_peaks, std::vector< std::vector< unsigned int > > &monoiso_peaks)
determines the monoisotopic peaks
 
void matchMasses_(PeakMap &calib_peaks, std::vector< std::vector< unsigned int > > &monoiso_peaks, std::vector< unsigned int > &obs_masses, std::vector< double > &exp_masses, unsigned int idx)
determine the monoisotopic masses that have matching expected masses
 
TOFCalibration()
Default constructor.
 
void calibrate(PeakMap &calib_spectra, PeakMap &exp, std::vector< double > &exp_masses)
 
std::vector< double > exp_masses_
the expected calibrant masses
Definition: TOFCalibration.h:125
 
std::vector< double > coeff_quad_fit_
all coefficients of the quadratic fit
Definition: TOFCalibration.h:142
 
double mQAv_(double ft)
Calculate the mass value for a given flight time using the averaged coefficients of the quadratic fit...
Definition: TOFCalibration.h:181
 
void averageErrors_()
Calculate the average errors of the reference masses over all scans.
 
void setML3s(const std::vector< double > &ml3s)
mutable access to the third calibration constant
Definition: TOFCalibration.h:114
 
void applyTOFConversion_(PeakMap &calib_spectra)
Applies the conversion from TOF to m/z-values to all peaks.
 
void calculateCalibCoeffs_(PeakMap &calib_peaks_ft)
Calculates the coefficients of the quadratic fit used for external calibration.
 
std::vector< double > calib_masses_
Definition: TOFCalibration.h:134
 
void setML2s(const std::vector< double > &ml2s)
mutable access to the second calibration constant
Definition: TOFCalibration.h:106
 
const std::vector< double > & getML1s() const
Non-mutable access to the first calibration constant.
Definition: TOFCalibration.h:96
 
std::vector< double > ml2s_
Definition: TOFCalibration.h:138
 
double a_
mean coefficients
Definition: TOFCalibration.h:145
 
const std::vector< double > & getML3s() const
Non-mutable access to the third calibration constant.
Definition: TOFCalibration.h:112
 
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47