OpenMS  2.8.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>

Collaboration diagram for AcqusHandler:
[legend]

Public Member Functions

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

Private Member Functions

 AcqusHandler ()
 Private default constructor. More...
 

Private Attributes

Map< String, Stringparams_
 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
filenameto acqus File.
Exceptions
Exception::FileNotFoundis thrown if the file could not be opened.
Exception::ConversionErroris 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.

Referenced by XMassFile::importExperimentalSettings(), and XMassFile::load().

◆ getPosition()

double getPosition ( Size  index) const

Conversion from index to MZ ratio using internal calibration params.

Referenced by XMassFile::load().

◆ getSize()

Size getSize ( ) const

Get size of spectrum.

Referenced by XMassFile::load().

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