EventList2TofSpec: Converts events of an event list into a spectrum.

View source: R/RcppExports.R

EventList2TofSpecR Documentation

Converts events of an event list into a spectrum.

Description

EventList2TofSpec converts events of an event list (read with GetEventList...FromH5 functions) into a spectrum.

Usage

EventList2TofSpec(events, clockPeriod, sampleInterval, nbrSamples)

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.

nbrSamples

Number of samples, 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 vector containing the spectrum.


pasturm/TofDaqR documentation built on July 20, 2024, 9:44 a.m.