gaps-online-software 0.10
online software for the TOF system for the GAPS experiment
Loading...
Searching...
No Matches
RBEvent Struct Reference

#include <events.h>

Collaboration diagram for RBEvent:

Public Member Functions

auto get_channel_by_label (u8 channel) const -> const Vec< u16 > &
 
auto get_channel_by_id (u8 channel) const -> const Vec< u16 > &
 
auto get_channel_adc (u8 channel) const -> const Vec< u16 > &
 
auto to_string () const -> std::string
 

Static Public Member Functions

static auto calc_baseline (const Vec< f32 > &volts, usize min_bin, usize max_bin) -> f32
 Get the baseline for a single channel.
 
static auto from_bytestream (const Vec< u8 > &bytestream, u64 &pos) -> RBEvent
 

Public Attributes

u8 data_type = 0
 
EventStatus status = EventStatus::Unknown
 
RBEventHeader header = RBEventHeader()
 
Vec< Vec< u16 > > adc = Vec<Vec<u16>>()
 
Vec< TofHithits = Vec<TofHit>()
 

Static Public Attributes

static constexpr u16 HEAD = 0xAAAA
 
static constexpr u16 TAIL = 0x5555
 

Detailed Description

A complete event for a single readout board with header and channel data. The size is flexible, only active datachannels are recorded.


The documentation for this struct was generated from the following file: