Skip to content

[PWGHF] Fix a bug related to MC D0bar reflection THnSparse filling for D0 task - #18984

Merged
zhangbiao-phy merged 1 commit into
AliceO2Group:masterfrom
zhangbiao-phy:fix-d0bar-reflection-sparse-fill
Nov 29, 2026
Merged

zhangbiao-phy merged 1 commit into
AliceO2Group:masterfrom
zhangbiao-phy:fix-d0bar-reflection-sparse-fill

Conversation

@zhangbiao-phy

@zhangbiao-phy zhangbiao-phy commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Commit 1151e25 (O2Physics #17233) removed the unconditional number-of-PV-contributors axis from the reconstructed MC sparse. The axis is now added only when centrality is stored. Three ML D0bar reflection paths without centrality still supplied numPvContributors.

HistogramRegistry treats one argument beyond the axis count as a fill weight. In the default nine-axis layout this weighted each D0bar reflection by the number of PV contributors. In the occupancy/IR and track-quality layouts the extra argument also shifted the optional coordinates and turned the last coordinate into the weight.

Drop the extra argument in those three paths. Validate both reflection categories with and without ML across the five axis layouts using ROOT, including a reproduction of the original implicit weighting.

Commit 1151e25 (O2Physics AliceO2Group#17233) removed the unconditional
number-of-PV-contributors axis from the reconstructed MC sparse. The
axis is now added only when centrality is stored. Three ML D0bar
reflection paths without centrality still supplied numPvContributors.

HistogramRegistry treats one argument beyond the axis count as a fill
weight. In the default nine-axis layout this weighted each D0bar
reflection by the number of PV contributors. In the occupancy/IR and
track-quality layouts the extra argument also shifted the optional
coordinates and turned the last coordinate into the weight. The MC
sample showed 34,383,977 summed weights for 696,196 unweighted D0bar
reflection entries in the same pT and mass window.

Drop the extra argument in those three paths. Validate both reflection
categories with and without ML across the five axis layouts using
ROOT, including a reproduction of the original implicit weighting.
@github-actions github-actions Bot added the pwghf PWG-HF label Nov 29, 2026
@github-actions

Copy link
Copy Markdown

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

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

Auto-approving on behalf of @zhangbiao-phy.

@zhangbiao-phy
zhangbiao-phy merged commit 9d8d3ab into AliceO2Group:master Nov 29, 2026
17 of 19 checks passed
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