![]() |
OpenMS
|
Description of a ion detector (part of a MS Instrument) More...
#include <OpenMS/METADATA/IonDetector.h>
Public Types | |
| enum class | 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 class | AcquisitionMode { ACQMODENULL , PULSECOUNTING , ADC , TDC , TRANSIENTRECORDER , SIZE_OF_ACQUISITIONMODE } |
| Acquisition mode. More... | |
Public Member Functions | |
| IonDetector () | |
| Constructor. | |
| IonDetector (const IonDetector &)=default | |
| Copy constructor. | |
| IonDetector (IonDetector &&)=default | |
| Move constructor. | |
| ~IonDetector () | |
| Destructor. | |
| IonDetector & | operator= (const IonDetector &)=default |
| Assignment operator. | |
| IonDetector & | operator= (IonDetector &&) &=default |
| Move assignment operator. | |
| bool | operator== (const IonDetector &rhs) const |
| Equality operator. | |
| bool | operator!= (const IonDetector &rhs) const |
| Equality operator. | |
| Type | getType () const |
| returns the detector type | |
| void | setType (Type type) |
| sets the detector type | |
| AcquisitionMode | getAcquisitionMode () const |
| returns the acquisition mode | |
| void | setAcquisitionMode (AcquisitionMode acquisition_mode) |
| sets the acquisition mode | |
| double | getResolution () const |
| returns the resolution (in ns) | |
| void | setResolution (double resolution) |
| sets the resolution (in ns) | |
| double | getADCSamplingFrequency () const |
| returns the analog-to-digital converter sampling frequency (in Hz) | |
| void | setADCSamplingFrequency (double ADC_sampling_frequency) |
| sets the analog-to-digital converter sampling frequency (in Hz) | |
| Int | getOrder () const |
| returns the position of this part in the whole Instrument. | |
| void | setOrder (Int order) |
| sets the order | |
Public Member Functions inherited from MetaInfoInterface | |
| MetaInfoInterface ()=default | |
| Constructor. | |
| MetaInfoInterface (const MetaInfoInterface &rhs) | |
| Copy constructor. | |
| MetaInfoInterface (MetaInfoInterface &&) noexcept | |
| Move constructor. | |
| ~MetaInfoInterface () | |
| Destructor. | |
| MetaInfoInterface & | operator= (const MetaInfoInterface &rhs) |
| Assignment operator. | |
| MetaInfoInterface & | operator= (MetaInfoInterface &&) noexcept |
| Move assignment operator. | |
| void | swap (MetaInfoInterface &rhs) |
| Swap contents. | |
| bool | operator== (const MetaInfoInterface &rhs) const |
| Equality operator. | |
| bool | operator!= (const MetaInfoInterface &rhs) const |
| Equality operator. | |
| const DataValue & | getMetaValue (const String &name) const |
| Returns the value corresponding to a string, or DataValue::EMPTY if not found. | |
| 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 | |
| const DataValue & | getMetaValue (UInt index) const |
| Returns the value corresponding to the index, or DataValue::EMPTY if not found. | |
| 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 | |
| bool | metaValueExists (const String &name) const |
| Returns whether an entry with the given name exists. | |
| bool | metaValueExists (UInt index) const |
| Returns whether an entry with the given index exists. | |
| void | setMetaValue (const String &name, const DataValue &value) |
| Sets the DataValue corresponding to a name. | |
| void | setMetaValue (UInt index, const DataValue &value) |
| Sets the DataValue corresponding to an index. | |
| void | removeMetaValue (const String &name) |
Removes the DataValue corresponding to name if it exists. | |
| void | removeMetaValue (UInt index) |
Removes the DataValue corresponding to index if it exists. | |
| void | addMetaValues (const MetaInfoInterface &from) |
| void | getKeys (std::vector< String > &keys) const |
| Fills the given vector with a list of all keys for which a value is set. | |
| void | getKeys (std::vector< UInt > &keys) const |
| Fills the given vector with a list of all keys for which a value is set. | |
| bool | isMetaEmpty () const |
| Returns if the MetaInfo is empty. | |
| void | clearMetaInfo () |
| Removes all meta values. | |
Static Public Member Functions | |
| static StringList | getAllNamesOfType () |
| Returns all detector type names known to OpenMS. | |
| static StringList | getAllNamesOfAcquisitionMode () |
| Returns all acquisition mode names known to OpenMS. | |
| static const std::string & | typeToString (Type type) |
| Convert a Type enum to its string representation. | |
| static Type | toType (const std::string &name) |
| Convert a string to a Type enum. | |
| static const std::string & | acquisitionModeToString (AcquisitionMode mode) |
| Convert an AcquisitionMode enum to its string representation. | |
| static AcquisitionMode | toAcquisitionMode (const std::string &name) |
| Convert a string to an AcquisitionMode enum. | |
Static Public Member Functions inherited from MetaInfoInterface | |
| static MetaInfoRegistry & | metaRegistry () |
| Returns a reference to the MetaInfoRegistry. | |
Static Public Attributes | |
| static const std::string | NamesOfType [static_cast< size_t >(Type::SIZE_OF_TYPE)] |
| Names of detector types. | |
| static const std::string | NamesOfAcquisitionMode [static_cast< size_t >(AcquisitionMode::SIZE_OF_ACQUISITIONMODE)] |
| Names of acquisition modes. | |
Protected Attributes | |
| Type | type_ |
| AcquisitionMode | acquisition_mode_ |
| double | resolution_ |
| double | ADC_sampling_frequency_ |
| Int | order_ |
Protected Attributes inherited from MetaInfoInterface | |
| MetaInfo * | meta_ = nullptr |
| Pointer to the MetaInfo object. | |
Additional Inherited Members | |
Protected Member Functions inherited from MetaInfoInterface | |
| void | createIfNotExists_ () |
| Creates the MetaInfo object if it does not exist. | |
Description of a ion detector (part of a MS Instrument)
|
strong |
Acquisition mode.
| Enumerator | |
|---|---|
| ACQMODENULL | Unknown. |
| PULSECOUNTING | Pulse counting. |
| ADC | Analog-digital converter. |
| TDC | Time-digital converter. |
| TRANSIENTRECORDER | Transient recorder. |
| SIZE_OF_ACQUISITIONMODE | |
|
strong |
Detector type.
| IonDetector | ( | ) |
Constructor.
|
default |
Copy constructor.
|
default |
Move constructor.
| ~IonDetector | ( | ) |
Destructor.
|
static |
Convert an AcquisitionMode enum to its string representation.
| mode | The acquisition mode enum value to convert |
| Exception::InvalidValue | if mode is SIZE_OF_ACQUISITIONMODE |
| AcquisitionMode getAcquisitionMode | ( | ) | const |
returns the acquisition mode
| double getADCSamplingFrequency | ( | ) | const |
returns the analog-to-digital converter sampling frequency (in Hz)
|
static |
Returns all acquisition mode names known to OpenMS.
|
static |
Returns all detector type names known to OpenMS.
| 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:
For more complex instruments, the order should be defined.
| double getResolution | ( | ) | const |
returns the resolution (in ns)
| Type getType | ( | ) | const |
returns the detector type
| bool operator!= | ( | const IonDetector & | rhs | ) | const |
Equality operator.
|
default |
Assignment operator.
|
default |
Move assignment operator.
| bool operator== | ( | const IonDetector & | rhs | ) | const |
Equality operator.
| void setAcquisitionMode | ( | AcquisitionMode | acquisition_mode | ) |
sets the acquisition mode
| void setADCSamplingFrequency | ( | double | ADC_sampling_frequency | ) |
sets the analog-to-digital converter sampling frequency (in Hz)
| void setOrder | ( | Int | order | ) |
sets the order
| void setResolution | ( | double | resolution | ) |
sets the resolution (in ns)
| void setType | ( | Type | type | ) |
sets the detector type
|
static |
Convert a string to an AcquisitionMode enum.
| name | The string name to convert |
| Exception::InvalidValue | if name is not found in NamesOfAcquisitionMode[] |
|
static |
Convert a string to a Type enum.
| name | The string name to convert |
| Exception::InvalidValue | if name is not found in NamesOfType[] |
|
static |
Convert a Type enum to its string representation.
| type | The detector type enum value to convert |
| Exception::InvalidValue | if type is SIZE_OF_TYPE |
|
protected |
|
protected |
|
static |
Names of acquisition modes.
|
static |
Names of detector types.
|
protected |
|
protected |
|
protected |