| 726 | } |
| 727 | |
| 728 | std::pair<Size, DriftTimeUnit> MSSpectrum::getIMData() const |
| 729 | { |
| 730 | Size index; |
| 731 | DriftTimeUnit unit; |
| 732 | bool has_IM = getIonMobilityArray__(this->getFloatDataArrays(), index, unit); |
| 733 | |
| 734 | if (!has_IM) |
| 735 | { |
| 736 | throw Exception::MissingInformation(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, |
| 737 | "Cannot get ion mobility data. No float array with the correct name available." |
| 738 | " Number of float arrays: " + |
| 739 | String(this->getFloatDataArrays().size())); |
| 740 | } |
| 741 | |
| 742 | return {index, unit }; |
| 743 | } |
| 744 | |
| 745 | } // namespace OpenMS |
no test coverage detected