Difference between revisions of "Trigger match problems"
(→Packets mismatch) |
m |
||
Line 1: | Line 1: | ||
__toc__ | __toc__ | ||
+ | |||
+ | == "Spurious" TP == | ||
+ | |||
== Hits with all zeros == | == Hits with all zeros == |
Revision as of 01:55, 21 January 2020
"Spurious" TP[edit | edit source]
Hits with all zeros[edit | edit source]
1100010000000000000000000000000100010110100000011111110110110000 HEADER : STATUS BIT[2:0]: 1: LOCAL L1 COUNT: 00000056 HitCount: 81 LOCAL L1 TIMESTAMP: FDB0; Diff w.r.t. previous L1_TS: 396.543750 us 0000111111110001111110000010000100000011101100100101100101011000 DATA : TIGER: 1 L1_TS - TIGERCOARSE_TS: 1423 LAST TIGER FRAME NUM[2:0]: 7 TIGER DATA: ChID [base10]: 60 tacID: 1 Tcoarse: F821 Ecoarse: 03B Tfine: 0150 Efine: 344 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 64944 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 1110000011010011000110000000110000111101000000000000000000000000 TRAILER: LOCAL L1 FRAMENUM [23:0]: 0698C0: GEMROC_ID: 0C TIGER_ID: 7 LOCAL L1 COUNT[2:0]: 5 LAST COUNT WORD FROM TIGER:CH_ID[5:0]: 00 LAST COUNT WORD FROM TIGER: DATA[17:0]: 00000 0100110011000000000000000000000010100000000000000000000001010110 UDP_SEQNO: GEMROC_ID: 0C UDP_SEQNO_U48: 000000000056 STATUS BIT[5:3]:6
Missing trailer word[edit | edit source]
1100010000000000000000000000000000011100000001101000110010101000 HEADER : STATUS BIT[2:0]: 1: LOCAL L1 COUNT: 0000001C HitCount: 06 LOCAL L1 TIMESTAMP: 8CA8; Diff w.r.t. previous L1_TS: 192.025000 us 0001011110111110100001101100110100101110011100111000010110100110 DATA : TIGER: 2 L1_TS - TIGERCOARSE_TS: 1499 LAST TIGER FRAME NUM[2:0]: 7 TIGER DATA: ChID [base10]: 47 tacID: 2 Tcoarse: 86CD Ecoarse: 2E7 Tfine: 0225 Efine: 422 0001011111010011100001101100101000101110010000110010010111000000 DATA : TIGER: 2 L1_TS - TIGERCOARSE_TS: 1502 LAST TIGER FRAME NUM[2:0]: 7 TIGER DATA: ChID [base10]: 52 tacID: 3 Tcoarse: 86CA Ecoarse: 2E4 Tfine: 0201 Efine: 448 0001011110110100100001101100110000101110011000110111000111101011 DATA : TIGER: 2 L1_TS - TIGERCOARSE_TS: 1500 LAST TIGER FRAME NUM[2:0]: 7 TIGER DATA: ChID [base10]: 45 tacID: 0 Tcoarse: 86CC Ecoarse: 2E6 Tfine: 0220 Efine: 491 0001011110100010100001101100110100101110011100111101111000001000 DATA : TIGER: 2 L1_TS - TIGERCOARSE_TS: 1499 LAST TIGER FRAME NUM[2:0]: 7 TIGER DATA: ChID [base10]: 40 tacID: 2 Tcoarse: 86CD Ecoarse: 2E7 Tfine: 0247 Efine: 520 0001011101011111100001101100110100101110011101001101011000000101 DATA : TIGER: 2 L1_TS - TIGERCOARSE_TS: 1499 LAST TIGER FRAME NUM[2:0]: 7 TIGER DATA: ChID [base10]: 23 tacID: 3 Tcoarse: 86CD Ecoarse: 2E7 Tfine: 0309 Efine: 517 0001011100100010100001101100110100101110011101000001110111000110 DATA : TIGER: 2 L1_TS - TIGERCOARSE_TS: 1499 LAST TIGER FRAME NUM[2:0]: 7 TIGER DATA: ChID [base10]: 8 tacID: 2 Tcoarse: 86CD Ecoarse: 2E7 Tfine: 0263 Efine: 454 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 36008 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0100100001100000000000000000000010100000000000000000000000011100 UDP_SEQNO: GEMROC_ID: 06 UDP_SEQNO_U48: 00000000001C STATUS BIT[5:3]:4
1100010000000000000000000000000000011101000000000111001011101011 HEADER : STATUS BIT[2:0]: 1: LOCAL L1 COUNT: 0000001D HitCount: 00 LOCAL L1 TIMESTAMP: 72EB; Diff w.r.t. previous L1_TS: 368.418750 us 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 29419 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0100100001100000000000000000000010100000000000000000000000011101 UDP_SEQNO: GEMROC_ID: 06 UDP_SEQNO_U48: 00000000001D STATUS BIT[5:3]:4
1100010000000000000000000000000000011110000000001010111000011000 HEADER : STATUS BIT[2:0]: 1: LOCAL L1 COUNT: 0000001E HitCount: 00 LOCAL L1 TIMESTAMP: AE18; Diff w.r.t. previous L1_TS: 94.681250 us 0000000000000000000000000000000000000000000000000000000000000000 DATA : TIGER: 0 L1_TS - TIGERCOARSE_TS: 44568 LAST TIGER FRAME NUM[2:0]: 0 TIGER DATA: ChID [base10]: 0 tacID: 0 Tcoarse: 0000 Ecoarse: 000 Tfine: 0000 Efine: 0 0100100001100000000000000000000010100000000000000000000000011110 UDP_SEQNO: GEMROC_ID: 06 UDP_SEQNO_U48: 00000000001E STATUS BIT[5:3]:4
Packets mismatch[edit | edit source]
TIGER 4-5-6-7 (3rd and 4th FEB for each GEMROC) suffers from packets mismatch: at certain point during acquisition data coming from these TIGER is sent in the next packet w.r.t. data coming from TIGER 0-1-2-3; this offset is present until the acquisition is reset and a new run or subrun is started. A temporary fix has been implemented in "decode.py" to address this mismatch and restore the correct packets content.
Patch description
The program checks if the difference of the hit tcoarse with respect to the L1 timestamp is within the interval [1300-1570] or lower than -64240 or larger than -63960 clock hits. If the hit is within the interval, it is accepted. If not, the L1 count is set to previous value and the difference with respect to the precedent L1 timestamp. Then the check is performed again.
Moreover, a correction for the roll-over is applied, by adding 2^16 to the difference previously calculated.