 |
Belle II Software
release-05-01-25
|
8 #ifndef RAWCOPPERFORMAT_H
9 #define RAWCOPPERFORMAT_H
15 #include <rawdata/RawCOPPERPackerInfo.h>
16 #include <rawdata/dataobjects/RawDataBlockFormat.h>
23 #define DETECTOR_MASK 0xFF000000 // tentative
24 #define COPPERID_MASK 0x00FFFFFF // tentative
25 #define SVD_ID 0x01000000 // tentative
26 #define CDC_ID 0x02000000 // tentative
27 #define TOP_ID 0x03000000 // tentative
28 #define ARICH_ID 0x04000000 // tentative
29 #define BECL_ID 0x05000000 // tentative
30 #define EECL_ID 0x06000000 // tentative
31 #define BKLM_ID 0x07000000 // tentative
32 #define EKLM_ID 0x08000000 // tentative
33 #define TRGDATA_ID 0x10000000 // tentative
34 #define CDCTRGDATA_ID 0x11000000 // tentative
35 #define TOPTRGDATA_ID 0x12000000 // tentative
36 #define ECLTRGDATA_ID 0x13000000 // tentative
37 #define KLMTRGDATA_ID 0x14000000 // tentative
38 #define GDLTRGDATA_ID 0x15000000 // tentative
182 virtual unsigned int GetEveNo(
int n) = 0;
204 virtual unsigned int GetNodeID(
int n) = 0;
281 #ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
282 virtual void CheckB2LFEEHeaderVersion(
int n) = 0;
294 unsigned int prev_eve32,
unsigned int prev_exprunsubrun_no,
unsigned int* cur_exprunsubrun_no) = 0;
305 unsigned int prev_evenum,
unsigned int* cur_evenum,
306 unsigned int prev_copper_ctr,
unsigned int* cur_copper_ctr,
307 unsigned int prev_exprunsubrun_no,
unsigned int* cur_exprunsubrun_no) = 0;
319 virtual void GetTTTimeVal(
int n,
struct timeval* tv) = 0;
326 int* detector_buf_1st,
int nwords_1st,
327 int* detector_buf_2nd,
int nwords_2nd,
328 int* detector_buf_3rd,
int nwords_3rd,
329 int* detector_buf_4th,
int nwords_4th,
381 printf(
"[DEBUG] Data size(0x%.8x) is smaller than data position info(0x%.8x). Exiting...\n",
m_nwords, pos_nwords);
382 for (
int i = 0; i <
m_nwords; i++) {
384 if ((i % 10) == 9) printf(
"\n");
386 B2FATAL(
"Data size is smaller than data position info. Exiting...");
395 printf(
"[DEBUG] Data size(0x%.8x) is smaller than data position info(0x%.8x). Exiting...\n",
m_nwords, pos_nwords);
396 for (
int i = 0; i <
m_nwords; i++) {
398 if ((i % 10) == 9) printf(
"\n");
400 B2FATAL(
"Data size is smaller than data position info. Exiting...");
409 printf(
"[DEBUG] Data size(0x%.8x) is smaller than data position info(0x%.8x). Exiting...\n",
m_nwords, pos_nwords);
410 for (
int i = 0; i <
m_nwords; i++) {
412 if ((i % 10) == 9) printf(
"\n");
414 B2FATAL(
"Data size is smaller than data position info. Exiting...");
423 printf(
"[DEBUG] Data size(0x%.8x) is smaller than data position info(0x%.8x). Exiting...\n",
m_nwords, pos_nwords);
424 for (
int i = 0; i <
m_nwords; i++) {
426 if ((i % 10) == 9) printf(
"\n");
428 B2FATAL(
"Data size is smaller than data position info. Exiting...");
struct to contain header information used by RawCOPPERFormat::Packer()
virtual int GetOffset3rdFINESSE(int n)
get # of offset words for FINESSE slot C buffer position
virtual int GetOffset2ndFINESSE(int n)
get # of offset words for FINESSE slot B buffer position
virtual int * Get4thFINESSEBuffer(int n)
get FINESSE buffer pointer for slot D
virtual int * Get1stFINESSEBuffer(int n)
get FINESSE buffer pointer for slot A
virtual int * Get2ndFINESSEBuffer(int n)
get FINESSE buffer pointer for slot B
virtual int GetOffset4thFINESSE(int n)
get # of offset words for FINESSE slot D buffer position
virtual int * Get3rdFINESSEBuffer(int n)
get FINESSE buffer pointer for slot C
Abstract base class for different kinds of events.
virtual int * GetRawHdrBufPtr(int n)
get buffer pointer of rawcopper header(Currently same as GetBufferPos)