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

Enumerations

enum  EventPacketVersion {
  ERR , V1 , V2 , ERR ,
  V1 , V2
}
enum  EventPacketVersion {
  ERR , V1 , V2 , 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
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 [1/2]

Enumerator
ERR 
V1 
V2 
ERR 
V1 
V2 

Definition at line 24 of file BmnHgndRaw.h.

◆ EventPacketVersion [2/2]

Enumerator
ERR 
V1 
V2 
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, and EVENT_TYPE_2_PACKET_LENGTH.

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.

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 [1/2]

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

Definition at line 16 of file BmnHgndRaw.h.

Referenced by is_word_event_header().

◆ EVENT_HEADER [2/2]

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

Definition at line 16 of file BmnHgndRaw.h.

◆ EVENT_TYPE_1_PACKET_LENGTH [1/2]

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_1_PACKET_LENGTH [2/2]

uint16_t BmnHgndRaw::Block::EVENT_TYPE_1_PACKET_LENGTH = 8
staticconstexpr

Definition at line 42 of file BmnHgndRaw.h.

◆ EVENT_TYPE_2_PACKET_LENGTH [1/2]

uint16_t BmnHgndRaw::Block::EVENT_TYPE_2_PACKET_LENGTH = 18
staticconstexpr

Definition at line 43 of file BmnHgndRaw.h.

Referenced by get_block_size().

◆ EVENT_TYPE_2_PACKET_LENGTH [2/2]

uint16_t BmnHgndRaw::Block::EVENT_TYPE_2_PACKET_LENGTH = 18
staticconstexpr

Definition at line 43 of file BmnHgndRaw.h.

◆ HEADER_MASK [1/2]

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

Definition at line 15 of file BmnHgndRaw.h.

Referenced by is_word_event_header().

◆ HEADER_MASK [2/2]

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

Definition at line 15 of file BmnHgndRaw.h.