Go to the documentation of this file.
24 #ifndef _CALIBRATIONPARAMETERS_HPP_
25 #define _CALIBRATIONPARAMETERS_HPP_
67 os <<
"(" << p.
A <<
"," << p.
B <<
")";
73 :
A(a),
B(b), instrumentModel(im)
79 if (frequency == 0)
throw std::runtime_error(
"[CalibrationParameters::mz()] Division by zero.\n");
82 A/frequency +
B/(frequency*frequency);
88 if (mz == 0)
throw std::runtime_error(
"[CalibrationParameters::frequency()] Division by zero.\n");
91 (
A+sqrt(
A*
A + 4*
B*mz))/(2*mz);
123 #endif // _CALIBRATIONPARAMETERS_HPP_