![]() |
gaps-online-software 0.10
online software for the TOF system for the GAPS experiment
|
#include <events.h>
Public Member Functions | |
std::string | to_string () const |
string representation for printing | |
const RBEvent & | get_rbevent (u8 board_id) const |
Vec< u8 > | get_rbids () const |
Static Public Member Functions | |
static TofEvent | from_bytestream (const Vec< u8 > &bytestream, u64 &pos) |
static TofEvent | from_tofpacket (const TofPacket &packet) |
static u32 | get_n_rbmissinghits (u32 mask) |
static u32 | get_n_rbevents (u32 mask) |
Public Attributes | |
EventStatus | status |
TofEventHeader | header |
MasterTriggerEvent | mt_event |
Vec< RBEvent > | rb_events |
Vec< RBMissingHit > | missing_hits |
Static Public Attributes | |
static const u16 | HEAD = 0xAAAA |
static const 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 |
const RBEvent & TofEvent::get_rbevent | ( | u8 | board_id | ) | const |
Get the rb event for a specific board id.
Vec< u8 > TofEvent::get_rbids | ( | ) | const |
Get the rb event for a specific board id.
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