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

#include <events.h>

Public Member Functions

auto get_timestamp48 () const -> u64
 
auto get_rb_link_ids () const -> Vec< u8 >
 
auto get_trigger_hits () const -> Vec< std::tuple< u8, u8, u8, LTBThreshold > >
 
auto get_trigger_sources () const -> Vec< TriggerType >
 Get the trigger sources from trigger source byte.
 
auto to_string () const -> std::string
 

Static Public Member Functions

static auto from_tofpacket (const TofPacket &packet) -> r::Result< TofEventSummary, g::IOError >
 
static auto from_bytestream (const Vec< u8 > &stream, u64 &pos) -> r::Result< TofEventSummary, g::IOError >
 

Public Attributes

Gaps::ProtocolVersion version
 
EventStatus status
 
u8 quality
 
u16 trigger_sources
 
u8 n_trigger_paddles
 
u32 event_id
 
u16 run_id
 
u32 timestamp32
 
u16 timestamp16
 
u16 primary_beta
 
u16 primary_charge
 
u16 drs_dead_lost_hits
 
u32 dsi_j_mask
 
Vec< u16 > channel_mask
 
u64 mtb_link_mask
 
Vec< TofHithits
 
u8 n_hits_umb
 
u8 n_hits_cbe
 
u8 n_hits_cor
 
f32 tot_edep_umb
 
f32 tot_edep_cbe
 
f32 tot_edep_cor
 

Static Public Attributes

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

Detailed Description

Concise summary for the flight computer and telemtry stream

Member Function Documentation

◆ get_trigger_hits()

auto TofEventSummary::get_trigger_hits ( ) const -> Vec< std::tuple< u8, u8, u8, LTBThreshold > >

Get the combination of triggered DSI/J/CH on the MTB which formed the trigger. This does not include further hits which fall into the integration window. For those, se rb_link_mask

The returned values follow the TOF convention to start with 1, so that we can use them to look up LTB ids in the db.

Returns

Vec<(hit)> where hit is (DSI, J, CH)

Member Data Documentation

◆ n_trigger_paddles

u8 TofEventSummary::n_trigger_paddles

the number of triggered paddles coming from the MTB directly. This might NOT be the same as the number of hits!


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