![]() |
gaps-online-software 0.10
online software for the TOF system for the GAPS experiment
|
#include <events.h>
Public Member Functions | |
u64 | get_timestamp48 () const |
Vec< u8 > | get_rb_link_ids () const |
Vec< std::tuple< u8, u8, u8, LTBThreshold > > | get_trigger_hits () const |
Vec< TriggerType > | get_trigger_sources () const |
Get the trigger sources from trigger source byte. | |
std::string | to_string () const |
Static Public Member Functions | |
static TofEventSummary | from_bytestream (const Vec< u8 > &stream, u64 &pos) |
Public Attributes | |
Gaps::ProtocolVersion | version |
EventStatus | status |
u8 | quality |
u16 | trigger_sources |
u8 | n_trigger_paddles |
u32 | event_id |
u8 | n_hits_umb |
u8 | n_hits_cbe |
u8 | n_hits_cor |
f32 | tot_edep_umb |
f32 | tot_edep_cbe |
f32 | tot_edep_cor |
u32 | timestamp32 |
u16 | timestamp16 |
u16 | primary_beta |
reconstructed primary beta | |
u16 | primary_charge |
reconstructed primary charge | |
u32 | dsi_j_mask |
Vec< u16 > | channel_mask |
u64 | mtb_link_mask |
Vec< TofHit > | hits |
Static Public Attributes | |
static const u16 | HEAD = 0xAAAA |
static const u16 | TAIL = 0x5555 |
Concise summary for the flight computer and telemtry stream
Vec< std::tuple< u8, u8, u8, LTBThreshold > > TofEventSummary::get_trigger_hits | ( | ) | const |
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.
Vec<(hit)> where hit is (DSI, J, CH)
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!