Skip to content

[PWGHF] TrackIndexSkimCreator: hoist collision-invariant slices out of the 2/3-prong loops#16666

Open
ktf wants to merge 1 commit into
AliceO2Group:masterfrom
ktf:pr16666
Open

[PWGHF] TrackIndexSkimCreator: hoist collision-invariant slices out of the 2/3-prong loops#16666
ktf wants to merge 1 commit into
AliceO2Group:masterfrom
ktf:pr16666

Conversation

@ktf

@ktf ktf commented Jun 15, 2026

Copy link
Copy Markdown
Member

In run2And3Prongs the negative-track index slice was rebuilt inside the positive-track loop, and the D* soft-pion slices inside the (pos,neg) pair body, though all three depend only on the collision. Hoist the neg-track slice to collision scope, and lazily materialize the soft-pion slices once per collision via std::optional. Pure loop-invariant code motion.

@github-actions github-actions Bot added the pwghf PWG-HF label Jun 15, 2026
@github-actions github-actions Bot changed the title Hoist slice creation outside the inner loop [PWGHF] Hoist slice creation outside the inner loop Jun 15, 2026
@github-actions

Copy link
Copy Markdown

O2 linter results: ❌ 0 errors, ⚠️ 8 warnings, 🔕 7 disabled

@vkucera vkucera 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.

Please add the file name in the PR title to specify the scope of the changes.

@ktf ktf changed the title [PWGHF] Hoist slice creation outside the inner loop [PWGHF] Cut mixed-event pairing CPU ~35% by hoisting the per-window slice Jun 15, 2026
@ktf

ktf commented Jun 15, 2026

Copy link
Copy Markdown
Member Author

@vkucera improved. Actual validation of the code done at https://alimonitor.cern.ch/hyperloop/view-wagon/57243/test-statistics

@vkucera

vkucera commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

@vkucera improved. Actual validation of the code done at https://alimonitor.cern.ch/hyperloop/view-wagon/57243/test-statistics

I think you confused it with another PR.

@ktf

ktf commented Jun 15, 2026

Copy link
Copy Markdown
Member Author

yes, indeed.

@ktf

ktf commented Jun 15, 2026

Copy link
Copy Markdown
Member Author

The description was meant for #16663

@ktf ktf changed the title [PWGHF] Cut mixed-event pairing CPU ~35% by hoisting the per-window slice [PWGHF] TrackIndexSkimCreator: hoist collision-invariant slices out of the 2/3-prong loops Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pwghf PWG-HF

Development

Successfully merging this pull request may close these issues.

2 participants