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

Public Member Functions

auto get_time_a () const -> f32
 
auto get_time_b () const -> f32
 
auto get_peak_a () const -> f32
 
auto get_peak_b () const -> f32
 
auto get_charge_a () const -> f32
 
auto get_charge_b () const -> f32
 
auto get_charge_min_i () const -> f32
 
auto get_x_pos () const -> f32
 
auto get_t_avg () const -> f32
 
auto get_t0_relative () const -> f32
 
auto get_timestamp48 () const -> f64
 
void set_paddle_len (f32 paddle_len)
 
auto to_string () const -> std::string
 

Static Public Member Functions

static auto from_bytestream (const Vec< u8 > &bytestream, u64 &pos) -> TofHit
 

Public Attributes

u8 paddle_id
 
bool broken
 
Gaps::ProtocolVersion version
 
f32 baseline_a
 
f32 baseline_a_rms
 
f32 baseline_b
 
f32 baseline_b_rms
 
f32 phase
 
f32 event_t0 = 0
 
u32 timestamp32
 
u16 timestamp16
 
f32 paddle_len = 0
 
f32 coax_cbl_time = 0
 
f32 hart_cbl_time = 0
 
u8 ctr_etx
 
u16 tail = 0xF0F
 

Static Public Attributes

static constexpr u16 HEAD = 0xF0F0
 
static constexpr u16 TAIL = 0xF0F
 

Member Function Documentation

◆ get_t0_relative()

auto TofHit::get_t0_relative ( ) const -> f32

get the interaction time of the particle, not accounting for cable len and global phase

◆ set_paddle_len()

void TofHit::set_paddle_len ( f32  paddle_len)

The paddle length will not be in the packet, but has to be added after the fact


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