Skip to content

Conversation

@Rrantu
Copy link
Contributor

@Rrantu Rrantu commented Oct 10, 2025

Fixed hard-coded types for function return values and Added process function without ML with UPC

@github-actions
Copy link

github-actions bot commented Oct 10, 2025

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

@github-actions github-actions bot changed the title Use auto for values returned from functions [PWGHF] Use auto for values returned from functions Oct 10, 2025
for (const auto& collision : collisions) {

uint32_t rejectionMask{0}; // 32 bits, in case new ev. selections will be added
auto rejectionMask{0}; // 32 bits, in case new ev. selections will be added
Copy link
Contributor

Choose a reason for hiding this comment

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

Please combine this line with r.h.s. function output - then auto will be deduced properly. Now it is int.

Copy link
Contributor

Choose a reason for hiding this comment

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

And since it is not supposed to be changed (?) consider making it const.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the feedback! I’ve updated the code accordingly.

@zhangbiao-phy zhangbiao-phy enabled auto-merge (squash) October 10, 2025 15:23
@zhangbiao-phy zhangbiao-phy enabled auto-merge (squash) October 10, 2025 15:26
@zhangbiao-phy zhangbiao-phy merged commit b8f6456 into AliceO2Group:master Oct 10, 2025
15 checks passed
lubynets added a commit to lubynets/O2Physics that referenced this pull request Oct 10, 2025
add const and const&

add author
@vkucera
Copy link
Collaborator

vkucera commented Oct 10, 2025

@Rrantu Thanks for the fix. In your future PRs, please add in the title which file or analysis is modified by the PR.
@zhangbiao-phy Please keep an eye on the PR titles.

ArkaprabhaSaha001 pushed a commit to ArkaprabhaSaha001/O2Physics that referenced this pull request Oct 21, 2025
ThePhDane pushed a commit to ThePhDane/O2Physics that referenced this pull request Nov 3, 2025
lmattei01 pushed a commit to lmattei01/O2Physics that referenced this pull request Dec 5, 2025
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.

4 participants