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

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

Static Public Member Functions

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

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
 
u32 timestamp32
 
u16 timestamp16
 
f32 paddle_len
 
u8 ctr_etx
 
u16 tail = 0xF0F
 

Static Public Attributes

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

Member Function Documentation

◆ 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: