frib_datasource

Crates.iofrib_datasource
lib.rsfrib_datasource
version0.1.4
created_at2026-01-16 16:11:59.572336+00
updated_at2026-01-22 15:17:13.397083+00
descriptionData sources for FRIB ringitem data
homepagehttp://docs.nscl.msu.edu/daq
repositoryhttps://github.com/FRIBDAQ/rust_frib_datasource.git
max_upload_size
id2048849
size41,382
Ron Fox (rfoxkendo)

documentation

README

rust_frib_datasource

This repository provides a rust module that support source independent access of FRIB/NSCLDAQ ring item data. Ring items can come from live (ring buffers) or they can come from offline (file) data.

Data sources are specified by URIs of the form:

sourcetype://source-specification

Valid sourcetypes are:

  • tcp data comes from a (possibly) remote ring item.
  • file data comes from a file.

Online (tcp) source-specification

These have two components. The first is the host on which the ring item is located. The second is the name of the ringbuffer in that host. For example:

tcp://spdaq08.frib.msu.edu/aring

Fetches is a data source from the ring named aring in the host spdaq08.frib.msu.edu

Note that to use online ring buffers, the FRIB/NSCLDAQ port manager and ringmaster must be running in all involved systems. In the example URI above, the ringmaster and port manager must be running in both the requesting host and spdaq08.frib.msu.edu

Offline (file) source-specification

This is just the path to the file that contains the data. For example:

file://run-0001-01.evt

Specifies run-0001-01.evt in the current working directory. Note that:

  • ~ expansion is not supported

  • Environment variable name substitution is not supported.

  • The special value - represents stdin. This is useful to allow a program to operate as a pipeline element.

Commit count: 0

cargo fmt