Skip to content

[PWGUD] upcRhoAnalysis codecheck fixes and realignment of selections - #19052

Draft
jjuracka wants to merge 7 commits into
AliceO2Group:masterfrom
jjuracka:upc-rho-analysis-codecheckfix
Draft

jjuracka wants to merge 7 commits into
AliceO2Group:masterfrom
jjuracka:upc-rho-analysis-codecheckfix

Conversation

@jjuracka

@jjuracka jjuracka commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

This PR addresses some codecheck fixes, and aligns the employed event (track) selections according to DPG recommendations.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

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

Please consider the following formatting changes to AliceO2Group#19052
@alibuild

alibuild commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for 89634b4 at 2026-12-02 11:54:

## sw/BUILD/O2Physics-code-check-latest/log
--
========== List of issues found ==========
++ echo 'To reproduce the results below locally, run: '\''aliBuild build O2Physics-code-check -e ALIBUILD_BASE_HASH=upstream/master'\''.'
To reproduce the results below locally, run: 'aliBuild build O2Physics-code-check -e ALIBUILD_BASE_HASH=upstream/master'.
++ echo 'To apply all automatic fixes, add the '\''-e O2PHYSICS_CHECKER_FIX=1'\'' option.'
To apply all automatic fixes, add the '-e O2PHYSICS_CHECKER_FIX=1' option.
++ echo 'See the documentation for more details at: <https://aliceo2group.github.io/analysis-framework/docs/tools/#running-with-o2physics-code-check>.'
See the documentation for more details at: <https://aliceo2group.github.io/analysis-framework/docs/tools/#running-with-o2physics-code-check>.
++ echo 'Found 1 errors and 5 warnings.'
Found 1 errors and 5 warnings.
++ [[ 1 -gt 0 ]]
++ cat /sw/BUILD/c3221a3fd8ab3fea312466c8ec4b10754bde2eb9/O2Physics-code-check/errors.txt
PWGUD/Tasks/upcRhoAnalysis.cxx:858:31: error: the variable 'p1' is copy-constructed from a const reference but is only used as const reference; consider making it a const reference [performance-unnecessary-copy-initialization,-warnings-as-errors]
++ [[ 5 -gt 0 ]]
++ cat /sw/BUILD/c3221a3fd8ab3fea312466c8ec4b10754bde2eb9/O2Physics-code-check/warnings.txt
PWGUD/Tasks/upcRhoAnalysis.cxx:613:55: warning: repeated branch body in conditional chain [bugprone-branch-clone]
PWGUD/Tasks/upcRhoAnalysis.cxx:615:9: warning: do not use 'else' after 'return' [readability-else-after-return]
PWGUD/Tasks/upcRhoAnalysis.cxx:628:7: warning: do not use 'else' after 'return' [readability-else-after-return]
PWGUD/Tasks/upcRhoAnalysis.cxx:792:5: warning: do not use 'else' after 'return' [readability-else-after-return]
PWGUD/Tasks/upcRhoAnalysis.cxx:890:7: warning: do not use 'else' after 'return' [readability-else-after-return]
++ [[ 1 -gt 0 ]]
++ exit 1
--

Full log here.

@alibuild

alibuild commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for df81e59 at 2026-12-02 11:57:

## sw/BUILD/O2Physics-code-check-latest/log
--
========== List of issues found ==========
++ echo 'To reproduce the results below locally, run: '\''aliBuild build O2Physics-code-check -e ALIBUILD_BASE_HASH=upstream/master'\''.'
To reproduce the results below locally, run: 'aliBuild build O2Physics-code-check -e ALIBUILD_BASE_HASH=upstream/master'.
++ echo 'To apply all automatic fixes, add the '\''-e O2PHYSICS_CHECKER_FIX=1'\'' option.'
To apply all automatic fixes, add the '-e O2PHYSICS_CHECKER_FIX=1' option.
++ echo 'See the documentation for more details at: <https://aliceo2group.github.io/analysis-framework/docs/tools/#running-with-o2physics-code-check>.'
See the documentation for more details at: <https://aliceo2group.github.io/analysis-framework/docs/tools/#running-with-o2physics-code-check>.
++ echo 'Found 1 errors and 5 warnings.'
Found 1 errors and 5 warnings.
++ [[ 1 -gt 0 ]]
++ cat /sw/BUILD/331bf2029ac8e3328a781ea8f14927668818d285/O2Physics-code-check/errors.txt
PWGUD/Tasks/upcRhoAnalysis.cxx:857:31: error: the variable 'p1' is copy-constructed from a const reference but is only used as const reference; consider making it a const reference [performance-unnecessary-copy-initialization,-warnings-as-errors]
++ [[ 5 -gt 0 ]]
++ cat /sw/BUILD/331bf2029ac8e3328a781ea8f14927668818d285/O2Physics-code-check/warnings.txt
PWGUD/Tasks/upcRhoAnalysis.cxx:613:55: warning: repeated branch body in conditional chain [bugprone-branch-clone]
PWGUD/Tasks/upcRhoAnalysis.cxx:615:9: warning: do not use 'else' after 'return' [readability-else-after-return]
PWGUD/Tasks/upcRhoAnalysis.cxx:628:7: warning: do not use 'else' after 'return' [readability-else-after-return]
PWGUD/Tasks/upcRhoAnalysis.cxx:791:7: warning: do not use 'else' after 'return' [readability-else-after-return]
PWGUD/Tasks/upcRhoAnalysis.cxx:889:7: warning: do not use 'else' after 'return' [readability-else-after-return]
++ [[ 1 -gt 0 ]]
++ exit 1
--

Full log here.

@jjuracka
jjuracka marked this pull request as draft December 2, 2026 11:06
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.

3 participants