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

Public Member Functions

auto to_string () const -> std::string
 String representation for printing to output.
 
auto get_timestamp48 () const -> f64
 get the timestamp
 

Static Public Member Functions

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

Public Attributes

u32 run_id = 0
 
u32 event_id = 0
 
u32 timestamp32 = 0
 
u16 timestamp16 = 0
 
u16 primary_beta = 0
 
u16 primary_beta_unc = 0
 
u16 primary_charge = 0
 
u16 primary_charge_unc = 0
 
u16 primary_outer_tof_x = 0
 
u16 primary_outer_tof_y = 0
 
u16 primary_outer_tof_z = 0
 
u16 primary_inner_tof_x = 0
 
u16 primary_inner_tof_y = 0
 
u16 primary_inner_tof_z = 0
 
u8 nhit_outer_tof = 0
 
u8 nhit_inner_tof = 0
 
u8 trigger_info = 0
 
u8 ctr_etx = 0
 
u8 n_paddles = 0
 

Static Public Attributes

static constexpr u16 HEAD = 0xAAAA
 
static constexpr u16 TAIL = 0x5555
 
static constexpr usize SIZE = 47
 fixed size including head and tail
 

Member Data Documentation

◆ timestamp32

u32 TofEventHeader::timestamp32 = 0

a reference to a timestamp which is not yet decided


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