 |
Belle II Software
release-05-02-19
|
9 #ifndef PRERAWCOPPERFORMAT_LATEST_H
10 #define PRERAWCOPPERFORMAT_LATEST_H
13 #include <rawdata/dataobjects/PostRawCOPPERFormat_latest.h>
14 #include <rawdata/CRCCalculator.h>
98 unsigned int prev_eve32,
unsigned int prev_exprunsubrun_no,
unsigned int* cur_exprunsubrun_no) OVERRIDE_CPP17;
108 unsigned int prev_evenum,
unsigned int* cur_evenum,
109 unsigned int prev_copper_ctr,
unsigned int* cur_copper_ctr,
110 unsigned int prev_exprunsubrun_no,
unsigned int* cur_exprunsubrun_no) OVERRIDE_CPP17;
123 void CopyReducedData(
int* bufin,
int nwords,
int num_events,
int num_nodes,
int* buf_to,
int* nwords_to);
137 int* detector_buf_1st,
int nwords_1st,
138 int* detector_buf_2nd,
int nwords_2nd,
139 int* detector_buf_3rd,
int nwords_3rd,
140 int* detector_buf_4th,
int nwords_4th,
146 int*
const(&detector_buf_ch)[MAX_PCIE40_CH],
147 int const(&nwords_ch)[MAX_PCIE40_CH],
158 POS_MAGIC_B2LHSLB = 0,
160 SIZE_B2LHSLB_HEADER = 1
166 POS_TT_CTIME_TYPE = 0,
171 SIZE_B2LFEE_HEADER = 5
179 POS_TT_CTIME_B2LFEE = 0,
180 POS_CHKSUM_B2LFEE = 1,
181 SIZE_B2LFEE_TRAILER = 2
189 POS_CHKSUM_B2LHSLB = 0,
190 SIZE_B2LHSLB_TRAILER = 1
197 B2LHSLB_HEADER_MAGIC = 0xFFAA0000,
198 B2LHSLB_TRAILER_MAGIC = 0xFF550000
213 #ifdef USE_B2LFEE_FORMAT_BOTH_VER1_AND_2
214 CheckB2LFEEHeaderVersion(n);
225 sprintf(err_buf,
"[FATAL] This function is not supported. Exiting...: \n%s %s %d\n",
226 __FILE__, __PRETTY_FUNCTION__, __LINE__);
227 printf(
"[DEBUG] %s\n", err_buf);
235 sprintf(err_buf,
"[FATAL] This function is not supported. Exiting...: \n%s %s %d\n",
236 __FILE__, __PRETTY_FUNCTION__, __LINE__);
237 printf(
"[DEBUG] %s\n", err_buf);
248 return (
unsigned int)(
m_buffer[ pos_nwords ]);
254 return (
unsigned int)(
m_buffer[ pos_nwords ]);
261 -
tmp_trailer.RAWTRAILER_NWORDS - SIZE_COPPER_DRIVER_TRAILER;
269 sprintf(err_buf,
"[FATAL] This function is not supported. Exiting...: \n%s %s %d\n",
270 __FILE__, __PRETTY_FUNCTION__, __LINE__);
271 printf(
"[DEBUG] %s\n", err_buf);
279 return (
unsigned int)(
m_buffer[ pos_nwords ]);
285 return (
GetFINESSEBuffer(n, finesse_num) + SIZE_B2LHSLB_HEADER + SIZE_B2LFEE_HEADER);
295 - (SIZE_B2LHSLB_HEADER + SIZE_B2LHSLB_TRAILER + SIZE_B2LFEE_HEADER + SIZE_B2LFEE_TRAILER);
struct to contain header information used by RawCOPPERFormat::Packer()
unsigned int GetMagicFPGATrailer(int n) OVERRIDE_CPP17
get magic word of COPPER FPGA trailer
The Raw COPPER class ver.
virtual int * GetExpRunSubrunBuf(int n) OVERRIDE_CPP17
get b2l block from "FEE b2link header"
unsigned int GetDriverChkSum(int n) OVERRIDE_CPP17
read COPPER driver's checksum value
int * GetFINESSEBuffer(int n, int finesse_num) OVERRIDE_CPP17
Get a pointer to a FINESSE buffer.
int GetTrlNwords()
Set magic word.
int * GetDetectorBuffer(int n, int finesse_num) OVERRIDE_CPP17
Get a pointer to detector buffer.
unsigned int GetMagicDriverHeader(int n) OVERRIDE_CPP17
get magic word of COPPER driver header
int GetFINESSENwords(int n, int finesse_num) OVERRIDE_CPP17
Get the size of a finesse buffer.
unsigned int GetMagicFPGAHeader(int n) OVERRIDE_CPP17
get magic word of COPPER FPGA header
unsigned int GetTrailerChksum(int n) OVERRIDE_CPP17
get a checksum on trailer
Abstract base class for different kinds of events.
int GetDetectorNwords(int n, int finesse_num) OVERRIDE_CPP17
get Detector buffer length
unsigned int GetMagicDriverTrailer(int n) OVERRIDE_CPP17
get magic word of COPPER driver trailer
unsigned int GetCOPPERCounter(int n) OVERRIDE_CPP17
get posistion of COPPER block in unit of word