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
 
unsigned int getFixedSize (void) const
 get fixed size
 
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
 

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 };
const dhc_frame_header_word0 word0
word0
unsigned short getMisc(void) const
get misc

◆ get_words()

unsigned int get_words ( void  ) const
inline

get words

Definition at line 472 of file PXDRawDataStructs.h.

473 {
474 return wordsinevent;
475 }
const ubig32_t wordsinevent
wordsinevent

◆ getErrorInfo()

unsigned int getErrorInfo ( void  ) const
inline

get error info

Definition at line 491 of file PXDRawDataStructs.h.

492 {
493 return errorinfo;
494 };
const ubig32_t errorinfo
errorinfo

◆ getFixedSize()

unsigned int getFixedSize ( void  ) const
inline

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 166 of file PXDRawDataStructs.cc.

167 {
168 if (word0.data != 0x6000) return false;
169 if (trigger_nr_lo != 0) return false;
170 if (wordsinevent != 0) return false;
171 if (errorinfo != 0) return false;
172 if (crc32 != 0xF7BCA507) return false;
173 return true;
174 };
const unsigned int crc32
crc32
const ubig16_t trigger_nr_lo
trigger_nr_lo

◆ print()

void print ( void  ) const

print

Definition at line 175 of file PXDRawDataStructs.cc.

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

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: