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:
46
48 static const std::string NamesOfScanMode[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
@ MASSSPECTRUM
general spectrum type
Definition InstrumentSettings.h:30
@ SRM
Selected reaction monitoring scan Synonyms: 'Multiple reaction monitoring scan',...
Definition InstrumentSettings.h:34
@ EMR
Electromagnetic radiation scan Synonyms: 'EMR spectrum'.
Definition InstrumentSettings.h:41
@ TDF
Time-delayed fragmentation scan.
Definition InstrumentSettings.h:40
@ EMISSION
Emission scan.
Definition InstrumentSettings.h:42
@ UNKNOWN
Unknown scan method.
Definition InstrumentSettings.h:29
@ PRECURSOR
Precursor ion scan.
Definition InstrumentSettings.h:38
@ MS1SPECTRUM
full scan mass spectrum, is a "mass spectrum" Synonyms: 'full spectrum', 'Q1 spectrum',...
Definition InstrumentSettings.h:31
@ CNG
Constant neutral gain scan Synonyms: 'CNG scan'.
Definition InstrumentSettings.h:36
@ ABSORPTION
Absorption scan.
Definition InstrumentSettings.h:43
@ EMC
Enhanced multiply charged scan.
Definition InstrumentSettings.h:39
@ SIM
Selected ion monitoring scan Synonyms: 'Multiple ion monitoring scan', 'SIM scan',...
Definition InstrumentSettings.h:33
@ MSNSPECTRUM
MS2+ mass spectrum, is a "mass spectrum".
Definition InstrumentSettings.h:32
@ CRM
Consecutive reaction monitoring scan Synonyms: 'CRM scan'.
Definition InstrumentSettings.h:35
@ CNL
Constant neutral loss scan Synonyms: 'CNG scan'.
Definition InstrumentSettings.h:37
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
std::vector< String > StringList
Vector of String.
Definition ListUtils.h:44
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19