OpenMS
IonDetector Class Reference

Description of a ion detector (part of a MS Instrument) More...

#include <OpenMS/METADATA/IonDetector.h>

Inheritance diagram for IonDetector:
[legend]
Collaboration diagram for IonDetector:
[legend]

Public Types

enum  Type {
  TYPENULL , ELECTRONMULTIPLIER , PHOTOMULTIPLIER , FOCALPLANEARRAY ,
  FARADAYCUP , CONVERSIONDYNODEELECTRONMULTIPLIER , CONVERSIONDYNODEPHOTOMULTIPLIER , MULTICOLLECTOR ,
  CHANNELELECTRONMULTIPLIER , CHANNELTRON , DALYDETECTOR , MICROCHANNELPLATEDETECTOR ,
  ARRAYDETECTOR , CONVERSIONDYNODE , DYNODE , FOCALPLANECOLLECTOR ,
  IONTOPHOTONDETECTOR , POINTCOLLECTOR , POSTACCELERATIONDETECTOR , PHOTODIODEARRAYDETECTOR ,
  INDUCTIVEDETECTOR , ELECTRONMULTIPLIERTUBE , SIZE_OF_TYPE
}
 Detector type. More...
 
enum  AcquisitionMode {
  ACQMODENULL , PULSECOUNTING , ADC , TDC ,
  TRANSIENTRECORDER , SIZE_OF_ACQUISITIONMODE
}
 Acquisition mode. More...
 

Public Member Functions

 IonDetector ()
 Constructor. More...
 
 IonDetector (const IonDetector &)=default
 Copy constructor. More...
 
 IonDetector (IonDetector &&)=default
 Move constructor. More...
 
 ~IonDetector ()
 Destructor. More...
 
IonDetectoroperator= (const IonDetector &)=default
 Assignment operator. More...
 
IonDetectoroperator= (IonDetector &&) &=default
 Move assignment operator. More...
 
bool operator== (const IonDetector &rhs) const
 Equality operator. More...
 
bool operator!= (const IonDetector &rhs) const
 Equality operator. More...
 
Type getType () const
 returns the detector type More...
 
void setType (Type type)
 sets the detector type More...
 
AcquisitionMode getAcquisitionMode () const
 returns the acquisition mode More...
 
void setAcquisitionMode (AcquisitionMode acquisition_mode)
 sets the acquisition mode More...
 
double getResolution () const
 returns the resolution (in ns) More...
 
void setResolution (double resolution)
 sets the resolution (in ns) More...
 
double getADCSamplingFrequency () const
 returns the analog-to-digital converter sampling frequency (in Hz) More...
 
void setADCSamplingFrequency (double ADC_sampling_frequency)
 sets the analog-to-digital converter sampling frequency (in Hz) More...
 
Int getOrder () const
 returns the position of this part in the whole Instrument. More...
 
void setOrder (Int order)
 sets the order More...
 
- Public Member Functions inherited from MetaInfoInterface
 MetaInfoInterface ()
 Constructor. More...
 
 MetaInfoInterface (const MetaInfoInterface &rhs)
 Copy constructor. More...
 
 MetaInfoInterface (MetaInfoInterface &&) noexcept
 Move constructor. More...
 
 ~MetaInfoInterface ()
 Destructor. More...
 
MetaInfoInterfaceoperator= (const MetaInfoInterface &rhs)
 Assignment operator. More...
 
MetaInfoInterfaceoperator= (MetaInfoInterface &&) noexcept
 Move assignment operator. More...
 
void swap (MetaInfoInterface &rhs)
 Swap contents. More...
 
bool operator== (const MetaInfoInterface &rhs) const
 Equality operator. More...
 
bool operator!= (const MetaInfoInterface &rhs) const
 Equality operator. More...
 
const DataValuegetMetaValue (const String &name) const
 Returns the value corresponding to a string, or DataValue::EMPTY if not found. More...
 
DataValue getMetaValue (const String &name, const DataValue &default_value) const
 Returns the value corresponding to a string, or a default value (e.g.: DataValue::EMPTY) if not found
More...
 
const DataValuegetMetaValue (UInt index) const
 Returns the value corresponding to the index, or DataValue::EMPTY if not found. More...
 
DataValue getMetaValue (UInt index, const DataValue &default_value) const
 Returns the value corresponding to the index, or a default value (e.g.: DataValue::EMPTY) if not found
More...
 
bool metaValueExists (const String &name) const
 Returns whether an entry with the given name exists. More...
 
bool metaValueExists (UInt index) const
 Returns whether an entry with the given index exists. More...
 
void setMetaValue (const String &name, const DataValue &value)
 Sets the DataValue corresponding to a name. More...
 
void setMetaValue (UInt index, const DataValue &value)
 Sets the DataValue corresponding to an index. More...
 
void removeMetaValue (const String &name)
 Removes the DataValue corresponding to name if it exists. More...
 
void removeMetaValue (UInt index)
 Removes the DataValue corresponding to index if it exists. More...
 
void addMetaValues (const MetaInfoInterface &from)
 function to copy all meta values from one object to this one More...
 
void getKeys (std::vector< String > &keys) const
 Fills the given vector with a list of all keys for which a value is set. More...
 
void getKeys (std::vector< UInt > &keys) const
 Fills the given vector with a list of all keys for which a value is set. More...
 
bool isMetaEmpty () const
 Returns if the MetaInfo is empty. More...
 
