12#include <OpenMS/OpenMSConfig.h>
93 inline static constexpr double DRIFTTIME_NOT_SET = -1.0;
static DIM_UNIT fromIMUnit(const DriftTimeUnit from)
static IMFormat determineIMFormat(const MSSpectrum &spec)
Checks for existence of a single driftTime (using spec.getDriftTime()) or an ion-mobility float data ...
static IMFormat determineIMFormat(const MSExperiment &exp, int ms_level)
In-Memory representation of a mass spectrometry run.
Definition MSExperiment.h:49
The representation of a 1D spectrum.
Definition MSSpectrum.h:44
@ UNKNOWN
Unknown or unrecognized ion type.
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
IMFormat
Definition IMTypes.h:47
@ IM_SPECTRUM
conventional spectrum with one precursor IM value (i.e. has one IM annotation per spectrum via getDri...
@ IM_PEAK
full TIMS frame / per-scan IM-resolved data: ion mobility is annotated per peak in a float data array
const std::string & imPeakTypeToString(IMPeakType im_peak_type)
converts an IMPeakType to a string
DriftTimeUnit
Drift time unit for ion mobility.
Definition IMTypes.h:23
@ CCS
collisional cross section (square angstrom)
@ MILLISECOND
milliseconds
@ VSSC
volt-second per square centimeter (i.e. 1/K_0)
@ FAIMS_COMPENSATION_VOLTAGE
compensation voltage
const std::string & imFormatToString(const IMFormat value)
IMPeakType
Definition IMTypes.h:67
@ IM_CENTROIDED
IM data after centroiding in the IM dimension.
@ IM_PROFILE
raw/unprocessed IM data (e.g. full TIMS frame before IM centroiding)
IMFormat toIMFormat(const std::string &IM_format)
const std::string NamesOfIMFormat[(size_t) IMFormat::SIZE_OF_IMFORMAT]
Names of IMFormat.
const std::string & driftTimeUnitToString(const DriftTimeUnit value)
const std::string NamesOfDriftTimeUnit[(size_t) DriftTimeUnit::SIZE_OF_DRIFTTIMEUNIT]
Names of IM Units. Should be usable as axis annotation.
DriftTimeUnit toDriftTimeUnit(const std::string &dtu_string)
const std::string NamesOfIMPeakType[(size_t) IMPeakType::SIZE_OF_IMPEAKTYPE]
Names of IMPeakType entries.
DIM_UNIT
Definition CommonEnums.h:20
IMPeakType toIMPeakType(const std::string &im_peak_type)
converts a string to IMPeakType