Belle II Software development
dhc_ghost_frame Struct Reference

DHC Ghost frame data struct. More...

#include <PXDRawDataStructs.h>

Public Member Functions

unsigned int getFixedSize (void) const
 fixed length
 
void print (void) const
 print
 
unsigned short getDHEId (void) const
 get DHE Id (from word0)
 
unsigned short getDHPPort (void) const
 get DDHP port (from word0)
 
unsigned short getErrorBits (void) const
 get Error Bits
 

Public Attributes

const dhc_frame_header_word0 word0
 word0
 
const ubig16_t trigger_nr_lo
 trigger_nr_lo
 
const unsigned int crc32
 crc32
 

Detailed Description

DHC Ghost frame data struct.

Encapsules the access for different bits and data words See Data format definitions [BELLE2-NOTE-TE-2016-009] on https://docs.belle2.org/

Definition at line 432 of file PXDRawDataStructs.h.

Member Function Documentation

◆ getDHEId()

unsigned short getDHEId ( void  ) const
inline

get DHE Id (from word0)

Definition at line 446 of file PXDRawDataStructs.h.

447 {
448 return (word0.getMisc() >> 4) & 0x3F;
449 };
unsigned short getMisc(void) const
get misc
const dhc_frame_header_word0 word0
word0

◆ getDHPPort()

unsigned short getDHPPort ( void  ) const
inline

get DDHP port (from word0)

Definition at line 451 of file PXDRawDataStructs.h.

452 {
453 return (word0.getMisc()) & 0x3;
454 };

◆ getErrorBits()

unsigned short getErrorBits ( void  ) const

get Error Bits

Definition at line 159 of file PXDRawDataStructs.cc.

160 {
161 unsigned short value = (word0.data & 0xC) >> 2; // lower two bits
162 if (word0.data & 0x0400) value |= 0x4; // high bit
163 return value;
164 };

◆ getFixedSize()

unsigned int getFixedSize ( void  ) const
inline

fixed length

get fixed size

Definition at line 439 of file PXDRawDataStructs.h.

440 {
441 return 8;
442 };

◆ print()

void print ( void  ) const

print

Definition at line 152 of file PXDRawDataStructs.cc.

153 {
154 word0.print();
155 B2DEBUG(99, "DHC Ghost Frame TNRLO $" << std::hex << trigger_nr_lo << " DHE ID $" << getDHEId() << " DHP port $" << getDHPPort() <<
156 " CRC $");
157 };
const ubig16_t trigger_nr_lo
trigger_nr_lo
unsigned short getDHEId(void) const
get DHE Id (from word0)
unsigned short getDHPPort(void) const
get DDHP port (from word0)

Member Data Documentation

◆ crc32

const unsigned int crc32

crc32

Definition at line 435 of file PXDRawDataStructs.h.

◆ trigger_nr_lo

const ubig16_t trigger_nr_lo

trigger_nr_lo

Definition at line 434 of file PXDRawDataStructs.h.

◆ word0

word0

Definition at line 433 of file PXDRawDataStructs.h.


The documentation for this struct was generated from the following files: