Belle II Software development
dhc_end_frame Struct Reference

DHC End frame data struct. More...

#include <PXDRawDataStructs.h>

Public Member Functions

unsigned int get_words (void) const
 get words
 
bool isFakedData (void) const
 is faked data
 
void print (void) const
 print
 
unsigned int get_dhc_id (void) const
 get dhc id (from word0)
 
unsigned int getErrorInfo (void) const
 get error info
 

Static Public Member Functions

static unsigned int getFixedSize (void)
 get fixed size
 

Public Attributes

const dhc_frame_header_word0 word0
 word0
 
const ubig16_t trigger_nr_lo
 trigger_nr_lo
 
const ubig32_t wordsinevent
 wordsinevent
 
const ubig32_t errorinfo
 errorinfo
 
const unsigned int crc32
 crc32
 

Detailed Description

DHC End 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 463 of file PXDRawDataStructs.h.

Member Function Documentation

◆ get_dhc_id()

unsigned int get_dhc_id ( void ) const
inline

get dhc id (from word0)

Definition at line 486 of file PXDRawDataStructs.h.

487 {
488 return (word0.getMisc() >> 5) & 0xF;
489 };

◆ get_words()

unsigned int get_words ( void ) const
inline

get words

Definition at line 472 of file PXDRawDataStructs.h.

473 {
474 return wordsinevent;
475 }

◆ getErrorInfo()

unsigned int getErrorInfo ( void ) const
inline

get error info

Definition at line 491 of file PXDRawDataStructs.h.

492 {
493 return errorinfo;
494 };

◆ getFixedSize()

static unsigned int getFixedSize ( void )
inlinestatic

get fixed size

Definition at line 477 of file PXDRawDataStructs.h.

478 {
479 return 16;
480 };

◆ isFakedData()

bool isFakedData ( void ) const

is faked data

Definition at line 168 of file PXDRawDataStructs.cc.

169 {
170 if (word0.data != 0x6000) return false;
171 if (trigger_nr_lo != 0) return false;
172 if (wordsinevent != 0) return false;
173 if (errorinfo != 0) return false;
174 if (crc32 != 0xF7BCA507) return false;
175 return true;
176 };

◆ print()

void print ( void ) const

print

Definition at line 177 of file PXDRawDataStructs.cc.

178 {
179 word0.print();
180 B2DEBUG(99, "DHC End Frame TNRLO $" << std::hex << trigger_nr_lo << " WIEVT $" << std::hex << wordsinevent << " ERR $" << std::hex
181 << errorinfo << " CRC " << std::hex << crc32);
182 };

Member Data Documentation

◆ crc32

const unsigned int crc32

crc32

Definition at line 468 of file PXDRawDataStructs.h.

◆ errorinfo

const ubig32_t errorinfo

errorinfo

Definition at line 467 of file PXDRawDataStructs.h.

◆ trigger_nr_lo

const ubig16_t trigger_nr_lo

trigger_nr_lo

Definition at line 465 of file PXDRawDataStructs.h.

◆ word0

word0

Definition at line 464 of file PXDRawDataStructs.h.

◆ wordsinevent

const ubig32_t wordsinevent

wordsinevent

Definition at line 466 of file PXDRawDataStructs.h.


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