You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 1: original row-based format with 10-bit ADC values
44
45
// 2: original row-based format with 12-bit ADC values
45
46
// 3: improved link-based format with extra META header
46
-
// 4: tightly-packed link based
47
-
unsignedcharnTimeBins; //Number of time bins in this raw page
47
+
// 4: dense link based
48
+
unsignedcharnTimeBinSpan; //Span of time bins in this raw page, i.e. last timeBin is <= timeOffset + nTimeBinSpan
48
49
unsignedshort cruID; // CRU id
49
50
unsignedshort timeOffset; // Time offset in BC after orbit in RDH
50
51
unsignedshort nADCsamples; // Total number of ADC samples in this raw page
@@ -53,10 +54,16 @@ struct TPCZSHDRV2 : public TPCZSHDR {
53
54
staticconstexprunsignedintTPC_ZS_NBITS_V3 = 12;
54
55
staticconstexprboolTIGHTLY_PACKED_V3 = false;
55
56
staticconstexprunsignedintSAMPLESPER64BIT = 64 / TPC_ZS_NBITS_V3; // 5 12-bit samples with 4 bit padding per 64 bit word for non-TIGHTLY_PACKED data
57
+
enum ZSFlags : unsignedchar {
58
+
TriggerWordPresent = 1,
59
+
nTimeBinSpanBit8 = 2
60
+
};
56
61
57
-
unsignedshort firstZSDataOffset; // Offset (after the TPCZSHDRV2 header) in 128bit words to first ZS data (in between can be trigger words, etc.)
62
+
unsignedshort firstZSDataOffset; // zs Version 3: Offset (after the TPCZSHDRV2 header) in 128bit words to first ZS data (in between can be trigger words, etc.)
63
+
// zs Version 4: Offset (after the RDH) in bytes of the first ZS data.
58
64
unsignedshort nTimebinHeaders; // Number of timebin headers
59
-
unsignedshort reserved1; // 16 reserved bits, header is 128 bit
65
+
unsignedchar flags; // flag field (zs version 4 only): 0 = triggerWordPresent, 1 = bit 8 of nTimeBinSpan (i.e. nTimeBinSpan += 256)
66
+
unsignedchar reserved1; // 16 reserved bits, header is 128 bit
60
67
unsignedchar reserved2; // 8 reserved bits, header is 128 bit
0 commit comments