OpenMS  2.4.0
IonDetector.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 
38 
39 namespace OpenMS
40 {
46  class OPENMS_DLLAPI IonDetector :
47  public MetaInfoInterface
48  {
49 public:
51  enum Type
52  {
75  SIZE_OF_TYPE
76  };
78  static const std::string NamesOfType[SIZE_OF_TYPE];
79 
82  {
85  ADC,
86  TDC,
88  SIZE_OF_ACQUISITIONMODE
89  };
91  static const std::string NamesOfAcquisitionMode[SIZE_OF_ACQUISITIONMODE];
92 
94  IonDetector();
96  IonDetector(const IonDetector & source);
98  ~IonDetector();
99 
101  IonDetector & operator=(const IonDetector & source);
102 
104  bool operator==(const IonDetector & rhs) const;
106  bool operator!=(const IonDetector & rhs) const;
107 
109  Type getType() const;
111  void setType(Type type);
112 
114  AcquisitionMode getAcquisitionMode() const;
116  void setAcquisitionMode(AcquisitionMode acquisition_mode);
117 
119  double getResolution() const;
121  void setResolution(double resolution);
122 
124  double getADCSamplingFrequency() const;
126  void setADCSamplingFrequency(double ADC_sampling_frequency);
127 
138  Int getOrder() const;
140  void setOrder(Int order);
141 
142 protected:
145  double resolution_;
148 
149  };
150 } // namespace OpenMS
151 
OpenMS::IonDetector::PHOTODIODEARRAYDETECTOR
@ PHOTODIODEARRAYDETECTOR
photodiode array detector
Definition: IonDetector.h:72
OpenMS::IonDetector::ADC
@ ADC
Analog-digital converter.
Definition: IonDetector.h:85
OpenMS::IonDetector::ADC_sampling_frequency_
double ADC_sampling_frequency_
Definition: IonDetector.h:146
OpenMS::IonDetector::INDUCTIVEDETECTOR
@ INDUCTIVEDETECTOR
inductive detector
Definition: IonDetector.h:73
OpenMS::IonDetector::FARADAYCUP
@ FARADAYCUP
Faraday cup.
Definition: IonDetector.h:57
OpenMS::IonDetector::TYPENULL
@ TYPENULL
Unknown.
Definition: IonDetector.h:53
OpenMS::IonDetector::acquisition_mode_
AcquisitionMode acquisition_mode_
Definition: IonDetector.h:144
OpenMS::IonDetector::ELECTRONMULTIPLIERTUBE
@ ELECTRONMULTIPLIERTUBE
electron multiplier tube
Definition: IonDetector.h:74
OpenMS::IonDetector::PHOTOMULTIPLIER
@ PHOTOMULTIPLIER
Photo multiplier.
Definition: IonDetector.h:55
OpenMS::IonDetector::Type
Type
Detector type.
Definition: IonDetector.h:51
KDTree::operator!=
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
OpenMS::IonDetector::IONTOPHOTONDETECTOR
@ IONTOPHOTONDETECTOR
ion-to-photon detector
Definition: IonDetector.h:69
OpenMS::IonDetector::CONVERSIONDYNODEPHOTOMULTIPLIER
@ CONVERSIONDYNODEPHOTOMULTIPLIER
Conversion dynode photo multiplier.
Definition: IonDetector.h:59
OpenMS::IonDetector::resolution_
double resolution_
Definition: IonDetector.h:145
OpenMS::IonDetector::ACQMODENULL
@ ACQMODENULL
Unknown.
Definition: IonDetector.h:83
OpenMS::IonDetector::MICROCHANNELPLATEDETECTOR
@ MICROCHANNELPLATEDETECTOR
microchannel plate detector
Definition: IonDetector.h:64
OpenMS::IonDetector::TRANSIENTRECORDER
@ TRANSIENTRECORDER
Transient recorder.
Definition: IonDetector.h:87
OpenMS::IonDetector::CONVERSIONDYNODE
@ CONVERSIONDYNODE
conversion dynode
Definition: IonDetector.h:66
OpenMS::IonDetector::order_
Int order_
Definition: IonDetector.h:147
OpenMS::Int
int Int
Signed integer type.
Definition: Types.h:102
OpenMS
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
OpenMS::IonDetector::POINTCOLLECTOR
@ POINTCOLLECTOR
point collector
Definition: IonDetector.h:70
OpenMS::MetaInfoInterface
Interface for classes that can store arbitrary meta information (Type-Name-Value tuples).
Definition: MetaInfoInterface.h:55
OpenMS::IonDetector::ELECTRONMULTIPLIER
@ ELECTRONMULTIPLIER
Electron multiplier.
Definition: IonDetector.h:54
OpenMS::IonDetector::PULSECOUNTING
@ PULSECOUNTING
Pulse counting.
Definition: IonDetector.h:84
OpenMS::IonDetector::CHANNELTRON
@ CHANNELTRON
channeltron
Definition: IonDetector.h:62
OpenMS::IonDetector::type_
Type type_
Definition: IonDetector.h:143
OpenMS::IonDetector::FOCALPLANECOLLECTOR
@ FOCALPLANECOLLECTOR
focal plane collector
Definition: IonDetector.h:68
OpenMS::IonDetector::TDC
@ TDC
Time-digital converter.
Definition: IonDetector.h:86
OpenMS::IonDetector::FOCALPLANEARRAY
@ FOCALPLANEARRAY
Focal plane array.
Definition: IonDetector.h:56
KDTree::operator==
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
OpenMS::IonDetector::CHANNELELECTRONMULTIPLIER
@ CHANNELELECTRONMULTIPLIER
Channel electron multiplier.
Definition: IonDetector.h:61
OpenMS::IonDetector::CONVERSIONDYNODEELECTRONMULTIPLIER
@ CONVERSIONDYNODEELECTRONMULTIPLIER
Conversion dynode electron multiplier.
Definition: IonDetector.h:58
OpenMS::IonDetector::POSTACCELERATIONDETECTOR
@ POSTACCELERATIONDETECTOR
postacceleration detector
Definition: IonDetector.h:71
MetaInfoInterface.h
OpenMS::IonDetector::MULTICOLLECTOR
@ MULTICOLLECTOR
Multi-collector.
Definition: IonDetector.h:60
OpenMS::IonDetector::DALYDETECTOR
@ DALYDETECTOR
daly detector
Definition: IonDetector.h:63
OpenMS::IonDetector
Description of a ion detector (part of a MS Instrument)
Definition: IonDetector.h:46
OpenMS::IonDetector::AcquisitionMode
AcquisitionMode
Acquisition mode.
Definition: IonDetector.h:81
OpenMS::IonDetector::ARRAYDETECTOR
@ ARRAYDETECTOR
array detector
Definition: IonDetector.h:65
OpenMS::IonDetector::DYNODE
@ DYNODE
dynode
Definition: IonDetector.h:67