81 SIZE_OF_ACTIVATIONMETHOD
84 static const std::string NamesOfActivationMethod[
static_cast<size_t>(ActivationMethod::SIZE_OF_ACTIVATIONMETHOD)];
85 static const std::string NamesOfActivationMethodShort[
static_cast<size_t>(ActivationMethod::SIZE_OF_ACTIVATIONMETHOD)];
219 (c == 0) ? c = 2 : c = charge_;
220 return getMZ() * c - c * Constants::PROTON_MASS_U;
226 double activation_energy_{};
227 double window_low_{};
229 double drift_time_{-1};
230 double drift_window_low_{};
231 double drift_window_up_{};
247 std::size_t seed = std::hash<OpenMS::Peak1D>{}(p);
253 for (
const auto& method : p.getActivationMethods())
273 for (
const auto& charge : p.getPossibleChargeStates())
Representation of controlled vocabulary term list.
Definition CVTermList.h:29
A 1-dimensional raw data point or peak.
Definition Peak1D.h:30
Precursor meta information.
Definition Precursor.h:37
std::vector< Int > & getPossibleChargeStates()
Mutable access to possible charge states.
void setActivationEnergy(double activation_energy)
sets the activation energy (in electronvolt)
Precursor(const Precursor &)=default
Copy constructor.
double getIsolationWindowLowerOffset() const
Returns the lower offset from the target m/z.
StringList getActivationMethodsAsString() const
Returns the full names (e.g., "Collision-induced dissociation") of the activation methods set on this...
double getDriftTimeWindowUpperOffset() const
Returns the upper offset from the target ion mobility in milliseconds.
void setActivationMethods(const std::set< ActivationMethod > &activation_methods)
sets the activation methods
void setIsolationWindowUpperOffset(double bound)
sets the upper offset from the target m/z
bool operator==(const Precursor &rhs) const
Equality operator.
Precursor()=default
Constructor.
Precursor(Precursor &&) noexcept
Move constructor.
std::vector< Int > possible_charge_states_
Definition Precursor.h:234
void setDriftTime(double drift_time)
sets the ion mobility drift time in milliseconds
StringList getActivationMethodsAsShortString() const
Returns the abbreviations (e.g., "CID") of the activation methods set on this instance.
void setDriftTimeUnit(DriftTimeUnit dt)
Sets the ion mobility drift time unit.
static StringList getAllShortNamesOfActivationMethods()
returns all activation method abbreviations (e.g., "CID") known to OpenMS
Int getCharge() const
Non-mutable access to the charge.
void setDriftTimeWindowUpperOffset(double drift_time)
sets the upper offset from the target ion mobility
bool operator!=(const Precursor &rhs) const
Equality operator.
double getIsolationWindowUpperOffset() const
Returns the upper offset from the target m/z.
DriftTimeUnit getDriftTimeUnit() const
Returns the ion mobility drift time unit.
static StringList getAllNamesOfActivationMethods()
returns all activation method full names (e.g., "Collision-induced dissociation") known to OpenMS
double getDriftTimeWindowLowerOffset() const
Returns the lower offset from the target ion mobility in milliseconds.
static const std::string & activationMethodToShortString(ActivationMethod m)
void setDriftTimeWindowLowerOffset(double drift_time)
sets the lower offset from the target ion mobility
std::set< ActivationMethod > activation_methods_
Definition Precursor.h:225
double getUnchargedMass() const
Returns the uncharged mass of the precursor, if charge is unknown, i.e. 0, our best guess is doubly c...
Definition Precursor.h:216
const std::vector< Int > & getPossibleChargeStates() const
Non-mutable access to possible charge states.
void setIsolationWindowLowerOffset(double bound)
sets the lower offset from the target m/z
double getActivationEnergy() const
returns the activation energy (in electronvolt)
void setCharge(Int charge)
Mutable access to the charge.
static ActivationMethod toActivationMethod(const std::string &name)
const std::set< ActivationMethod > & getActivationMethods() const
returns a const reference to the activation methods
std::set< ActivationMethod > & getActivationMethods()
returns a mutable reference to the activation methods
static const std::string & activationMethodToString(ActivationMethod m)
ActivationMethod
Method of activation.
Definition Precursor.h:61
double getDriftTime() const
Returns the ion mobility drift time in milliseconds (-1 means it is not set)
void setPossibleChargeStates(const std::vector< Int > &possible_charge_states)
Sets the possible charge states.
int Int
Signed integer type.
Definition Types.h:72
std::vector< String > StringList
Vector of String.
Definition ListUtils.h:44
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::size_t hash_int(T value) noexcept
Hash for an integer type.
Definition HashUtils.h:107
DriftTimeUnit
Drift time unit for ion mobility.
Definition IMTypes.h:23
void hash_combine(std::size_t &seed, std::size_t value) noexcept
Combine a hash value with additional data using golden ratio mixing.
Definition HashUtils.h:87
std::size_t hash_float(T value) noexcept
Hash for a floating point type (float or double).
Definition HashUtils.h:142
std::size_t operator()(const OpenMS::Precursor &p) const noexcept
Definition Precursor.h:244