void clearMetaInfo ()
 Removes all meta values. More...
 

Static Public Attributes

static const std::string NamesOfType [SIZE_OF_TYPE]
 Names of detector types. More...
 
static const std::string NamesOfAcquisitionMode [SIZE_OF_ACQUISITIONMODE]
 Names of acquisition modes. More...
 

Protected Attributes

Type type_
 
AcquisitionMode acquisition_mode_
 
double resolution_
 
double ADC_sampling_frequency_
 
Int order_
 
- Protected Attributes inherited from MetaInfoInterface
MetaInfometa_
 Pointer to the MetaInfo object (0 by default) More...
 

Additional Inherited Members

- Static Public Member Functions inherited from MetaInfoInterface
static MetaInfoRegistrymetaRegistry ()
 Returns a reference to the MetaInfoRegistry. More...
 
- Protected Member Functions inherited from MetaInfoInterface
void createIfNotExists_ ()
 Creates the MetaInfo object if it does not exist. More...
 

Detailed Description

Description of a ion detector (part of a MS Instrument)

Member Enumeration Documentation

◆ AcquisitionMode

Acquisition mode.

Enumerator
ACQMODENULL 

Unknown.

PULSECOUNTING 

Pulse counting.

ADC 

Analog-digital converter.

TDC 

Time-digital converter.

TRANSIENTRECORDER 

Transient recorder.

SIZE_OF_ACQUISITIONMODE 

◆ Type

enum Type

Detector type.

Enumerator
TYPENULL 

Unknown.

ELECTRONMULTIPLIER 

Electron multiplier.

PHOTOMULTIPLIER 

Photo multiplier.

FOCALPLANEARRAY 

Focal plane array.

FARADAYCUP 

Faraday cup.

CONVERSIONDYNODEELECTRONMULTIPLIER 

Conversion dynode electron multiplier.

CONVERSIONDYNODEPHOTOMULTIPLIER 

Conversion dynode photo multiplier.

MULTICOLLECTOR 

Multi-collector.

CHANNELELECTRONMULTIPLIER 

Channel electron multiplier.

CHANNELTRON 

channeltron

DALYDETECTOR 

daly detector

MICROCHANNELPLATEDETECTOR 

microchannel plate detector

ARRAYDETECTOR 

array detector

CONVERSIONDYNODE 

conversion dynode

DYNODE 

dynode

FOCALPLANECOLLECTOR 

focal plane collector

IONTOPHOTONDETECTOR 

ion-to-photon detector

POINTCOLLECTOR 

point collector

POSTACCELERATIONDETECTOR 

postacceleration detector

PHOTODIODEARRAYDETECTOR 

photodiode array detector

INDUCTIVEDETECTOR 

inductive detector

ELECTRONMULTIPLIERTUBE 

electron multiplier tube

SIZE_OF_TYPE 

Constructor & Destructor Documentation

◆ IonDetector() [1/3]

Constructor.

◆ IonDetector() [2/3]

IonDetector ( const IonDetector )
default

Copy constructor.

◆ IonDetector() [3/3]

IonDetector ( IonDetector &&  )
default

Move constructor.

◆ ~IonDetector()

Destructor.

Member Function Documentation

◆ getAcquisitionMode()

AcquisitionMode getAcquisitionMode ( ) const

returns the acquisition mode

◆ getADCSamplingFrequency()

double getADCSamplingFrequency ( ) const

returns the analog-to-digital converter sampling frequency (in Hz)

◆ getOrder()

Int getOrder ( ) const

returns the position of this part in the whole Instrument.

Order can be ignored, as long the instrument has this default setup:

  • one ion source
  • one or many mass analyzers
  • one ion detector

For more complex instruments, the order should be defined.

◆ getResolution()

double getResolution ( ) const

returns the resolution (in ns)

◆ getType()

Type getType ( ) const

returns the detector type

◆ operator!=()

bool operator!= ( const IonDetector rhs) const

Equality operator.

◆ operator=() [1/2]

IonDetector& operator= ( const IonDetector )
default

Assignment operator.

◆ operator=() [2/2]

IonDetector& operator= ( IonDetector &&  ) &
default

Move assignment operator.

◆ operator==()

bool operator== ( const IonDetector rhs) const

Equality operator.

◆ setAcquisitionMode()

void setAcquisitionMode ( AcquisitionMode  acquisition_mode)

sets the acquisition mode

◆ setADCSamplingFrequency()

void setADCSamplingFrequency ( double  ADC_sampling_frequency)

sets the analog-to-digital converter sampling frequency (in Hz)

◆ setOrder()

void setOrder ( Int  order)

sets the order

◆ setResolution()

void setResolution ( double  resolution)

sets the resolution (in ns)

◆ setType()

void setType ( Type  type)

sets the detector type

Member Data Documentation

◆ acquisition_mode_

AcquisitionMode acquisition_mode_
protected

◆ ADC_sampling_frequency_

double ADC_sampling_frequency_
protected

◆ NamesOfAcquisitionMode

const std::string NamesOfAcquisitionMode[SIZE_OF_ACQUISITIONMODE]
static

Names of acquisition modes.

◆ NamesOfType

const std::string NamesOfType[SIZE_OF_TYPE]
static

Names of detector types.

◆ order_

Int order_
protected

◆ resolution_

double resolution_
protected

◆ type_

Type type_
protected