OpenMS  2.4.0
MassAnalyzer.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // OpenMS -- Open-Source Mass Spectrometry
3 // --------------------------------------------------------------------------
4 // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
5 // ETH Zurich, and Freie Universitaet Berlin 2002-2018.
6 //
7 // This software is released under a three-clause BSD license:
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright
11 // notice, this list of conditions and the following disclaimer in the
12 // documentation and/or other materials provided with the distribution.
13 // * Neither the name of any author or any participating institution
14 // may be used to endorse or promote products derived from this software
15 // without specific prior written permission.
16 // For a full list of authors, refer to the file AUTHORS.
17 // --------------------------------------------------------------------------
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 // ARE DISCLAIMED. IN NO EVENT SHALL ANY OF THE AUTHORS OR THE CONTRIBUTING
22 // INSTITUTIONS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
27 // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28 // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 //
30 // --------------------------------------------------------------------------
31 // $Maintainer: Timo Sachsenberg $
32 // $Authors: Marc Sturm $
33 // --------------------------------------------------------------------------
34 
35 #pragma once
36 
37 #include <OpenMS/CONCEPT/Types.h>
39 
40 namespace OpenMS
41 {
47  class OPENMS_DLLAPI MassAnalyzer :
48  public MetaInfoInterface
49  {
50 public:
53  {
59  TOF,
63  ESA,
64  IT,
68  LIT,
69  SIZE_OF_ANALYZERTYPE
70  };
72  static const std::string NamesOfAnalyzerType[SIZE_OF_ANALYZERTYPE];
73 
80  {
82  FWHM,
85  SIZE_OF_RESOLUTIONMETHOD
86  };
88  static const std::string NamesOfResolutionMethod[SIZE_OF_RESOLUTIONMETHOD];
89 
92  {
96  SIZE_OF_RESOLUTIONTYPE
97  };
99  static const std::string NamesOfResolutionType[SIZE_OF_RESOLUTIONTYPE];
100 
103  {
105  UP,
107  SIZE_OF_SCANDIRECTION
108  };
110  static const std::string NamesOfScanDirection[SIZE_OF_SCANDIRECTION];
111 
113  enum ScanLaw
114  {
119  SIZE_OF_SCANLAW
120  };
122  static const std::string NamesOfScanLaw[SIZE_OF_SCANLAW];
123 
126  {
128  ON,
129  OFF,
131  SIZE_OF_REFLECTRONSTATE
132  };
134  static const std::string NamesOfReflectronState[SIZE_OF_REFLECTRONSTATE];
135 
137  MassAnalyzer();
139  MassAnalyzer(const MassAnalyzer & source);
141  ~MassAnalyzer();
142 
144  MassAnalyzer & operator=(const MassAnalyzer & source);
145 
147  bool operator==(const MassAnalyzer & rhs) const;
149  bool operator!=(const MassAnalyzer & rhs) const;
150 
152  AnalyzerType getType() const;
154  void setType(AnalyzerType type);
155 
157  ResolutionMethod getResolutionMethod() const;
159  void setResolutionMethod(ResolutionMethod resolution_method);
160 
162  ResolutionType getResolutionType() const;
164  void setResolutionType(ResolutionType resolution_type);
165 
167  ScanDirection getScanDirection() const;
169  void setScanDirection(ScanDirection scan_direction);
170 
172  ScanLaw getScanLaw() const;
174  void setScanLaw(ScanLaw scan_law);
175 
177  ReflectronState getReflectronState() const;
179  void setReflectronState(ReflectronState reflecton_state);
180 
186  double getResolution() const;
188  void setResolution(double resolution);
189 
191  double getAccuracy() const;
193  void setAccuracy(double accuracy);
194 
196  double getScanRate() const;
198  void setScanRate(double scan_rate);
199 
201  double getScanTime() const;
203  void setScanTime(double scan_time);
204 
206  double getTOFTotalPathLength() const;
208  void setTOFTotalPathLength(double TOF_total_path_length);
209 
211  double getIsolationWidth() const;
213  void setIsolationWidth(double isolation_width);
214 
216  Int getFinalMSExponent() const;
218  void setFinalMSExponent(Int final_MS_exponent);
219 
221  double getMagneticFieldStrength() const;
223  void setMagneticFieldStrength(double magnetic_field_strength);
224 
235  Int getOrder() const;
237  void setOrder(Int order);
238 
239 protected:
246  double resolution_;
247  double accuracy_;
248  double scan_rate_;
249  double scan_time_;
255  };
256 } // namespace OpenMS
257 
Unknown.
Definition: MassAnalyzer.h:93
Fourier transform ion cyclotron resonance mass spectrometer.
Definition: MassAnalyzer.h:61
Unknown.
Definition: MassAnalyzer.h:104
Off.
Definition: MassAnalyzer.h:129
double magnetic_field_strength_
Definition: MassAnalyzer.h:253
Ion storage.
Definition: MassAnalyzer.h:62
Electrostatic energy analyzer.
Definition: MassAnalyzer.h:63
Full width at half max.
Definition: MassAnalyzer.h:82
ResolutionMethod resolution_method_
Definition: MassAnalyzer.h:241
Unknown.
Definition: MassAnalyzer.h:81
double scan_rate_
Definition: MassAnalyzer.h:248
Linear.
Definition: MassAnalyzer.h:117
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
Quadrupole ion trap / Paul ion trap.
Definition: MassAnalyzer.h:56
ScanDirection
direction of scanning
Definition: MassAnalyzer.h:102
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
AnalyzerType type_
Definition: MassAnalyzer.h:240
ResolutionType
Resolution type.
Definition: MassAnalyzer.h:91
double accuracy_
Definition: MassAnalyzer.h:247
Time-of-flight.
Definition: MassAnalyzer.h:59
Baseline.
Definition: MassAnalyzer.h:84
Unknown.
Definition: MassAnalyzer.h:54
Cyclotron.
Definition: MassAnalyzer.h:66
ResolutionMethod
resolution method
Definition: MassAnalyzer.h:79
Up.
Definition: MassAnalyzer.h:105
Int final_MS_exponent_
Definition: MassAnalyzer.h:252
Linear ion trap.
Definition: MassAnalyzer.h:68
ReflectronState reflectron_state_
Definition: MassAnalyzer.h:245
double resolution_
Definition: MassAnalyzer.h:246
Orbitrap.
Definition: MassAnalyzer.h:67
Stored waveform inverse fourier transform.
Definition: MassAnalyzer.h:65
Proportional.
Definition: MassAnalyzer.h:95
On.
Definition: MassAnalyzer.h:128
ReflectronState
Reflectron state.
Definition: MassAnalyzer.h:125
ScanDirection scan_direction_
Definition: MassAnalyzer.h:243
Quadratic.
Definition: MassAnalyzer.h:118
Interface for classes that can store arbitrary meta information (Type-Name-Value tuples).
Definition: MetaInfoInterface.h:55
double TOF_total_path_length_
Definition: MassAnalyzer.h:250
Radial ejection linear ion trap.
Definition: MassAnalyzer.h:57
Unknown.
Definition: MassAnalyzer.h:115
ResolutionType resolution_type_
Definition: MassAnalyzer.h:242
Unknown.
Definition: MassAnalyzer.h:116
Constant.
Definition: MassAnalyzer.h:94
Down.
Definition: MassAnalyzer.h:106
double isolation_width_
Definition: MassAnalyzer.h:251
Magnetic sector.
Definition: MassAnalyzer.h:60
Ion trap.
Definition: MassAnalyzer.h:64
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
Ten percent valley.
Definition: MassAnalyzer.h:83
double scan_time_
Definition: MassAnalyzer.h:249
Axial ejection linear ion trap.
Definition: MassAnalyzer.h:58
AnalyzerType
analyzer type
Definition: MassAnalyzer.h:52
ScanLaw scan_law_
Definition: MassAnalyzer.h:244
ScanLaw
Scan law.
Definition: MassAnalyzer.h:113
int Int
Signed integer type.
Definition: Types.h:102
None.
Definition: MassAnalyzer.h:130
Description of a mass analyzer (part of a MS Instrument)
Definition: MassAnalyzer.h:47
Quadrupole.
Definition: MassAnalyzer.h:55
Int order_
Definition: MassAnalyzer.h:254
Unknown.
Definition: MassAnalyzer.h:127