![]() |
gaps-online-software 0.10
online software for the TOF system for the GAPS experiment
|
#include <events.h>
Public Member Functions | |
auto | get_hits () const -> Vec< TofHit > |
Get all hits from all rb_events. | |
auto | normalize_hit_times () -> void |
auto | to_string () const -> std::string |
string representation for printing | |
auto | get_rbevent (u8 board_id) const -> const RBEvent & |
auto | get_rbids () const -> Vec< u8 > |
Static Public Member Functions | |
static auto | from_bytestream (const Vec< u8 > &bytestream, u64 &pos) -> r::Result< TofEvent, g::IOError > |
static auto | from_tofpacket (const TofPacket &packet) -> TofEvent |
static auto | get_n_rbmissinghits (u32 mask) -> u32 |
static auto | get_n_rbevents (u32 mask) -> u32 |
Public Attributes | |
EventStatus | status |
TofEventHeader | header |
MasterTriggerEvent | mt_event |
Vec< RBEvent > | rb_events |
Vec< RBMissingHit > | missing_hits |
Static Public Attributes | |
static constexpr u16 | HEAD = 0xAAAA |
static constexpr u16 | TAIL = 0x5555 |
A container accounting for a "complete" event of the Tof including:
|
static |
Factory function for TofEvents.
Deserialize a TofEvetn from a vector of of bytes
bytestream | Byte representation of a TofEvent, or including such a representation at pos |
pos | : Expected position of TofEvent::HEAD in the stream |
auto TofEvent::get_rbevent | ( | u8 | board_id | ) | const -> const RBEvent & |
Get the rb event for a specific board id.
auto TofEvent::get_rbids | ( | ) | const -> Vec< u8 > |
Get the rb event for a specific board id.
auto TofEvent::normalize_hit_times | ( | ) | -> void |
normalize all the hit times, taking the global ch9 phase into account
Vec<RBMissingHit> TofEvent::missing_hits |
A container holding information about missing rbevents. That is events where we know the board triggered, but we did not get an associated RBEvent within a timeout
Vec<RBEvent> TofEvent::rb_events |
A container holding the individual events from all RBs with triggers in this event