Skip to content

[PWGHF] Fix the unit mismatch in QA histogram filling - #18577

Merged
fcatalan92 merged 4 commits into
AliceO2Group:masterfrom
hero-seo:dcaqa
Nov 9, 2026
Merged

fcatalan92 merged 4 commits into
AliceO2Group:masterfrom
hero-seo:dcaqa

Conversation

@hero-seo

@hero-seo hero-seo commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

This PR fixes a minor bug related to a unit mismatch in the QA histograms.
In candidateCreatorXicToXiPiPi.cxx, the QA histograms for the impact parameter are defined in µm, but the values were filled in cm. This PR fixes the inconsistency by converting the values from cm to µm using a factor of 10000.f.

In addition, some histogram names have been changed from snake_case to camelCase for consistency.

@github-actions github-actions Bot added the pwghf PWG-HF label Nov 4, 2026
@github-actions github-actions Bot changed the title Fix the unit mismatch in QA histogram filling [PWGHF] Fix the unit mismatch in QA histogram filling Nov 4, 2026
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

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

@hero-seo

hero-seo commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Dear reviewers, could you please approve it if the changes in this PR look good?

@fcatalan92
fcatalan92 merged commit 9f9c33d into AliceO2Group:master Nov 9, 2026
14 checks passed
registry.add("hInteractionsWithMaterial", "hInteractionsWithMaterial", {HistType::kTH1F, {{6, -0.5, 5.5}}});
registry.add("hDebugRec", "hDebugRec", {HistType::kTH1F, {{4, -0.5, 3.5}}});
registry.add("hy_pt_gen", "Generated MC", {HistType::kTH2F, {{20, -1.0, 1.0}, {200, 0, 20}}});
registry.add("hYPtGen", "Generated MC", {HistType::kTH2F, {{20, -1.0, 1.0}, {200, 0, 20}}});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi @hero-seo here you add() the histogram under condition if (fillMcHistograms) but attempt to fill it in the line 1353 unconditionally, therefore the task crashes when fillMcHistograms == false. Please fix the bug.

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.

3 participants