 |
Belle II Software
release-05-02-19
|
9 #ifndef RAWCOPPERFORMAT_V0_H
10 #define RAWCOPPERFORMAT_V0_H
15 #include <rawdata/dataobjects/RawCOPPERFormat.h>
16 #include <rawdata/dataobjects/RawHeader_v0.h>
17 #include <rawdata/dataobjects/RawTrailer_v0.h>
100 unsigned int GetEveNo(
int n) OVERRIDE_CPP17;
110 void AddErrorBitFlag(
int n,
unsigned int error_bit_flag) OVERRIDE_CPP17;
113 unsigned int GetNodeID(
int n) OVERRIDE_CPP17;
175 #ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
176 void CheckB2LFEEHeaderVersion(
int n) OVERRIDE_CPP17;
184 unsigned int GetTTUtime(
int n) OVERRIDE_CPP17;
188 unsigned int prev_exprunsubrun_no,
unsigned int* cur_exprunsubrun_no) OVERRIDE_CPP17;
198 unsigned int prev_evenum,
unsigned int* cur_evenum,
199 unsigned int prev_copper_ctr,
unsigned int* cur_copper_ctr,
200 unsigned int prev_exprunsubrun_no,
unsigned int* cur_exprunsubrun_no) OVERRIDE_CPP17;
212 void GetTTTimeVal(
int n,
struct timeval* tv) OVERRIDE_CPP17;
216 int* detector_buf_1st,
int nwords_1st,
217 int* detector_buf_2nd,
int nwords_2nd,
218 int* detector_buf_3rd,
int nwords_3rd,
219 int* detector_buf_4th,
int nwords_4th,
227 DATA_FORMAT_VERSION = 0
235 SIZE_COPPER_DRIVER_HEADER = 7,
236 SIZE_COPPER_DRIVER_TRAILER = 2
243 POS_MAGIC_COPPER_1 = 0,
244 POS_EVE_NUM_COPPER = 1,
245 POS_SUBSYSTEM_ID = 2,
248 POS_MAGIC_COPPER_2 = 7,
250 POS_CH_A_DATA_LENGTH = 9,
251 POS_CH_B_DATA_LENGTH = 10,
252 POS_CH_C_DATA_LENGTH = 11,
253 POS_CH_D_DATA_LENGTH = 12,
255 SIZE_COPPER_HEADER = 13
264 POS_MAGIC_COPPER_3 = 0,
265 POS_CHKSUM_COPPER = 1,
266 POS_MAGIC_COPPER_4 = 2,
268 SIZE_COPPER_TRAILER = 3
275 POS_MAGIC_B2LHSLB = 0,
277 SIZE_B2LHSLB_HEADER = 1
284 POS_CHKSUM_B2LHSLB = 0,
285 SIZE_B2LHSLB_TRAILER = 1
292 POS_TT_CTIME_TYPE = 0,
297 SIZE_B2LFEE_HEADER = 5
305 POS_CHKSUM_B2LFEE = 0,
306 SIZE_B2LFEE_TRAILER = 1
313 COPPER_MAGIC_DRIVER_HEADER = 0x7FFF0008,
314 COPPER_MAGIC_FPGA_HEADER = 0xFFFFFAFA,
315 COPPER_MAGIC_FPGA_TRAILER = 0xFFFFF5F5,
316 COPPER_MAGIC_DRIVER_TRAILER = 0x7FFF0009
348 -
tmp_trailer.RAWTRAILER_NWORDS - SIZE_COPPER_DRIVER_TRAILER;
419 return (
unsigned int)(
m_buffer[ pos_nwords ]);
427 #ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
428 CheckB2LFEEHeaderVersion(n);
433 - SIZE_B2LFEE_TRAILER - SIZE_B2LHSLB_TRAILER;
440 #ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
441 CheckB2LFEEHeaderVersion(n);
446 SIZE_B2LFEE_HEADER - SIZE_B2LFEE_TRAILER - SIZE_B2LHSLB_TRAILER;
453 #ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
454 CheckB2LFEEHeaderVersion(n);
459 SIZE_B2LFEE_HEADER - SIZE_B2LFEE_TRAILER - SIZE_B2LHSLB_TRAILER;
466 #ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
467 CheckB2LFEEHeaderVersion(n);
472 SIZE_B2LFEE_HEADER - SIZE_B2LFEE_TRAILER - SIZE_B2LHSLB_TRAILER;
513 #ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
514 CheckB2LFEEHeaderVersion(n);
525 #ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
526 CheckB2LFEEHeaderVersion(n);
537 #ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
538 CheckB2LFEEHeaderVersion(n);
549 #ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
550 CheckB2LFEEHeaderVersion(n);
561 #ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
562 CheckB2LFEEHeaderVersion(n);
573 return (
unsigned int)(
m_buffer[ pos_nwords ]);
579 return (
unsigned int)(
m_buffer[ pos_nwords ]);
588 return (
unsigned int)(
m_buffer[ pos_nwords ]);
594 return (
unsigned int)(
m_buffer[ pos_nwords ]);
601 return (
unsigned int)(
m_buffer[ pos_nwords ]);
639 return MAX_COPPER_CH;
int GetTRGType(int n) OVERRIDE_CPP17
Get trgtype.
struct to contain header information used by RawCOPPERFormat::Packer()
virtual int GetOffset3rdFINESSE(int n)
get # of offset words for FINESSE slot C buffer position
int GetDataType()
get contents of header
unsigned int GetMagicFPGATrailer(int n) OVERRIDE_CPP17
get magic word of COPPER FPGA trailer
int GetRunNo()
get contents of header
int GetOffset1stFINESSE(int n) OVERRIDE_CPP17
get # of offset words for FINESSE slot A buffer position
int Get1stFINESSENwords(int n) OVERRIDE_CPP17
get data size of FINESSE slot A buffer
int GetExpNo()
get a run/exp number combined word
virtual int * GetRawTrlBufPtr(int n) OVERRIDE_CPP17
get buffer pointer of rawcopper trailer
int GetTRGType()
get TRGType
void GetTTTimeVal(int n, struct timeval *tv) OVERRIDE_CPP17
Get timeval.
int GetTTCtime()
get contents of header
int GetMaxNumOfCh(int n) OVERRIDE_CPP17
Get the max number of channels in a readout board.
void GetTTTimeVal(struct timeval *tv)
get contents of header
virtual int GetOffset2ndFINESSE(int n)
get # of offset words for FINESSE slot B buffer position
int * Get2ndDetectorBuffer(int n) OVERRIDE_CPP17
get Detector Buffer of slot B
virtual int * GetExpRunSubrunBuf(int n) OVERRIDE_CPP17
get b2l block from "FEE b2link header"
unsigned int GetNodeID(int n) OVERRIDE_CPP17
get node-ID from data
unsigned int GetTTCtimeTRGType()
get contents of header
int Get2ndDetectorNwords(int n) OVERRIDE_CPP17
get Detector buffer length of slot B
unsigned int GetDriverChkSum(int n) OVERRIDE_CPP17
read COPPER driver's checksum value
int GetTruncMask()
get contents of header
int GetTrlNwords()
Set magic word.
int GetSubRunNo()
get run # (14bit)
int GetTruncMask(int n) OVERRIDE_CPP17
get contents of header
unsigned int GetMagicDriverHeader(int n) OVERRIDE_CPP17
get magic word of COPPER driver header
int Get3rdDetectorNwords(int n) OVERRIDE_CPP17
get Detector buffer length of slot C
unsigned int GetExpRunSubrun(int n) OVERRIDE_CPP17
get Experimental # from header
virtual int GetOffset4thFINESSE(int n)
get # of offset words for FINESSE slot D buffer position
unsigned int GetMagicFPGAHeader(int n) OVERRIDE_CPP17
get magic word of COPPER FPGA header
unsigned int GetTrailerChksum(int n) OVERRIDE_CPP17
Get checksum in RawTrailer.
Abstract base class for different kinds of events.
int * Get3rdDetectorBuffer(int n) OVERRIDE_CPP17
get Detector Buffer of slot C
unsigned int GetTTCtimeTRGType(int n) OVERRIDE_CPP17
Check if COPPER Magic words are correct.
The Raw Trailer class ver.0 ( from August, 2013 to April, 2014 ) This class defines the format of the...
unsigned int GetEveNo()
get restart #(8bit)
int GetExpNo(int n) OVERRIDE_CPP17
get Experimental # from header
int Get4thDetectorNwords(int n) OVERRIDE_CPP17
get Detector buffer length of slot D
int Get1stDetectorNwords(int n) OVERRIDE_CPP17
get Detector buffer length of slot A
int Get4thFINESSENwords(int n) OVERRIDE_CPP17
get data size of FINESSE slot D buffer
unsigned int GetMagicDriverTrailer(int n) OVERRIDE_CPP17
get magic word of COPPER driver trailer
int Get3rdFINESSENwords(int n) OVERRIDE_CPP17
get data size of FINESSE slot C buffer
int GetRunNo(int n) OVERRIDE_CPP17
Exp# (10bit) run# (14bit) restart # (8bit)
unsigned int GetTTUtime()
get contents of header
int GetSubRunNo(int n) OVERRIDE_CPP17
get run # (14bit)
int Get2ndFINESSENwords(int n) OVERRIDE_CPP17
get data size of FINESSE slot B buffer
int GetTTCtime(int n) OVERRIDE_CPP17
Get ctime.
unsigned int GetEveNo(int n) OVERRIDE_CPP17
get subrun #(8bit)
void AddErrorBitFlag(unsigned int error_bit_flag)
Add Detected Error bitflag.
unsigned int GetTTUtime(int n) OVERRIDE_CPP17
Check if COPPER Magic words are correct.
int * Get4thDetectorBuffer(int n) OVERRIDE_CPP17
get Detector Buffer of slot D
void AddErrorBitFlag(int n, unsigned int error_bit_flag) OVERRIDE_CPP17
Add Detected Error bitflag.
virtual unsigned int GetCOPPERCounter(int n) OVERRIDE_CPP17
get COPPER counter(not event number)
unsigned int GetErrorBitFlag(int n) OVERRIDE_CPP17
get contents of header
unsigned int GetNodeID()
get contents of header
int * Get1stDetectorBuffer(int n) OVERRIDE_CPP17
get Detector buffer of slot A
int GetDataType(int n) OVERRIDE_CPP17
get contents of header
unsigned int GetErrorBitFlag()
get contents of header
unsigned int GetExpRunSubrun()
get contents of header