Belle II Software development
|
The Raw Header class ver.1 ( the latest version since May, 2014 ) This class defines the format of the header of RawCOPPER class data and used for extracting header info from RawCOPPER object. More...
#include <RawHeader_v2.h>
Public Member Functions | |
RawHeader_v2 () | |
Default constructor. | |
RawHeader_v2 (int *) | |
Constructor using existing pointer to raw data buffer. | |
~RawHeader_v2 () | |
Destructor. | |
int * | GetBuffer () |
Get header contents. | |
void | SetBuffer (int *bufin) |
set buffer | |
void | CheckSetBuffer () |
initialize header | |
void | CheckGetBuffer () |
check if m_buffer exists | |
void | SetNwords (int nwords) |
set contents of header | |
void | SetEveNo (unsigned int eve_no) |
set contents of header | |
void | SetNodeID (unsigned int node_id) |
set contents of header | |
void | SetDataType (int data_type) |
set contents of header | |
void | SetTruncMask (int trunc_mask) |
set contents of header | |
void | SetFTSW2Words (unsigned int word1, unsigned int word2) |
Set values of FTSW info( trigger timing) | |
void | SetExpRunNumber (int *exprun_buf) |
Set a word consists of exp #, run # and subrun #. | |
void | SetOffset1stFINESSE (int offset_1st_FINESSE) |
set contents of header | |
void | SetOffset2ndFINESSE (int offset_2nd_FINESSE) |
set contents of header | |
void | SetOffset3rdFINESSE (int offset_3rd_FINESSE) |
set contents of header | |
void | SetOffset4thFINESSE (int offset_4th_FINESSE) |
set contents of header | |
int | GetNwords () |
set contents of header | |
int | GetHdrNwords () |
get contents of header | |
unsigned int | GetExpRunSubrun () |
get contents of header | |
int | GetExpNo () |
get a run/exp number combined word | |
int | GetRunNo () |
get contents of header | |
int | GetSubRunNo () |
get run # (14bit) | |
unsigned int | GetEveNo () |
get restart #(8bit) | |
unsigned int | GetNodeID () |
get contents of header | |
int | GetDataType () |
get contents of header | |
int | GetTruncMask () |
get contents of header | |
unsigned int | GetErrorBitFlag () |
get contents of header | |
void | AddErrorBitFlag (unsigned int error_bit_flag) |
Add Detected Error bitflag. | |
int | GetPacketCRCError () |
Get Packet CRC error flag. | |
int | GetEventCRCError () |
Get Detected Error bitflag. | |
int | GetOffset1stFINESSE () |
get contents of header | |
int | GetOffset2ndFINESSE () |
get contents of header | |
int | GetOffset3rdFINESSE () |
get contents of header | |
int | GetOffset4thFINESSE () |
get contents of header | |
unsigned int | GetTTCtimeTRGType () |
get contents of header | |
int | GetTTCtime () |
get contents of header | |
int | GetTRGType () |
get TRGType | |
unsigned int | GetTTUtime () |
get contents of header | |
void | GetTTTimeVal (struct timeval *tv) |
get contents of header | |
void | CheckHeader (int *buf) |
Get magic word to check the data corruption. | |
Private Attributes | |
int * | m_buffer |
do not record buffer ( RawCOPPER includes buffer of RawHeader_v2 and RawTrailer ) | |
The Raw Header class ver.1 ( the latest version since May, 2014 ) This class defines the format of the header of RawCOPPER class data and used for extracting header info from RawCOPPER object.
Definition at line 32 of file RawHeader_v2.h.
anonymous enum |
Definition at line 165 of file RawHeader_v2.h.
anonymous enum |
Definition at line 173 of file RawHeader_v2.h.
anonymous enum |
Definition at line 181 of file RawHeader_v2.h.
anonymous enum |
Definition at line 185 of file RawHeader_v2.h.
anonymous enum |
Definition at line 190 of file RawHeader_v2.h.
anonymous enum |
Definition at line 221 of file RawHeader_v2.h.
anonymous enum |
Definition at line 229 of file RawHeader_v2.h.
RawHeader_v2 | ( | ) |
Default constructor.
Definition at line 16 of file RawHeader_v2.cc.
|
explicit |
Constructor using existing pointer to raw data buffer.
Definition at line 23 of file RawHeader_v2.cc.
~RawHeader_v2 | ( | ) |
void CheckHeader | ( | int * | buf | ) |
Get magic word to check the data corruption.
check the contents of header
Definition at line 61 of file RawHeader_v2.cc.
|
inline |
|
inline |
|
private |
do not record buffer ( RawCOPPER includes buffer of RawHeader_v2 and RawTrailer )
Definition at line 236 of file RawHeader_v2.h.