tof_dataclasses

Module io

Source
Expand description

Dataio - readino/writing of different types

of TOF data products.

  • TofPacketReader/Writer - sequentially read/write TofPackets from/to a file on disk. -> upcoming: Will connect to a network socket

  • RobinReader: Read (old) RB data files, where the file is simply a dump of the internal buffers (“RBEventMemoryView”).

  • RBEventMemoryStreamer: Walk over “raw” RBEvents representations (“RBEventMemoryView”) and extract RBEvents

Structs§

Enums§

Traits§

  • Generics for packet reading (TofPacket, Telemetry packet,…) FIXME - not implemented yet

Functions§

  • A standardized name for calibration files saved by the liftof suite
  • A standardized name for regular run files saved by the liftof suite
  • Create date string in YYMMDD format
  • Get a human readable timestamp
  • Read an entire file into memory
  • Take a .tof.gaps file with TofEvents and keep all packets, but reduce the TofEvents to TofEventSuammry to conserve space.