9#include <rawdata/dataobjects/PreRawCOPPERFormat_latest.h>
32 -
tmp_trailer.RAWTRAILER_NWORDS - SIZE_COPPER_DRIVER_TRAILER;
33 unsigned int chksum = 0;
34 for (
int i = min; i < max; i++) {
43#ifndef READ_OLD_B2LFEE_FORMAT_FILE
46 unsigned int eve_num = 0;
48 unsigned int eve[MAX_PCIE40_CH];
49 for (
int i = 0; i < MAX_PCIE40_CH; i++) {
50 eve[ i ] = 0xbaadf00d;
54 if (flag != 1) eve_num = eve[ i ];
55 if (eve_num != eve[ i ]) err_flag = 1;
66 "[FATAL] %s ch=%d : ERROR_EVENT : No HSLB data in COPPER data. Exiting... : eve 0x%x exp %d run %d sub %d\n %s %s %d\n",
69 __FILE__, __PRETTY_FUNCTION__, __LINE__);
70 printf(
"%s", err_buf); fflush(stdout);
76 vector<vector<unsigned int>> summary_table;
80 char err_buf_temp[2500];
83 sprintf(err_buf,
"[FATAL] %s ch=%d : ERROR_EVENT : CORRUPTED DATA: Different event number over HSLBs :", hostname, -1);
84 for (
unsigned i = 0; i < summary_table.size(); ++i) {
85 memcpy(err_buf_temp, err_buf,
sizeof(err_buf_temp));
86 sprintf(err_buf,
"%s [ch= %u ,val= %u (# of chs= %u )] ",
88 summary_table.at(i).at(0), summary_table.at(i).at(2), summary_table.at(i).at(1));
90 memcpy(err_buf_temp, err_buf,
sizeof(err_buf_temp));
91 sprintf(err_buf,
"%s : eve 0x%x exp %d run %d sub %d\n%s %s %d\n",
94 __FILE__, __PRETTY_FUNCTION__, __LINE__);
96 printf(
"[DEBUG] %s\n", err_buf);
98 for (
int i = 0; i < MAX_PCIE40_CH; ++i) {
99 printf(
"[DEBUG] ========== CRC check : block # %d finesse %d ==========\n", n, i);
104 printf(
"[DEBUG] ========== No CRC error. : block %d =========\n", n);
115 sprintf(err_buf,
"[FATAL] You need comment out READ_OLD_B2LFEE_FORMAT_FILE if you are handling a new data format\n%s %s %d\n",
116 __FILE__, __PRETTY_FUNCTION__, __LINE__);
117 printf(
"%s", err_buf); fflush(stdout);
125 unsigned int prev_evenum,
unsigned int* cur_evenum_rawcprhdr,
126 unsigned int prev_copper_ctr,
unsigned int* cur_copper_ctr,
127 unsigned int prev_exprunsubrun_no,
unsigned int* cur_exprunsubrun_no)
136 *cur_evenum_rawcprhdr =
GetEveNo(n);
138 if (*cur_evenum_rawcprhdr != evenum_feehdr) {
142 "[FATAL] %s ch=%d : ERROR_EVENT : Event # in PreRawCOPPERFormat_latest header and FEE header is different : cprhdr 0x%x feehdr 0x%x : Exiting... : eve 0x%x exp %d run %d sub %d\n%s %s %d\n",
144 *cur_evenum_rawcprhdr, evenum_feehdr,
146 __FILE__, __PRETTY_FUNCTION__, __LINE__);
155 if (prev_exprunsubrun_no == *cur_exprunsubrun_no) {
156 if ((
unsigned int)(prev_evenum + 1) != *cur_evenum_rawcprhdr) {
160 "[FATAL] %s ch=%d : ERROR_EVENT : Event # jump : i %d prev 0x%x cur 0x%x : prevrun %.8x currun %.8x: Exiting... : eve 0x%x exp %d run %d sub %d\n%s %s %d\n",
162 n, prev_evenum, *cur_evenum_rawcprhdr, prev_exprunsubrun_no, *cur_exprunsubrun_no,
164 __FILE__, __PRETTY_FUNCTION__, __LINE__);
167 if ((
unsigned int)(prev_copper_ctr + 1) != *cur_copper_ctr) {
171 "[FATAL] %s ch=%d : ERROR_EVENT : COPPER counter jump : i %d prev 0x%x cur 0x%x : eve 0x%x exp %d run %d sub %d\n%s %s %d\n",
173 n, prev_copper_ctr, *cur_copper_ctr,
175 __FILE__, __PRETTY_FUNCTION__, __LINE__);
179 printf(
"[DEBUG] New run started. cur run %.8x prev. run %.8x cur eve %.8x prev eve %8.x : eve 0x%x exp %d run %d sub %d\n",
180 *cur_exprunsubrun_no, prev_exprunsubrun_no, *cur_evenum_rawcprhdr, prev_evenum,
184 if ((
unsigned int)
GetRunNo(n) != (prev_exprunsubrun_no & RawHeader_latest::RUNNO_MASK) >> RawHeader_latest::RUNNO_SHIFT) {
185 if (*cur_evenum_rawcprhdr != 0) {
187 unsigned int eve[MAX_PCIE40_CH];
188 for (
int i = 0; i < MAX_PCIE40_CH ; ++i) {
189 eve[ i ] = 0xbaadf00d;
196 vector<vector<unsigned int>> summary_table;
201 "[FATAL] %s ch=%d : ERROR_EVENT : Invalid Event # at the beginning of the run (It should be zero.): preveve 0x%x cureve 0x%x : prev(exp %u run %u sub %u ) cur(exp %u run %u sub %u ) (",
203 prev_evenum, *cur_evenum_rawcprhdr,
204 prev_exprunsubrun_no >> 22, (prev_exprunsubrun_no >> 8) & 0x3FFF, prev_exprunsubrun_no & 0xFF,
205 *cur_exprunsubrun_no >> 22, (*cur_exprunsubrun_no >> 8) & 0x3FFF, *cur_exprunsubrun_no & 0xFF);
207 char err_buf_temp[2500];
208 for (
unsigned i = 0; i < summary_table.size(); ++i) {
209 memcpy(err_buf_temp, err_buf,
sizeof(err_buf_temp));
210 sprintf(err_buf,
"%s [ch= %u ,val= %u (# of chs= %u )] ",
212 summary_table.at(i).at(0), summary_table.at(i).at(2), summary_table.at(i).at(1));
214 memcpy(err_buf_temp, err_buf,
sizeof(err_buf_temp));
215 sprintf(err_buf,
"%s Exiting... : eve 0x%x exp %d run %d sub %d\n%s %s %d\n",
218 __FILE__, __PRETTY_FUNCTION__, __LINE__);
238 "[FATAL] %s ch=%d : ERROR_EVENT : COPPER driver checkSum error : block %d : length %d eve 0x%x : Trailer chksum 0x%.8x : calcd. now 0x%.8x : eve 0x%x exp %d run %d sub %d\n%s %s %d\n",
242 __FILE__, __PRETTY_FUNCTION__, __LINE__);
255 "[FATAL] %s ch=%d : ERROR_EVENT : PreRawCOPPERFormat_latest checksum error : block %d : length %d eve 0x%x : Trailer chksum 0x%.8x : calcd. now 0x%.8x : eve 0x%x exp %d run %d sub %d\n %s %s %d\n",
259 __FILE__, __PRETTY_FUNCTION__, __LINE__);
264 printf(
"%s", err_buf); fflush(stdout);
265 printf(
"[DEBUG] ========== dump a data blcok : block # %d==========\n", n);
267 for (
int i = 0; i < MAX_PCIE40_CH; i++) {
268 printf(
"[DEBUG] ========== CRC check : block # %d finesse %d ==========\n", n, i);
273 printf(
"[DEBUG] ========== No CRC error : block %d =========\n", n);
285 sprintf(err_buf,
"[FATAL] This function is not supported. Exiting...: \n%s %s %d\n",
286 __FILE__, __PRETTY_FUNCTION__, __LINE__);
287 printf(
"[DEBUG] %s\n", err_buf);
295#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
296 CheckB2LFEEHeaderVersion(n);
300 unsigned int temp_utime = 0, temp_ctime_trgtype = 0, temp_eve = 0, temp_exprun = 0;
301 unsigned int temp_ctime_trgtype_footer, temp_eve_footer;
302 unsigned int utime[MAX_PCIE40_CH], ctime_trgtype[MAX_PCIE40_CH], eve[MAX_PCIE40_CH], exprun[MAX_PCIE40_CH];
305 memset(utime, 0,
sizeof(utime));
306 memset(ctime_trgtype, 0,
sizeof(ctime_trgtype));
307 memset(eve, 0,
sizeof(eve));
308 memset(exprun, 0,
sizeof(exprun));
311 for (
int i = 0; i < MAX_PCIE40_CH; i++) {
313 if (finesse_nwords > 0) {
315 ctime_trgtype[ i ] =
m_buffer[ offset_finesse + SIZE_B2LHSLB_HEADER + POS_TT_CTIME_TYPE ];
316 utime[ i ] =
m_buffer[ offset_finesse + SIZE_B2LHSLB_HEADER + POS_TT_UTIME ];
317 eve[ i ] =
m_buffer[ offset_finesse + SIZE_B2LHSLB_HEADER + POS_TT_TAG ];
318 exprun[ i ] =
m_buffer[ offset_finesse + SIZE_B2LHSLB_HEADER + POS_EXP_RUN ];
319 temp_ctime_trgtype_footer =
320 m_buffer[ offset_finesse + finesse_nwords - (
static_cast<int>(SIZE_B2LFEE_TRAILER) + SIZE_B2LHSLB_TRAILER) + POS_TT_CTIME_B2LFEE ];
322 m_buffer[ offset_finesse + finesse_nwords - (
static_cast<int>(SIZE_B2LFEE_TRAILER) + SIZE_B2LHSLB_TRAILER) + POS_CHKSUM_B2LFEE ];
325 temp_ctime_trgtype = ctime_trgtype[ i ];
326 temp_utime = utime[ i ];
328 temp_exprun = exprun[ i ];
332 if (temp_ctime_trgtype != ctime_trgtype[ i ] || temp_utime != utime[ i ] ||
333 temp_eve != eve[ i ] || temp_exprun != exprun[ i ]) {
337 for (
int j = 0; j < MAX_PCIE40_CH; j++) {
339 printf(
"[DEBUG] %s ch=%d : FINESSE #=%d buffsize %d ctimeTRGtype 0x%.8x utime 0x%.8x eve 0x%.8x exprun 0x%.8x\n",
341 j,
GetFINESSENwords(n, j), ctime_trgtype[ j ], utime[ j ], eve[ j ], exprun[ j ]);
346 char err_buf_1[2500], err_buf_2[3000], err_buf_3[3500];
348 "[FATAL] %s ch=%d : ERROR_EVENT : mismatch header value over FINESSEs. Exiting...",
351 "%s FINESSE #=%d buffsize %d ctimeTRGtype 0x%.8x utime 0x%.8x eve 0x%.8x exprun 0x%.8x",
353 first_ch,
GetFINESSENwords(n, first_ch), ctime_trgtype[ first_ch ], utime[ first_ch ], eve[ first_ch ], exprun[ first_ch ]);
355 "%s FINESSE #=%d buffsize %d ctimeTRGtype 0x%.8x utime 0x%.8x eve 0x%.8x exprun 0x%.8x",
357 i,
GetFINESSENwords(n, i), ctime_trgtype[ i ], utime[ i ], eve[ i ], exprun[ i ]);
358 sprintf(err_buf,
"%s\n %s %s %d\n",
360 __FILE__, __PRETTY_FUNCTION__, __LINE__);
361 printf(
"%s", err_buf); fflush(stdout);
365 }
else if (temp_ctime_trgtype != temp_ctime_trgtype_footer ||
366 (temp_eve & 0xffff) != ((temp_eve_footer >> 16) & 0xffff)) {
370 "[FATAL] %s ch=%d : ERROR_EVENT : mismatch(finesse %d) between header(ctime %.8x eve %.8x) and footer(ctime %.8x eve_crc16 %.8x). Exiting...\n %s %s %d\n",
372 i, temp_ctime_trgtype, temp_eve, temp_ctime_trgtype_footer, temp_eve_footer,
373 __FILE__, __PRETTY_FUNCTION__, __LINE__);
374 printf(
"%s", err_buf); fflush(stdout);
382 for (
int i = 0; i < MAX_PCIE40_CH; i++) {
384 printf(
"[DEBUG] ========== CRC check : block # %d finesse %d ==========\n", n, i);
386 printf(
"[DEBUG] ========== CRC check is done. : block %d =========\n", n);
398 unsigned int ,
unsigned int* )
401 sprintf(err_buf,
"[FATAL] This function is not supported. Exiting...: \n%s %s %d\n",
402 __FILE__, __PRETTY_FUNCTION__, __LINE__);
403 printf(
"[DEBUG] %s\n", err_buf);
410#ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
411void PreRawCOPPERFormat_latest::CheckB2LFEEHeaderVersion(
int n)
414 for (
int i = 0; i < MAX_PCIE40_CH; i++) {
417 if ((temp_buf[ 3 ] & 0x40000000) == 0) {
421 printf(
"[DEBUG] \033[31m");
422 printf(
"[DEBUG] ===Firmware ver. ERROR===\n ");
423 printf(
"[DEBUG] FTSW and b2tt firmwares was updated on Nov.22, 2013 and the header format attached by B2link was changed in the new firmwares.\n");
424 printf(
"[DEBUG] If you are going to take data now, Please update the firmware.\n");
425 printf(
"[DEBUG] For details, please see Nakao-san's e-mail [b2link_ml:0111] Re: [daq2ml:0159] beta version of trigger timing receiver firmware (b2tt) on bdaq SVN\n");
426 printf(
"[DEBUG] Or if you are going to read data taken before the update, please use basf2 software before svn revision 7419\n");
427 printf(
"[DEBUG] About the format please see Nakao-san's B2GM slides(p. 13 and 15) http://kds.kek.jp/getFile.py/access?contribId=143&sessionId=38&resId=0&materialId=slides&confId=13911.\n");
428 printf(
"[DEBUG] Sorry for inconvenience.\n");
429 printf(
"[DEBUG] \033[0m");
434 sprintf(err_buf,
"[FATAL] %s ch=%d : ERROR_EVENT : FTSW and b2tt firmwares are old. Exiting...\n %s %s %d\n",
436 __FILE__, __PRETTY_FUNCTION__, __LINE__);
446 if (i == MAX_PCIE40_CH - 1) {
451 sprintf(err_buf,
"[FATAL] %s ch=%d : ERROR_EVENT : PreRawCOPPERFormat_latest contains no FINESSE data. Exiting...\n %s %s %d\n",
453 __FILE__, __PRETTY_FUNCTION__, __LINE__);
454 printf(
"%s", err_buf); fflush(stdout);
472 radblk_fmt.
SetBuffer(bufin, nwords, delete_flag, num_events, num_nodes);
474 int reduced_nwords = 0;
476 int num_nodes_in_sendblock = radblk_fmt.
GetNumNodes();
477 for (
int l = 0; l < num_nodes_in_sendblock; l++) {
478 int entry_id = l + k * num_nodes_in_sendblock;
484 int temp_delete_flag = 0, temp_num_eve = 1, temp_num_nodes = 1;
489 temp_delete_flag, temp_num_eve,
495 return reduced_nwords;
507 radblk_fmt.
SetBuffer(bufin, nwords, delete_flag, num_events, num_nodes);
509 int pos_nwords_to = 0;
511 int num_nodes_in_sendblock = radblk_fmt.
GetNumNodes();
512 for (
int l = 0; l < num_nodes_in_sendblock; l++) {
513 int entry_id = l + k * num_nodes_in_sendblock;
516 radblk_fmt.
CopyBlock(entry_id, buf_to + pos_nwords_to);
530 *nwords_to = pos_nwords_to;
539 sprintf(err_buf,
"[FATAL] This function is not supported. Exiting...: \n%s %s %d\n",
540 __FILE__, __PRETTY_FUNCTION__, __LINE__);
541 printf(
"[DEBUG] %s\n", err_buf);
550 sprintf(err_buf,
"[FATAL] This function is not supported. Exiting...: \n%s %s %d\n",
551 __FILE__, __PRETTY_FUNCTION__, __LINE__);
552 printf(
"[DEBUG] %s\n", err_buf);
561 if ((finesse_buf[ POS_MAGIC_B2LHSLB ] & 0xFFFF0000) == B2LHSLB_HEADER_MAGIC &&
562 ((finesse_buf[ finesse_nwords - SIZE_B2LHSLB_TRAILER + POS_CHKSUM_B2LHSLB ] & 0xFFFF0000)
563 == B2LHSLB_TRAILER_MAGIC)) {
569 "Invalid B2LHSLB magic words : header 0x%x (= should be ffaa**** ) or trailer 0x%x (= should be ff55**** ). Exiting... :%s %s %d\n",
570 finesse_buf[ POS_MAGIC_B2LHSLB ],
571 finesse_buf[ finesse_nwords - SIZE_B2LHSLB_TRAILER + POS_CHKSUM_B2LHSLB ],
572 __FILE__, __PRETTY_FUNCTION__, __LINE__);
574 printf(
"%s", err_buf); fflush(stdout);
588 int nwords =
GetFINESSENwords(n, finesse_num) - (
static_cast<int>(SIZE_B2LHSLB_HEADER) + SIZE_B2LFEE_TRAILER +
589 SIZE_B2LHSLB_TRAILER);
590 unsigned short temp_crc16 = CalcCRC16LittleEndian(0xffff, buf, nwords);
596 - ((SIZE_B2LFEE_TRAILER - POS_CHKSUM_B2LFEE) + SIZE_B2LHSLB_TRAILER) ;
598 if ((
unsigned short)(*buf & 0xFFFF) != temp_crc16) {
603 printf(
"[FATAL] %s ch=%d : ERROR_EVENT : PRE CRC16 error : slot %c : B2LCRC16 %x Calculated CRC16 %x : Nwords of FINESSE buf %d\n",
604 hostname, finesse_num,
608 printf(
"%.8x ", temp_buf[ k ]);
609 if ((k + 1) % 10 == 0) {
616 "[FATAL] %s ch=%d : ERROR_EVENT : slot %c : B2LCRC16 (%.4x) differs from one ( %.4x) calculated by PreRawCOPPERfromat class. Exiting...\n %s %s %d\n",
617 hostname, finesse_num,
618 65 + finesse_num, (
unsigned short)(*buf & 0xFFFF), temp_crc16,
619 __FILE__, __PRETTY_FUNCTION__, __LINE__);
620 printf(
"%s", err_buf); fflush(stdout);
635 sprintf(err_buf,
"[FATAL] This function is not supported. (%u) Exiting...: \n%s %s %d\n",
637 __FILE__, __PRETTY_FUNCTION__, __LINE__);
638 printf(
"[DEBUG] %s\n", err_buf);
644 int*
const(&detector_buf_ch)[MAX_PCIE40_CH],
645 int const(&nwords_ch)[MAX_PCIE40_CH],
648 int* packed_buf = NULL;
654 for (
int i = 0; i < MAX_PCIE40_CH; i++) {
655 if (detector_buf_ch[ i ] == NULL || nwords_ch[ i ] <= 0)
continue;
656 length_nwords += nwords_ch[ i ];
657 length_nwords +=
static_cast<int>(SIZE_B2LHSLB_HEADER) + SIZE_B2LFEE_HEADER + SIZE_B2LFEE_TRAILER + SIZE_B2LHSLB_TRAILER;
661 packed_buf =
new int[ length_nwords ];
662 memset(packed_buf, 0,
sizeof(
int) * length_nwords);
669 packed_buf[
tmp_header.POS_NWORDS ] = length_nwords;
670 packed_buf[
tmp_header.POS_VERSION_HDRNWORDS ] = 0x7f7f8000
676 packed_buf[
tmp_header.POS_TTCTIME_TRGTYPE ] = (rawcpr_info.
tt_ctime & 0x7FFFFFF) << 4;
683 for (
int i = 1; i < MAX_PCIE40_CH; i++) {
685 if (nwords_ch[ ch - 1 ] == 0) {
686 packed_buf[
tmp_header.POS_CH_POS_TABLE + ch ] = packed_buf[
tmp_header.POS_CH_POS_TABLE + (ch - 1) ];
688 packed_buf[
tmp_header.POS_CH_POS_TABLE + ch ] = packed_buf[
tmp_header.POS_CH_POS_TABLE + (ch - 1) ] +
689 nwords_ch[ ch - 1 ] + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER + SIZE_B2LFEE_TRAILER + SIZE_B2LHSLB_TRAILER;
695 for (
int i = 0; i < MAX_PCIE40_CH; i++) {
696 if (detector_buf_ch[ i ] == NULL || nwords_ch[ i ] <= 0)
continue;
699 packed_buf[ poswords_to + POS_MAGIC_B2LHSLB ] = 0xffaa0000 | (0xffff & rawcpr_info.
eve_num);
700 poswords_to += SIZE_B2LHSLB_HEADER;
701 int* crc16_start = &(packed_buf[ poswords_to ]);
704 packed_buf[ poswords_to + POS_TT_CTIME_TYPE ] = (rawcpr_info.
tt_ctime & 0x7FFFFFF) << 4;
705 unsigned int temp_ctime_type = packed_buf[ poswords_to + POS_TT_CTIME_TYPE ];
706 packed_buf[ poswords_to + POS_TT_TAG ] = rawcpr_info.
eve_num;
707 packed_buf[ poswords_to + POS_TT_UTIME ] = rawcpr_info.
tt_utime;
710 packed_buf[ poswords_to + POS_B2L_CTIME ] = (rawcpr_info.
b2l_ctime & 0x7FFFFFF) << 4;
711 poswords_to += SIZE_B2LFEE_HEADER;
714 memcpy(packed_buf + poswords_to, detector_buf_ch[ i ], nwords_ch[ i ]*
sizeof(
int));
715 poswords_to += nwords_ch[ i ];
718 packed_buf[ poswords_to + POS_TT_CTIME_B2LFEE ] = temp_ctime_type;
721 unsigned short crc16 = CalcCRC16LittleEndian(0xffff, crc16_start, nwords_ch[ i ] + SIZE_B2LFEE_HEADER);
722 packed_buf[ poswords_to + POS_CHKSUM_B2LFEE ] = ((0xffff & rawcpr_info.
eve_num) << 16) | (crc16 & 0xffff);
723 poswords_to += SIZE_B2LFEE_TRAILER;
726 packed_buf[ poswords_to + POS_CHKSUM_B2LHSLB ] = 0xff550000;
727 poswords_to += SIZE_B2LHSLB_TRAILER;
731 unsigned int chksum = 0;
732 for (
int i = 0; i < poswords_to; i++) {
733 chksum ^= packed_buf[ i ];
735 packed_buf[ poswords_to +
tmp_trailer.POS_CHKSUM ] = chksum;
740 *packed_buf_nwords = poswords_to;
struct to contain header information used by RawCOPPERFormat::Packer()
unsigned int b2l_ctime
32bit unitx time at trigger timing distributed by FTSW. For details, see Nakao-san's belle2link user ...
unsigned int eve_num
Run # and subrun # ( 22bit )
unsigned int tt_ctime
Node ID (32bit)
unsigned int tt_utime
27bit clock ticks at trigger timing distributed by FTSW. For details, see Nakao-san's belle2link user...
unsigned int node_id
Event Number (32bit)
unsigned int run_subrun_num
Experiment number (10bit)
unsigned int exp_num
Experiment number (10bit)
unsigned int GetDriverChkSum(int n) OVERRIDE_CPP17
read COPPER driver's checksum value
unsigned int GetCOPPERCounter(int n) OVERRIDE_CPP17
get posistion of COPPER block in unit of word
unsigned int GetEveNo(int n) OVERRIDE_CPP17
get subrun #(8bit)
int GetHdrNwords()
get contents of header
int GetTrlNwords()
Set magic word.
unsigned int GetExpRunSubrun(int n) OVERRIDE_CPP17
get Experimental # from header
int * GetFINESSEBuffer(int n, int finesse_num) OVERRIDE_CPP17
Get a pointer to a FINESSE buffer.
int GetExpNo(int n) OVERRIDE_CPP17
get Experimental # from header
unsigned int GetChksum()
Set # of trailer words.
void SetBuffer(int *bufin)
return buffer
int GetRunNo(int n) OVERRIDE_CPP17
Exp# (10bit) run# (14bit) restart # (8bit)
int * GetRawTrlBufPtr(int n) OVERRIDE_CPP17
get buffer pointer of rawcopper trailer
int GetFINESSENwords(int n, int finesse_num) OVERRIDE_CPP17
Get the size of a finesse buffer.
int GetSubRunNo(int n) OVERRIDE_CPP17
get run # (14bit)
Abstract base class for different kinds of events.