GetTofDataSinglePeak: Gets TofData of a single peak from a HDF5 data file.

View source: R/SupplementaryFunctions.R

GetTofDataSinglePeakR Documentation

Gets TofData of a single peak from a HDF5 data file.

Description

GetTofDataSinglePeak gets TofData and the averaged spectrum of a single peak or a specified mass range from a HDF5 data file.

Usage

GetTofDataSinglePeak(filename, peakIndex, massRange = NULL, secondTOF = FALSE)

Arguments

filename

Path/filename.

peakIndex

Peak index (one-based).

massRange

Mass range in Th. Specified as a two-element vector containing the low and high limit of the mass range. If NULL the mass range is taken from the peak parameter list.

secondTOF

If TRUE the data are read from /FullSpectra2/TofData

Details

Note: this function is not part of the TofDaq API, but is included in the package for convenience.

Value

A list containing x-axis data (mass/charge (Th), time-of-flight (microsec) and sample indices), TofData and averaged spectrum of the peak, and the descriptor of the data file. TofData is a matrix with the peak spectrum for every buf as columns and the unit of TofData is mV (at the MCP signal out, before external preamps).

See Also

Other wrapper functions: FitTofDataSinglePeak()


pasturm/TofDaqR documentation built on March 29, 2024, 12:10 a.m.