BmnRoot 26.10.0-233-gb9bbe585
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnHgndRaw::Block Namespace Reference

Enumerations

enum  EventPacketVersion { ERR , V1 , V2 }

Functions

bool is_word_event_header (uint16_t word)
EventPacketVersion get_event_packet_version (uint16_t word)
uint16_t get_block_size (EventPacketVersion packet_version=ERR)

Variables

static constexpr uint32_t HEADER_MASK = 0xF000
static constexpr uint8_t EVENT_HEADER = 0xA
static constexpr uint16_t EVENT_TYPE_1_PACKET_LENGTH = 8
static constexpr uint16_t EVENT_TYPE_2_PACKET_LENGTH = 18

Enumeration Type Documentation

◆ EventPacketVersion

Enumerator
ERR 
V1 
V2 

Definition at line 24 of file BmnHgndRaw.h.

Function Documentation

◆ get_block_size()

uint16_t BmnHgndRaw::Block::get_block_size ( EventPacketVersion packet_version = ERR)
inline

Definition at line 45 of file BmnHgndRaw.h.

References ERR, EVENT_TYPE_1_PACKET_LENGTH, EVENT_TYPE_2_PACKET_LENGTH, V1, and V2.

Referenced by BmnConverterThread::FillTDC250HGND(), and BmnRawSource::FillTDC250HGND().

Here is the caller graph for this function:

◆ get_event_packet_version()

EventPacketVersion BmnHgndRaw::Block::get_event_packet_version ( uint16_t word)
inline

Definition at line 31 of file BmnHgndRaw.h.

References ERR, V1, and V2.

Referenced by BmnConverterThread::FillTDC250HGND(), and BmnRawSource::FillTDC250HGND().

Here is the caller graph for this function:

◆ is_word_event_header()

bool BmnHgndRaw::Block::is_word_event_header ( uint16_t word)
inline

Definition at line 18 of file BmnHgndRaw.h.

References EVENT_HEADER, and HEADER_MASK.

Referenced by BmnConverterThread::FillTDC250HGND(), and BmnRawSource::FillTDC250HGND().

Here is the caller graph for this function:

Variable Documentation

◆ EVENT_HEADER

uint8_t BmnHgndRaw::Block::EVENT_HEADER = 0xA
staticconstexpr

Definition at line 16 of file BmnHgndRaw.h.

Referenced by is_word_event_header().

◆ EVENT_TYPE_1_PACKET_LENGTH

uint16_t BmnHgndRaw::Block::EVENT_TYPE_1_PACKET_LENGTH = 8
staticconstexpr

Definition at line 42 of file BmnHgndRaw.h.

Referenced by get_block_size().

◆ EVENT_TYPE_2_PACKET_LENGTH

uint16_t BmnHgndRaw::Block::EVENT_TYPE_2_PACKET_LENGTH = 18
staticconstexpr

Definition at line 43 of file BmnHgndRaw.h.

Referenced by get_block_size().

◆ HEADER_MASK

uint32_t BmnHgndRaw::Block::HEADER_MASK = 0xF000
staticconstexpr

Definition at line 15 of file BmnHgndRaw.h.

Referenced by is_word_event_header().