lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Drp::EvtBatcherHeader Class Reference

Packed header at the start of an AxiStream batcher event: two 4-bit fields (version, width code) and an 8-bit sequence count. More...

#include <EventBatcher.hh>

Public Member Functions

void * next () const
 Return the address one line (lineWidth(width) bytes) after this header, where the first subframe starts.
 

Static Public Member Functions

static unsigned lineWidth (unsigned w)
 Return the line width in bytes for width code w: 2 shifted left by w.
 

Public Attributes

unsigned version:4
 4-bit version field; not read by the code in this header.
 
unsigned width:4
 4-bit width code; lineWidth(width) is the line size used by next() and EvtBatcherIterator.
 
uint8_t sequence_count
 8-bit sequence count; not read by the code in this header.
 

Detailed Description

Packed header at the start of an AxiStream batcher event: two 4-bit fields (version, width code) and an 8-bit sequence count.

It occupies one line of lineWidth(width) bytes.

Member Function Documentation

◆ lineWidth()

static unsigned Drp::EvtBatcherHeader::lineWidth ( unsigned  w)
inlinestatic

Return the line width in bytes for width code w: 2 shifted left by w.

◆ next()

void * Drp::EvtBatcherHeader::next ( ) const
inline

Return the address one line (lineWidth(width) bytes) after this header, where the first subframe starts.

Member Data Documentation

◆ sequence_count

uint8_t Drp::EvtBatcherHeader::sequence_count

8-bit sequence count; not read by the code in this header.

◆ version

unsigned Drp::EvtBatcherHeader::version

4-bit version field; not read by the code in this header.

◆ width

unsigned Drp::EvtBatcherHeader::width

4-bit width code; lineWidth(width) is the line size used by next() and EvtBatcherIterator.


The documentation for this class was generated from the following file: