OpenMS
IonDetector.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: Marc Sturm $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
12 
13 namespace OpenMS
14 {
20  class OPENMS_DLLAPI IonDetector :
21  public MetaInfoInterface
22  {
23 public:
25  enum Type
26  {
49  SIZE_OF_TYPE
50  };
52  static const std::string NamesOfType[SIZE_OF_TYPE];
53 
56  {
59  ADC,
60  TDC,
62  SIZE_OF_ACQUISITIONMODE
63  };
65  static const std::string NamesOfAcquisitionMode[SIZE_OF_ACQUISITIONMODE];
66 
70  IonDetector(const IonDetector &) = default;
72  IonDetector(IonDetector&&) = default;
75 
77  IonDetector & operator=(const IonDetector &) = default;
80 
82  bool operator==(const IonDetector & rhs) const;
84  bool operator!=(const IonDetector & rhs) const;
85 
87  Type getType() const;
89  void setType(Type type);
90 
94  void setAcquisitionMode(AcquisitionMode acquisition_mode);
95 
97  double getResolution() const;
99  void setResolution(double resolution);
100 
102  double getADCSamplingFrequency() const;
104  void setADCSamplingFrequency(double ADC_sampling_frequency);
105 
116  Int getOrder() const;
118  void setOrder(Int order);
119 
120 protected:
123  double resolution_;
126 
127  };
128 } // namespace OpenMS
129 
Description of a ion detector (part of a MS Instrument)
Definition: IonDetector.h:22
bool operator!=(const IonDetector &rhs) const
Equality operator.
Type
Detector type.
Definition: IonDetector.h:26
@ ARRAYDETECTOR
array detector
Definition: IonDetector.h:39
@ INDUCTIVEDETECTOR
inductive detector
Definition: IonDetector.h:47
@ FARADAYCUP
Faraday cup.
Definition: IonDetector.h:31
@ FOCALPLANECOLLECTOR
focal plane collector
Definition: IonDetector.h:42
@ CONVERSIONDYNODEPHOTOMULTIPLIER
Conversion dynode photo multiplier.
Definition: IonDetector.h:33
@ PHOTODIODEARRAYDETECTOR
photodiode array detector
Definition: IonDetector.h:46
@ DYNODE
dynode
Definition: IonDetector.h:41
@ ELECTRONMULTIPLIER
Electron multiplier.
Definition: IonDetector.h:28
@ CONVERSIONDYNODE
conversion dynode
Definition: IonDetector.h:40
@ CHANNELELECTRONMULTIPLIER
Channel electron multiplier.
Definition: IonDetector.h:35
@ POINTCOLLECTOR
point collector
Definition: IonDetector.h:44
@ CONVERSIONDYNODEELECTRONMULTIPLIER
Conversion dynode electron multiplier.
Definition: IonDetector.h:32
@ TYPENULL
Unknown.
Definition: IonDetector.h:27
@ PHOTOMULTIPLIER
Photo multiplier.
Definition: IonDetector.h:29
@ MICROCHANNELPLATEDETECTOR
microchannel plate detector
Definition: IonDetector.h:38
@ MULTICOLLECTOR
Multi-collector.
Definition: IonDetector.h:34
@ POSTACCELERATIONDETECTOR
postacceleration detector
Definition: IonDetector.h:45
@ DALYDETECTOR
daly detector
Definition: IonDetector.h:37
@ IONTOPHOTONDETECTOR
ion-to-photon detector
Definition: IonDetector.h:43
@ CHANNELTRON
channeltron
Definition: IonDetector.h:36
@ ELECTRONMULTIPLIERTUBE
electron multiplier tube
Definition: IonDetector.h:48
@ FOCALPLANEARRAY
Focal plane array.
Definition: IonDetector.h:30
Int getOrder() const
returns the position of this part in the whole Instrument.
double getResolution() const
returns the resolution (in ns)
void setResolution(double resolution)
sets the resolution (in ns)
IonDetector()
Constructor.
void setADCSamplingFrequency(double ADC_sampling_frequency)
sets the analog-to-digital converter sampling frequency (in Hz)
void setOrder(Int order)
sets the order
AcquisitionMode getAcquisitionMode() const
returns the acquisition mode
double resolution_
Definition: IonDetector.h:123
void setType(Type type)
sets the detector type
~IonDetector()
Destructor.
IonDetector(const IonDetector &)=default
Copy constructor.
Int order_
Definition: IonDetector.h:125
IonDetector & operator=(const IonDetector &)=default
Assignment operator.
void setAcquisitionMode(AcquisitionMode acquisition_mode)
sets the acquisition mode
Type getType() const
returns the detector type
AcquisitionMode
Acquisition mode.
Definition: IonDetector.h:56
@ TDC
Time-digital converter.
Definition: IonDetector.h:60
@ ACQMODENULL
Unknown.
Definition: IonDetector.h:57
@ PULSECOUNTING
Pulse counting.
Definition: IonDetector.h:58
@ ADC
Analog-digital converter.
Definition: IonDetector.h:59
@ TRANSIENTRECORDER
Transient recorder.
Definition: IonDetector.h:61
AcquisitionMode acquisition_mode_
Definition: IonDetector.h:122
double ADC_sampling_frequency_
Definition: IonDetector.h:124
bool operator==(const IonDetector &rhs) const
Equality operator.
IonDetector & operator=(IonDetector &&) &=default
Move assignment operator.
Type type_
Definition: IonDetector.h:121
double getADCSamplingFrequency() const
returns the analog-to-digital converter sampling frequency (in Hz)
IonDetector(IonDetector &&)=default
Move constructor.
Interface for classes that can store arbitrary meta information (Type-Name-Value tuples).
Definition: MetaInfoInterface.h:35
int Int
Signed integer type.
Definition: Types.h:76
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22