Skip to content

[PWGCF] Add circle PID cut#15810

Merged
wenyaCern merged 10 commits intoAliceO2Group:masterfrom
huinaibing:master
Apr 16, 2026
Merged

[PWGCF] Add circle PID cut#15810
wenyaCern merged 10 commits intoAliceO2Group:masterfrom
huinaibing:master

Conversation

@huinaibing
Copy link
Copy Markdown
Contributor

  • add a circle PID cut
  • fix a bug in PID graph filling

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 16, 2026

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

Copy link
Copy Markdown
Collaborator

@vkucera vkucera left a comment

Choose a reason for hiding this comment

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

Don't revert the include fixes.

Please consider the following formatting changes to AliceO2Group#15810
@huinaibing
Copy link
Copy Markdown
Contributor Author

Don't revert the include fixes.

Thank you for your comment, Professor. I was using pre-commit, and it modified my include path automatically, and I didn't notice it. Now I have fixed it.

@vkucera
Copy link
Copy Markdown
Collaborator

vkucera commented Apr 16, 2026

Don't revert the include fixes.

Thank you for your comment, Professor. I was using pre-commit, and it modified my include path automatically, and I didn't notice it. Now I have fixed it.

pre-commit does not change your list of includes. You just did not rebase on upstream properly.

vkucera
vkucera previously approved these changes Apr 16, 2026
@huinaibing
Copy link
Copy Markdown
Contributor Author

Don't revert the include fixes.

Thank you for your comment, Professor. I was using pre-commit, and it modified my include path automatically, and I didn't notice it. Now I have fixed it.

pre-commit does not change your list of includes. You just did not rebase on upstream properly.

Thanks for the correction, Professor. I just noticed there was a header file change a few hours ago. I’ve added the header I need(If I don't add it, megalinter throws an error) while keeping the original headers intact.

Comment on lines +892 to +898
if (pt > ptMin && pt < ptMax) {
// Circular cut: sqrt(TPC^2 + TOF^2) < 2
isPion = (tpcNsigma * tpcNsigma + tofNsigma * tofNsigma) < circleCutOpts.cfgCircleCutSigmaSquarePi.value;
} else {
// Fallback: TPC only cut
isPion = std::fabs(tpcNsigma) < circleCutOpts.cfgCircleCutTPCPi.value;
}
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.

Can this not just be a function or lambda? You repeat the same thing for each species.

Comment thread PWGCF/Flow/Tasks/pidFlowPtCorr.cxx
Comment thread PWGCF/Flow/Tasks/pidFlowPtCorr.cxx Outdated
Comment thread PWGCF/Flow/Tasks/pidFlowPtCorr.cxx Outdated
Comment thread PWGCF/Flow/Tasks/pidFlowPtCorr.cxx Outdated
Comment thread PWGCF/Flow/Tasks/pidFlowPtCorr.cxx Outdated
Please consider the following formatting changes to AliceO2Group#15810
@wenyaCern wenyaCern merged commit 7bd42ee into AliceO2Group:master Apr 16, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

4 participants