![]() |
Project
|
TOF raw data format. More...
#include <stdint.h>
Go to the source code of this file.
Classes | |
struct | __attribute__ |
struct | LTMEvent_t |
union | Union_t |
Macros | |
#define | TOF_MAGIC 0x70F |
ALICE TOF Raw Data description: master file. | |
#define | TOF_SOURCE_ID 0x5 |
#define | TOF_DETFIELD_MAGIC(x) (x & FFF) |
#define | TOF_DETFIELD_RECVTRIGGER(x) ((x >> 16) & 0xFF) |
#define | TOF_DETFIELD_SERVTRIGGER(x) ((x >> 24) & 0xFF) |
#define | DRM_GEOAD 1 |
#define | LTM_GEOAD 2 |
#define | TRM_GEOAD_MIN 3 |
#define | TRM_GEOAD_MAX 12 |
#define | TOF_HEADER 4 |
#define | TOF_TRAILER 5 |
#define | TOF_FILLER 7 |
#define | FILLER_WORD (TOF_FILLER << 28) |
#define | TOF_GETGEO(x) (x & 0xF) |
#define | TOF_GETDATAID(x) ((x >> 28) & 0xF) |
#define | TDH_SIZE sizeof(TDH_t) |
#define | TDH_LENGTH TDH_SIZE / 4 |
#define | TDH_HEADER(d) TOF_GETDATAID(d) |
#define | TDH_PAYLOAD(d) (d & 0x3FFFF) |
#define | TDH_WORDS(d) TDH_PAYLOAD(d) / 4 |
#define | TDH_ORBIT(d) (d & 0xFFFFFFFF) |
#define | DRMH_SIZE sizeof(DRMh_t) |
#define | DRMH_LENGTH DRMH_SIZE / 4 |
#define | DRM_HEAD_NW DRMH_LENGTH |
#define | DRM_EVWORDS(a) ((a & 0x000FFFF0) >> 4) |
#define | DRM_DRMID(a) ((a & 0x07F00000) >> 20) |
#define | DRM_GENDATA(a) ((a & 0x08000000) >> 27) |
#define | DRM_DRMID_OLD(a) ((a & 0x007E00000) >> 21) |
#define | DRM_EVWORDS_OLD(a) ((a & 0x0001FFFF0) >> 4) |
#define | DRM_SLOTID(a) ((a & 0x00007FF0) >> 4) |
#define | DRM_CLKFLG(a) ((a & 0x00030000) >> 16) |
#define | DRM_VERSID(a) ((a & 0x007C0000) >> 18) |
#define | DRM_HSIZE(a) ((a & 0x07800000) >> 23) |
#define | DRM_VERSID_OLD(a) ((a & 0x003E0000) >> 17) |
#define | DRM_CLKFLG_OLD(a) ((a & 0x00018000) >> 15) |
#define | DRM_HSIZE_OLD(a) ((a & 0x03C00000) >> 22) |
#define | DRM_NEW_VERSION(a) ((a & 0x02000000) >> 25) |
#define | DRM_ENABLEID(a) ((a & 0x00007FF0) >> 4) |
#define | DRM_FAULTID(a) ((a & 0x07FF0000) >> 16) |
#define | DRM_RTMO(a) ((a & 0x08000000) >> 27) |
#define | DRM_BCGBT(a) ((a & 0x0000FFF0) >> 4) |
#define | DRM_BCLOC(a) ((a & 0x0FFF0000) >> 16) |
#define | DRM_TEMP(a) ((a & 0x00003FF0) >> 4) |
#define | DRM_SENSAD(a) ((a & 0x00070000) >> 16) |
#define | DRM_EVCRC(a) ((a & 0x000FFFF0) >> 4) |
#define | DRM_LOCEVCNT(a) ((a & 0x0000FFF0) >> 4) |
#define | TRM_HEADER TOF_HEADER |
#define | TRM_TRAILER TOF_TRAILER |
#define | CHAIN_0_HEADER 0 |
#define | CHAIN_0_TRAILER 1 |
#define | CHAIN_1_HEADER 2 |
#define | CHAIN_1_TRAILER 3 |
#define | HIT_LEADING 0xA |
#define | HIT_TRAILING 0xC |
#define | REPORT_ERROR 6 |
#define | DEBERR REPORT_ERROR |
#define | TRM_WORDID(a) TOF_GETDATAID(a) |
#define | TRM_EVCNT_GH(a) ((a & 0x07FE0000) >> 17) |
#define | TRM_EVWORDS(a) ((a & 0x0001FFF0) >> 4) |
#define | TRM_EMPTYBIT(a) ((a & 0x08000000) >> 27) |
#define | TRM_BUNCHID(a) ((a & 0x0000FFF0) >> 4) |
#define | TRM_EVCNT_CT(a) ((a & 0x0FFF0000) >> 16) |
#define | TRM_CHAINSTAT(a) (a & 0xF) |
#define | TRM_LUTERRBIT(a) ((a & 0x08000000) >> 27) |
#define | TRM_PB24TEMP(a) ((a & 0x003FC000) >> 14) |
#define | TRM_PB24ID(a) ((a & 0x01C00000) >> 22) |
#define | TRM_PB24CHAIN(a) ((a & 0x02000000) >> 25) |
#define | TRM_PB24ACK(a) ((a & 0x04000000) >> 26) |
#define | TRM_EVCRC2(a) ((a & 0x00003FFC) >> 2) |
#define | TRM_TERM(a) (a & 0x3) |
#define | TRM_TIME(a) (a & 0x1FFFFF) |
#define | TRM_CHANID(a) ((a >> 21) & 0x7) |
#define | TRM_TDCID(a) ((a >> 24) & 0xF) |
#define | LTM_HEAD_TAG(x) TOF_GETDATAID(x) |
#define | LTM_HEAD_FAULTFLAG(x) (((x) >> 18) & 0x1) |
#define | LTM_HEAD_CYCSTATUS(x) (((x) >> 17) & 0x1) |
#define | LTM_EVENTSIZE(x) (((x) >> 4) & 0x1FFF) |
#define | LTM_HEAD_EVENTSIZE(x) (((x) >> 4) & 0x1FFF) |
#define | LTM_HEAD_GEOADDR(x) TOF_GETGEO(x) |
#define | LTM_HEADER TOF_HEADER |
#define | LTM_TAIL_TAG(x) TOF_GETDATAID(x) |
#define | LTM_TAIL_EVENTNUM(x) (((x) >> 16) & 0xFFF) |
#define | LTM_TAIL_EVENTCRC(x) (((x) >> 4) & 0xFFF) |
#define | LTM_TAIL_GEOADDR(x) TOF_GETGEO(x) |
#define | LTM_TRAILER TOF_TRAILER |
#define | LTM_EVSIZE sizeof(LTMPackedEvent_t) |
#define | LTM_PDL_FIELD(x, n) (((x) >> ((n)*8)) & 0xFF) |
#define | LTM_V_FIELD(x, n) (((x) >> ((n)*10)) & 0x3FF) |
#define | LTM_T_FIELD(x, n) (((x) >> ((n)*10)) & 0x3FF) |
#define | LTM_OR_FIELD(x, n) (((x) >> ((n)*10)) & 0x3FF) |
#define CHAIN_0_HEADER 0 |
Definition at line 241 of file RawDataFormat.h.
#define CHAIN_0_TRAILER 1 |
Definition at line 242 of file RawDataFormat.h.
#define CHAIN_1_HEADER 2 |
Definition at line 243 of file RawDataFormat.h.
#define CHAIN_1_TRAILER 3 |
Definition at line 244 of file RawDataFormat.h.
#define DEBERR REPORT_ERROR |
Definition at line 248 of file RawDataFormat.h.
Definition at line 228 of file RawDataFormat.h.
Definition at line 229 of file RawDataFormat.h.
Definition at line 216 of file RawDataFormat.h.
Definition at line 220 of file RawDataFormat.h.
Definition at line 210 of file RawDataFormat.h.
Definition at line 212 of file RawDataFormat.h.
Definition at line 224 of file RawDataFormat.h.
Definition at line 234 of file RawDataFormat.h.
Definition at line 209 of file RawDataFormat.h.
Definition at line 213 of file RawDataFormat.h.
Definition at line 225 of file RawDataFormat.h.
Definition at line 211 of file RawDataFormat.h.
#define DRM_GEOAD 1 |
Definition at line 68 of file RawDataFormat.h.
#define DRM_HEAD_NW DRMH_LENGTH |
Definition at line 206 of file RawDataFormat.h.
Definition at line 218 of file RawDataFormat.h.
Definition at line 221 of file RawDataFormat.h.
Definition at line 236 of file RawDataFormat.h.
Definition at line 222 of file RawDataFormat.h.
Definition at line 226 of file RawDataFormat.h.
Definition at line 232 of file RawDataFormat.h.
Definition at line 215 of file RawDataFormat.h.
Definition at line 231 of file RawDataFormat.h.
Definition at line 217 of file RawDataFormat.h.
Definition at line 219 of file RawDataFormat.h.
#define DRMH_LENGTH DRMH_SIZE / 4 |
Definition at line 205 of file RawDataFormat.h.
#define DRMH_SIZE sizeof(DRMh_t) |
Definition at line 204 of file RawDataFormat.h.
#define FILLER_WORD (TOF_FILLER << 28) |
Definition at line 77 of file RawDataFormat.h.
#define HIT_LEADING 0xA |
Definition at line 245 of file RawDataFormat.h.
#define HIT_TRAILING 0xC |
Definition at line 246 of file RawDataFormat.h.
Definition at line 365 of file RawDataFormat.h.
#define LTM_EVSIZE sizeof(LTMPackedEvent_t) |
Definition at line 410 of file RawDataFormat.h.
#define LTM_GEOAD 2 |
Definition at line 69 of file RawDataFormat.h.
Definition at line 364 of file RawDataFormat.h.
Definition at line 366 of file RawDataFormat.h.
Definition at line 363 of file RawDataFormat.h.
#define LTM_HEAD_GEOADDR | ( | x | ) | TOF_GETGEO(x) |
Definition at line 367 of file RawDataFormat.h.
#define LTM_HEAD_TAG | ( | x | ) | TOF_GETDATAID(x) |
Definition at line 362 of file RawDataFormat.h.
#define LTM_HEADER TOF_HEADER |
Definition at line 368 of file RawDataFormat.h.
Definition at line 414 of file RawDataFormat.h.
Definition at line 411 of file RawDataFormat.h.
Definition at line 413 of file RawDataFormat.h.
Definition at line 378 of file RawDataFormat.h.
Definition at line 377 of file RawDataFormat.h.
#define LTM_TAIL_GEOADDR | ( | x | ) | TOF_GETGEO(x) |
Definition at line 379 of file RawDataFormat.h.
#define LTM_TAIL_TAG | ( | x | ) | TOF_GETDATAID(x) |
Definition at line 376 of file RawDataFormat.h.
#define LTM_TRAILER TOF_TRAILER |
Definition at line 380 of file RawDataFormat.h.
Definition at line 412 of file RawDataFormat.h.
#define REPORT_ERROR 6 |
Definition at line 247 of file RawDataFormat.h.
#define TDH_HEADER | ( | d | ) | TOF_GETDATAID(d) |
Definition at line 108 of file RawDataFormat.h.
#define TDH_LENGTH TDH_SIZE / 4 |
Definition at line 106 of file RawDataFormat.h.
#define TDH_ORBIT | ( | d | ) | (d & 0xFFFFFFFF) |
Definition at line 111 of file RawDataFormat.h.
#define TDH_PAYLOAD | ( | d | ) | (d & 0x3FFFF) |
Definition at line 109 of file RawDataFormat.h.
#define TDH_SIZE sizeof(TDH_t) |
Definition at line 105 of file RawDataFormat.h.
#define TDH_WORDS | ( | d | ) | TDH_PAYLOAD(d) / 4 |
Definition at line 110 of file RawDataFormat.h.
Definition at line 63 of file RawDataFormat.h.
Definition at line 64 of file RawDataFormat.h.
Definition at line 65 of file RawDataFormat.h.
#define TOF_FILLER 7 |
Definition at line 76 of file RawDataFormat.h.
Definition at line 79 of file RawDataFormat.h.
Definition at line 78 of file RawDataFormat.h.
#define TOF_HEADER 4 |
Definition at line 74 of file RawDataFormat.h.
#define TOF_MAGIC 0x70F |
ALICE TOF Raw Data description: master file.
Header file to describe TOF event fragment: defines, macros and data structures @P. Antonioli / INFN-Bologna March 2006 20191201 moved old CDH to new TDH, updated format for RUN3: new DRM2, new TRM format 20191231 agreed O2 format 20200324 fixed error on LTM_EVSIZE macro, use of __cplusplus directive 20200325 detField description 20200403 DRMHVersion = 0x12: eventWords 16 bit, generatedPayload bit, several bit adjustments
Definition at line 48 of file RawDataFormat.h.
#define TOF_SOURCE_ID 0x5 |
Definition at line 49 of file RawDataFormat.h.
#define TOF_TRAILER 5 |
Definition at line 75 of file RawDataFormat.h.
Definition at line 282 of file RawDataFormat.h.
Definition at line 296 of file RawDataFormat.h.
Definition at line 349 of file RawDataFormat.h.
Definition at line 269 of file RawDataFormat.h.
Definition at line 295 of file RawDataFormat.h.
Definition at line 267 of file RawDataFormat.h.
Definition at line 323 of file RawDataFormat.h.
Definition at line 268 of file RawDataFormat.h.
#define TRM_GEOAD_MAX 12 |
Definition at line 71 of file RawDataFormat.h.
#define TRM_GEOAD_MIN 3 |
Definition at line 70 of file RawDataFormat.h.
#define TRM_HEADER TOF_HEADER |
Definition at line 239 of file RawDataFormat.h.
Definition at line 318 of file RawDataFormat.h.
Definition at line 322 of file RawDataFormat.h.
Definition at line 321 of file RawDataFormat.h.
Definition at line 320 of file RawDataFormat.h.
Definition at line 319 of file RawDataFormat.h.
Definition at line 350 of file RawDataFormat.h.
Definition at line 324 of file RawDataFormat.h.
Definition at line 348 of file RawDataFormat.h.
#define TRM_TRAILER TOF_TRAILER |
Definition at line 240 of file RawDataFormat.h.
#define TRM_WORDID | ( | a | ) | TOF_GETDATAID(a) |
Definition at line 250 of file RawDataFormat.h.