OpenMS
Loading...
Searching...
No Matches
InstrumentSettings.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Timo Sachsenberg $
6// $Authors: Marc Sturm $
7// --------------------------------------------------------------------------
8
9#pragma once
10
14
15namespace OpenMS
16{
22 class OPENMS_DLLAPI InstrumentSettings :
24 {
25public:
27 enum class ScanMode
28 {
29 UNKNOWN,
30 MASSSPECTRUM,
31 MS1SPECTRUM,
32 MSNSPECTRUM,
33 SIM,
34 SRM,
35 CRM,
36 CNG,
37 CNL,
38 PRECURSOR,
39 EMC,
40 TDF,
41 EMR,
42 EMISSION,
43 ABSORPTION,
44 SIZE_OF_SCANMODE
45 };
46
48 static const std::string NamesOfScanMode[static_cast<size_t>(ScanMode::SIZE_OF_SCANMODE)];
49
56
64 static const std::string& scanModeToString(ScanMode mode);
65
73 static ScanMode toScanMode(const std::string& name);
74
83
88
90 bool operator==(const InstrumentSettings & rhs) const;
92 bool operator!=(const InstrumentSettings & rhs) const;
93
97 void setScanMode(ScanMode scan_mode);
98
100 bool getZoomScan() const;
102 void setZoomScan(bool zoom_scan);
103
108
110 const std::vector<ScanWindow> & getScanWindows() const;
112 std::vector<ScanWindow> & getScanWindows();
114 void setScanWindows(std::vector<ScanWindow> scan_windows);
115
116protected:
120 std::vector<ScanWindow> scan_windows_;
121 };
122} // namespace OpenMS
123
Description of the settings a MS Instrument was run with.
Definition InstrumentSettings.h:24
std::vector< ScanWindow > & getScanWindows()
returns a mutable reference to the m/z scan windows
ScanMode getScanMode() const
returns the scan mode
void setPolarity(IonSource::Polarity polarity)
sets the polarity
IonSource::Polarity polarity_
Definition InstrumentSettings.h:119
bool zoom_scan_
Definition InstrumentSettings.h:118
InstrumentSettings()
Constructor.
IonSource::Polarity getPolarity() const
returns the polarity
bool operator==(const InstrumentSettings &rhs) const
Equality operator.
InstrumentSettings & operator=(InstrumentSettings &&) &=default
Move assignment operator.
InstrumentSettings(InstrumentSettings &&)=default
Move constructor.
const std::vector< ScanWindow > & getScanWindows() const
returns a const reference to the m/z scan windows
void setZoomScan(bool zoom_scan)
sets if this scan is a zoom (enhanced resolution) scan
InstrumentSettings & operator=(const InstrumentSettings &)=default
Assignment operator.
std::vector< ScanWindow > scan_windows_
Definition InstrumentSettings.h:120
static StringList getAllNamesOfScanMode()
Returns all scan mode names known to OpenMS.
static const std::string & scanModeToString(ScanMode mode)
Convert a ScanMode enum to its string representation.
bool operator!=(const InstrumentSettings &rhs) const
Equality operator.
ScanMode scan_mode_
Definition InstrumentSettings.h:117
void setScanWindows(std::vector< ScanWindow > scan_windows)
sets the m/z scan windows
~InstrumentSettings()
Destructor.
void setScanMode(ScanMode scan_mode)
sets the scan mode
InstrumentSettings(const InstrumentSettings &)=default
Copy constructor.
bool getZoomScan() const
return if this scan is a zoom (enhanced resolution) scan
ScanMode
scan mode
Definition InstrumentSettings.h:28
static ScanMode toScanMode(const std::string &name)
Convert a string to a ScanMode enum.
Polarity
Polarity of the ion source.
Definition IonSource.h:119
Interface for classes that can store arbitrary meta information (Type-Name-Value tuples).
Definition MetaInfoInterface.h:36
@ UNKNOWN
Unknown or unrecognized ion type.
@ PRECURSOR
Precursor ion (p)
std::vector< String > StringList
Vector of String.
Definition ListUtils.h:44
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19