Belle II Software development
|
DHC frame wrapper class. More...
#include <PXDRawDataStructs.h>
Public Member Functions | |
dhc_frames (void) | |
set default values | |
int | getFrameType (void) |
get type of frame | |
void | set (const void *d, unsigned int t) |
set data and type (and length to 0) | |
void | set (const void *d, unsigned int t, unsigned int l) |
set data, type and length | |
void | set (const void *d) |
set data (get type from dhc_frame_header_word0 and set length to 0) | |
unsigned int | getEventNrLo (void) const |
get event nr lo (from data) | |
void | check_padding (PXDErrorFlags &errormask) |
check padding and return it | |
void | check_crc (PXDErrorFlags &errormask, bool ignore_crc_flag=false) |
check crc and return it | |
unsigned int | getFixedSize (void) |
get fixed size | |
DHC frame wrapper class.
Contains functions common for all type of frames (CRC etc) Provides a union pointer to the different struct types See Data format definitions [BELLE2-NOTE-TE-2016-009] on https://docs.belle2.org/
Definition at line 550 of file PXDRawDataStructs.h.
|
inline |
void check_crc | ( | PXDErrorFlags & | errormask, |
bool | ignore_crc_flag = false |
||
) |
check crc and return it
Definition at line 233 of file PXDRawDataStructs.cc.
void check_padding | ( | PXDErrorFlags & | errormask | ) |
check padding and return it
TODO many false positives, we should remove that check after we KNOW that it has been fixed in DHH Firmware
Definition at line 223 of file PXDRawDataStructs.cc.
|
inline |
get event nr lo (from data)
Definition at line 614 of file PXDRawDataStructs.h.
unsigned int getFixedSize | ( | void | ) |
get fixed size
size is not a fixed number
size is not a fixed number
size is not a fixed number
size is not a fixed number
Definition at line 262 of file PXDRawDataStructs.cc.
|
inline |
|
inline |
set data (get type from dhc_frame_header_word0 and set length to 0)
d | data |
Definition at line 607 of file PXDRawDataStructs.h.
|
inline |
set data and type (and length to 0)
d | data |
t | type |
Definition at line 587 of file PXDRawDataStructs.h.
|
inline |
set data, type and length
d | data |
t | type |
l | length |
Definition at line 598 of file PXDRawDataStructs.h.
const void* data |
no type
Definition at line 553 of file PXDRawDataStructs.h.
const dhc_commode_frame* data_commode_frame |
data_commode_frame
Definition at line 559 of file PXDRawDataStructs.h.
const dhc_end_frame* data_dhc_end_frame |
data_dhc_end_frame
Definition at line 556 of file PXDRawDataStructs.h.
const dhc_start_frame* data_dhc_start_frame |
data_dhc_start_frame
Definition at line 555 of file PXDRawDataStructs.h.
const dhc_dhe_end_frame* data_dhe_end_frame |
data_dhe_end_frame
Definition at line 558 of file PXDRawDataStructs.h.
const dhc_dhe_start_frame* data_dhe_start_frame |
data_dhe_start_frame
Definition at line 557 of file PXDRawDataStructs.h.
const dhc_direct_readout_frame* data_direct_readout_frame |
data_direct_readout_frame
Definition at line 560 of file PXDRawDataStructs.h.
const dhc_direct_readout_frame_raw* data_direct_readout_frame_raw |
data_direct_readout_frame_raw
Definition at line 561 of file PXDRawDataStructs.h.
const dhc_direct_readout_frame_zsd* data_direct_readout_frame_zsd |
data_direct_readout_frame_zsd
Definition at line 562 of file PXDRawDataStructs.h.
const dhc_ghost_frame* data_ghost_frame |
data_ghost_frame
Definition at line 563 of file PXDRawDataStructs.h.
const dhc_onsen_roi_frame* data_onsen_roi_frame |
data_onsen_roi_frame
Definition at line 564 of file PXDRawDataStructs.h.
const dhc_onsen_trigger_frame* data_onsen_trigger_frame |
data_onsen_trigger_frame
Definition at line 554 of file PXDRawDataStructs.h.
unsigned int datasize |
datasize
Definition at line 566 of file PXDRawDataStructs.h.
int length |
length
Definition at line 568 of file PXDRawDataStructs.h.
int type |
type
Definition at line 567 of file PXDRawDataStructs.h.