Skip to content

[PWGHF] Store interaction rate in UPC Lc output tables - #18869

Open
Rrantu wants to merge 2 commits into
AliceO2Group:masterfrom
Rrantu:Lc
Open

Rrantu wants to merge 2 commits into
AliceO2Group:masterfrom
Rrantu:Lc

Conversation

@Rrantu

@Rrantu Rrantu commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Replace runNumber with interactionRate in HfUpcQa and HfUpcLcBdtInfos to enable direct studies versus interaction rate.

@github-actions github-actions Bot added the pwghf PWG-HF label Nov 23, 2026
@github-actions github-actions Bot changed the title PWGHF: Store interaction rate in UPC Lc output tables [PWGHF] Store interaction rate in UPC Lc output tables Nov 23, 2026
@github-actions

Copy link
Copy Markdown

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

Comment thread PWGHF/D2H/Tasks/taskUpcLc.cxx Outdated
float interactionRate = -1.f;
if constexpr (!IsMc) {
if (fillHistQa) {
if (FillMl || fillTreeUpcQa || fillHistQa) {

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.

You are mixing compile-time condition and run-time condition. That looks suspicious.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You are mixing compile-time condition and run-time condition. That looks suspicious.

Thanks for the comment. I've fixed this.

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.

You just removed the conditions. Does it mean that the previous logic was wrong?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The previous logic was correct, it ensured that the rate was assigned whenever the ML or QA output needed it. However, the condition looked suspicious, so I removed it and now fetch and assign the rate for every selected data collision.

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.

Sorry but I don't understand your reasoning. Did you remove the condition just because I said that it looked suspicious or because you thought there was something wrong with it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Partly because you pointed out that it looked suspicious, but also because I thought removing it would make the code cleaner and more readable. I didn’t find something wrong with the condition itself.

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