Skip to content

Fix for Loopers identified as primaries#15603

Merged
sawenzel merged 1 commit into
AliceO2Group:devfrom
jackal1-66:fixstatusloopers
Jul 16, 2026
Merged

Fix for Loopers identified as primaries#15603
sawenzel merged 1 commit into
AliceO2Group:devfrom
jackal1-66:fixstatusloopers

Conversation

@jackal1-66

@jackal1-66 jackal1-66 commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

As reported in https://its.cern.ch/jira/browse/O2-7039, the loopers are identified as physical primaries as they check all the boxes in the isPhysicalPrimary function definition.
By setting the HepMC status to a number != 1 the particle is automatically reported as non-primary, while the transport is insured with the kToBeDone flag, which doesn't depend anymore on the HepMC status. Potentially we could set an entirely different code than 2 to always be able to identify loopers, however I'm not sure how the generators handle that code (as it is set usually from the status code of the generated particle as of now in O2)

@jackal1-66 jackal1-66 requested a review from sawenzel as a code owner July 15, 2026 17:09

@sawenzel sawenzel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks correct to me. Maybe as a follow-up we could use a more dedicated encoding (e.g. the gen field) so we don't confuse the loopers' status 2 with genuinely decayed particles?

@sawenzel sawenzel merged commit 7d9a516 into AliceO2Group:dev Jul 16, 2026
10 of 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.

2 participants