GetTofSpectrumFromShMem: Single TOF spectrum from shared memory.

View source: R/RcppExports.R

GetTofSpectrumFromShMemR Documentation

Single TOF spectrum from shared memory.

Description

GetTofSpectrumFromShMem reads a single TOF spectrum (possibly averaged/summed over segment dimension) from shared memory. If SegmentIndex = SegmentEndIndex = -1 the complete block of data is copied and the Normalize flag is ignored.

Usage

GetTofSpectrumFromShMem(
  SegmentIndex,
  SegmentEndIndex,
  BufIndex,
  Normalize = TRUE
)

Arguments

SegmentIndex

Segment start index of data to fetch (or -1 for complete block copy).

SegmentEndIndex

Segment end index of data to fetch (or -1 for complete block copy).

BufIndex

Buf index of data to fetch.

Normalize

If FALSE the spectrum is reported as sum, if TRUE (default) the spectrum is normalized to counts per extraction (ignored and assumed FALSE if used with SegmentIndex = SegmentEndIndex = -1).

Value

A vector containing the mass spectrum or an array containing the block of mass spectra if SegmentIndex = SegmentEndIndex = -1.


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