OpenMS
AcqusHandler.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg $
6 // $Authors: Guillaume Belz $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
12 #include <map>
13 
14 namespace OpenMS
15 {
16  namespace Internal
17  {
26  class OPENMS_DLLAPI AcqusHandler
27  {
28 public:
39  explicit AcqusHandler(const String & filename);
40 
42  virtual ~AcqusHandler();
43 
45  double getPosition(Size index) const;
46 
48  String getParam(const String & param);
49 
51  Size getSize() const;
52 
53 private:
56 
58  std::map<String, String> params_;
59 
62  double dw_;
64  double ml1_;
65  double ml2_;
66  double ml3_;
69  };
70  } // namespace Internal
71 } // namespace OpenMS
72 
Read-only acqus File handler for XMass Analysis.
Definition: AcqusHandler.h:27
double ml1_
Definition: AcqusHandler.h:64
AcqusHandler(const String &filename)
Constructor with filename.
double dw_
Definition: AcqusHandler.h:62
Size getSize() const
Get size of spectrum.
AcqusHandler()
Private default constructor.
String getParam(const String &param)
Read param as string.
virtual ~AcqusHandler()
Destructor.
Size td_
Definition: AcqusHandler.h:67
double getPosition(Size index) const
Conversion from index to MZ ratio using internal calibration params.
Size delay_
Definition: AcqusHandler.h:63
double ml2_
Definition: AcqusHandler.h:65
double ml3_
Definition: AcqusHandler.h:66
std::map< String, String > params_
Map for params saving.
Definition: AcqusHandler.h:58
A more convenient string class.
Definition: String.h:34
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:101
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22