| OpenMS 2.5.0

Public Member Functions | Private Member Functions | Private Attributes | List of all members
AcqusHandler Class Reference

Read-only acqus File handler for XMass Analysis. More...

`#include <OpenMS/FORMAT/HANDLERS/AcqusHandler.h>`

## Public Member Functions

| AcqusHandler (const String &filename)
| Constructor with filename. More...
virtual | ~AcqusHandler ()
| Destructor. More...
double | getPosition (Size index)
| Conversion from index to MZ ratio using internal calibration params. More...
String | getParam (const String &param)
| Read param as string. More...
Size | getSize ()
| Get size of spectrum. More...

## Private Member Functions

| AcqusHandler ()
| Private default constructor. More...

## Private Attributes

Map< String, String > | params_
| Map for params saving. More...
Internal params for calibration
double | dw_
Size | delay_
double | ml1_
double | ml2_
double | ml3_
Size | td_

## Detailed Description

Read-only acqus File handler for XMass Analysis.

acqus File contains meta data about calibration (conversion for time to mz ratio), instrument specification and acquisition method.

Note
  Do not use this class directly. It is only needed for XMassFile.

## Constructor & Destructor Documentation

## ◆ AcqusHandler() [1/2]

AcqusHandler | ( | const String & | filename | ) |

explicit

Constructor with filename.

Open acqus File as stream and import params.

Parameters

  filename | to acqus File.

Exceptions

  Exception::FileNotFound | is thrown if the file could not be opened.
  Exception::ConversionError | is thrown if error conversion from String to calibration param.

## ◆ ~AcqusHandler()

virtual ~AcqusHandler | ( |  | ) |

virtual

Destructor.

## ◆ AcqusHandler() [2/2]

AcqusHandler | ( |  | ) |

private

Private default constructor.

## Member Function Documentation

## ◆ getParam()

String getParam | ( | const String & | param | ) |

Read param as string.

## ◆ getPosition()

double getPosition | ( | Size | index | ) |

Conversion from index to MZ ratio using internal calibration params.

## ◆ getSize()

Size getSize | ( |  | ) |

Get size of spectrum.

## Member Data Documentation

## ◆ delay_

Size delay_

private

## ◆ dw_

double dw_

private

## ◆ ml1_

double ml1_

private

## ◆ ml2_

double ml2_

private

## ◆ ml3_

double ml3_

private

## ◆ params_

Map<String, String> params_

private

Map for params saving.

## ◆ td_

Size td_

private