#include <OpenMS/IONMOBILITY/IMTypes.h>
|
| static constexpr double | DRIFTTIME_NOT_SET = -1.0 |
| | If drift time for a spectrum is unavailable (i.e. not an IM spectrum), it will have this value.
|
| |
| static constexpr double | N2_BUFFER_GAS_MASS = 28.0 |
| |
◆ ccsToOneOverK0()
| static double ccsToOneOverK0 |
( |
double |
ccs, |
|
|
double |
mz, |
|
|
int |
charge, |
|
|
double |
buffer_gas_mass = N2_BUFFER_GAS_MASS |
|
) |
| |
|
static |
Inverse of oneOverK0ToCCS - convert a collision cross section (CCS) back to reduced inverse ion mobility (1/K0).
- Parameters
-
| [in] | ccs | Collision cross section in square Angstrom (Angstrom^2); must be > 0. |
| [in] | mz | Precursor m/z of the ion; must be > 0. |
| [in] | charge | Precursor charge; the sign is ignored (|charge| is used) and it must be non-zero. |
| [in] | buffer_gas_mass | Drift-gas mass in Da; defaults to N2 (N2_BUFFER_GAS_MASS). |
- Returns
- Reduced inverse ion mobility 1/K0 in V*s/cm^2.
- Exceptions
-
◆ determineIMFormat() [1/2]
Checks only spectra of the given MS level for their IM format and returns the common type. If no spectra of ms_level exist or none have IM data, IMFormat::NONE is returned.
- Exceptions
-
◆ determineIMFormat() [2/2]
Checks for existence of a single driftTime (using spec.getDriftTime()) or an ion-mobility float data array (using spec.hasIMData())
If neither is found, IMFormat::NONE is returned. If a single drift time (== IMFormat::IM_SPECTRUM) is found, but no unit, a warning is issued.
- Exceptions
-
◆ fromIMUnit()
◆ oneOverK0ToCCS()
| static double oneOverK0ToCCS |
( |
double |
one_over_k0, |
|
|
double |
mz, |
|
|
int |
charge, |
|
|
double |
buffer_gas_mass = N2_BUFFER_GAS_MASS |
|
) |
| |
|
static |
Convert a reduced inverse ion mobility (1/K0) to a collision cross section (CCS) via the Mason-Schamp relation.
Uses the conventional single-temperature form CCS = (C * |charge| / sqrt(mu)) * (1/K0) with the Bruker calibration constant C = 1059.62245 (validated against alphatims and MaxQuant CCS values for an N2 drift gas at the usual calibration temperature). mu is the ion-gas reduced mass mu = (m_ion * m_gas) / (m_ion + m_gas), with the ion mass approximated as m_ion = mz * |charge|.
- Parameters
-
| [in] | one_over_k0 | Reduced inverse ion mobility 1/K0 in V*s/cm^2; must be > 0. |
| [in] | mz | Precursor m/z of the ion; must be > 0. |
| [in] | charge | Precursor charge; the sign is ignored (|charge| is used) and it must be non-zero. |
| [in] | buffer_gas_mass | Drift-gas mass in Da; defaults to N2 (N2_BUFFER_GAS_MASS). |
- Returns
- Collision cross section in square Angstrom (Angstrom^2).
- Exceptions
-
◆ DRIFTTIME_NOT_SET
| constexpr double DRIFTTIME_NOT_SET = -1.0 |
|
inlinestaticconstexpr |
If drift time for a spectrum is unavailable (i.e. not an IM spectrum), it will have this value.
◆ N2_BUFFER_GAS_MASS
| constexpr double N2_BUFFER_GAS_MASS = 28.0 |
|
inlinestaticconstexpr |
Mass of N2 (the most common drift/buffer gas) in Da; default buffer gas for the CCS conversions below. The rounded value 28.0 is used (rather than 28.006148) to match the calibration constant below, which was validated against the Bruker/alphatims and MaxQuant CCS values.