Skip to content

fix: allow more secondary vertices #4470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

pbalek
Copy link
Contributor

@pbalek pbalek commented Jul 23, 2025

allow more secondary vertices

--- END COMMIT MESSAGE ---

In Fatras, a barcode enumerates primary and secondary vertices. As of now, there are reserved 12 bits for each, i.e. maximum number of vertices is 4096.
In pp collisions, we may have 200 primary vertices. One vertex may have up to around 100 secondary vertices (tested in 1000 events). Thus, there's a large reserve for both.
In PbPb collisions, we have only 1 primary vertex but we may have up to 6000 secondary vertices (again, tested in 1000 events). That exceeds the limit of 12 bits, causing an error. This problem is present in about 10% of all PbPb events.
Moreover, particle ID can go up to cca. 55k which is uncomfortably close to the limit of 65k. See the distributions in the attached file.

This PR takes 8 bits from sub-particle ID and allocates another 4 bits for secondary vertices (allowing more than 65000 of them) and another 4 bits for particle ID (allowing more than 1M of them).

barcodes.pdf

@github-actions github-actions bot added Component - Fatras Affects the Fatras module Event Data Model labels Jul 23, 2025
@github-actions github-actions bot added this to the next milestone Jul 23, 2025
@paulgessinger
Copy link
Member

paulgessinger commented Jul 23, 2025

I think we need to discuss widely how to approach this. I've also observed issues with the numbering.

Copy link
Contributor

github-actions bot commented Jul 23, 2025

📊: Physics performance monitoring for f12fa4d

Full contents

physmon summary

@pbalek
Copy link
Contributor Author

pbalek commented Jul 23, 2025

I think we need to discuss widely how to approach this. I've also observed issues with the numbering.

Hi @paulgessinger, I see it also breaks some tests. I'll keep it as a draft for now.
Can we discuss it, say, the next meeting on Tuesday?

@pbalek pbalek force-pushed the fix-more-sec-vtx branch from 52d412f to e66219e Compare July 29, 2025 15:58
@github-actions github-actions bot added Component - Examples Affects the Examples module Changes Performance labels Jul 30, 2025
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants