DecodeEventList: Decodes an event list.

View source: R/RcppExports.R

DecodeEventListR Documentation

Decodes an event list.

Description

DecodeEventList decodes an event list read with GetEventList...FromH5 functions into a time stamp vector and a data vector.

Usage

DecodeEventList(events, clockPeriod, sampleInterval)

Arguments

events

Event data, e.g. from GetEventList...FromH5.

clockPeriod

Clock period (in s or ns), e.g. from GetFloatAttributeFromH5(filename, "FullSpectra", "ClockPeriod").

sampleInterval

Sampling interval (in same units as clockPeriod), e.g. from GetH5Descriptor.

Details

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

Value

A list with sample indices and data values (in mV).


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