Skip to content

ITS: mask overflow pixels only with a preceding ROF - #16194

Merged
ktf merged 1 commit into
AliceO2Group:devfrom
ktf:pr16194
Nov 25, 2026
Merged

ktf merged 1 commit into
AliceO2Group:devfrom
ktf:pr16194

Conversation

@ktf

@ktf ktf commented Nov 25, 2026

Copy link
Copy Markdown
Member

The clusterer keeps each chip's last ROF data to mask the pixels which
fired again in the next ROF. The BC distance was taken in absolute value,
so the data kept from a TF processed before could mask the pixels of a
ROF which is not later than it: a TF decoded again with the same IRs (as
the raw reader's --loop does) lost all clusters of the chips fired in a
single ROF, and the result depended on which TFs an instance processed
before. Use the old data only if it precedes the current ROF.

The clusterer keeps each chip's last ROF data to mask the pixels which
fired again in the next ROF. The BC distance was taken in absolute value,
so the data kept from a TF processed before could mask the pixels of a
ROF which is not later than it: a TF decoded again with the same IRs (as
the raw reader's --loop does) lost all clusters of the chips fired in a
single ROF, and the result depended on which TFs an instance processed
before. Use the old data only if it precedes the current ROF.
@ktf

ktf commented Nov 25, 2026

Copy link
Copy Markdown
Member Author

@f3sch @shahor02 this got spotted by my friends while working on something else. Could you cross check and eventually approve?

@f3sch

f3sch commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

@ktf it seems to be correct, but I think in practice this does not apply since we do not use masking AFAIK. In any case TFs are not guaranteed to be continuous in the CTF so arguably the mask should be reset entirely if the distance is more than one TF. I do not see how even with --loop you can trigger discarding all data in a ROF unless there is only a single ROF in the TF. Ruben knows this better than me. Also the ROFs in a TF are I think guaranteed to be from the same TF by the decoder (excluding orbit corruption).

@shahor02

Copy link
Copy Markdown
Collaborator

I agree with @f3sch : apart from masking not being used (we use squashing), the CTF is guaranteed not to have consecutive TFs (unless there was only 1 EPN in the processing), so we never process neighbouring TFs.
The --loop in the raw reader makes it loop over the list of CTFs, not TFs. But even if the list is made of 1 CTF with 1 TF only, it would need to have just 1 ROF to trigger the masking.
Anyway, the fix costs nothing, it is fine to apply it.

@f3sch
f3sch enabled auto-merge (squash) November 25, 2026 16:13
@ktf
ktf merged commit 9b07b09 into AliceO2Group:dev Nov 25, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants