Skip to content

[PWGLF] Acceptance cuts are added in the code - #19029

Merged
skundu692 merged 3 commits into
AliceO2Group:masterfrom
sawankumawat:master
Dec 1, 2026
Merged

skundu692 merged 3 commits into
AliceO2Group:masterfrom
sawankumawat:master

Conversation

@sawankumawat

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

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

@alibuild

alibuild commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for 3c02024 at 2026-12-01 16:12:

## 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 11 errors and 7 warnings.'
Found 11 errors and 7 warnings.
++ [[ 11 -gt 0 ]]
++ cat /sw/BUILD/9055386487f55261a75258b9ffc5a5bf93fda49d/O2Physics-code-check/errors.txt
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:26:1: error: included header ASoAHelpers.h is not used directly [misc-include-cleaner,-warnings-as-errors]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:30:1: error: included header DataTypes.h is not used directly [misc-include-cleaner,-warnings-as-errors]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:36:1: error: included header Vector4D.h is not used directly [misc-include-cleaner,-warnings-as-errors]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:49:15: error: no header providing "ROOT::Math::PxPyPzMVector" is directly included [misc-include-cleaner,-warnings-as-errors]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:158:84: error: no header providing "o2::framework::kTH1F" is directly included [misc-include-cleaner,-warnings-as-errors]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:165:116: error: no header providing "o2::framework::kTHnSparseF" is directly included [misc-include-cleaner,-warnings-as-errors]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:194:75: error: no header providing "o2::framework::kTH2F" is directly included [misc-include-cleaner,-warnings-as-errors]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:296:77: error: no header providing "o2::track::PID" is directly included [misc-include-cleaner,-warnings-as-errors]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:321:15: error: no header providing "ROOT::Math::PxPyPzEVector" is directly included [misc-include-cleaner,-warnings-as-errors]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:328:17: error: no header providing "int64_t" is directly included [misc-include-cleaner,-warnings-as-errors]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:343:51: error: no header providing "std::find" is directly included [misc-include-cleaner,-warnings-as-errors]
++ [[ 7 -gt 0 ]]
++ cat /sw/BUILD/9055386487f55261a75258b9ffc5a5bf93fda49d/O2Physics-code-check/warnings.txt
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:104:13: warning: member 'injectedMotherPDG' of type 'const int' is const qualified [cppcoreguidelines-avoid-const-or-ref-data-members]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:221:11: warning: do not use 'else' after 'return' [readability-else-after-return]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:438:67: warning: implicit conversion 'bool' -> 'int' [readability-implicit-bool-conversion]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:474:61: warning: implicit conversion 'bool' -> 'int' [readability-implicit-bool-conversion]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:496:63: warning: implicit conversion 'bool' -> 'int' [readability-implicit-bool-conversion]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:521:74: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:528:59: warning: statement should be inside braces [readability-braces-around-statements]
++ [[ 11 -gt 0 ]]
++ exit 1
--

Full log here.

@sawankumawat
sawankumawat marked this pull request as draft December 1, 2026 15:13
@sawankumawat
sawankumawat marked this pull request as ready for review December 1, 2026 17:22
@alibuild

alibuild commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for d07a17e at 2026-12-01 18:37:

## 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 2 errors and 7 warnings.'
Found 2 errors and 7 warnings.
++ [[ 2 -gt 0 ]]
++ cat /sw/BUILD/2499686209eecc2e2126befcad611fd50ffc0e65/O2Physics-code-check/errors.txt
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:37:1: error: included header PxPyPzE4D.h is not used directly [misc-include-cleaner,-warnings-as-errors]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:38:1: error: included header PxPyPzM4D.h is not used directly [misc-include-cleaner,-warnings-as-errors]
++ [[ 7 -gt 0 ]]
++ cat /sw/BUILD/2499686209eecc2e2126befcad611fd50ffc0e65/O2Physics-code-check/warnings.txt
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:109:13: warning: member 'injectedMotherPDG' of type 'const int' is const qualified [cppcoreguidelines-avoid-const-or-ref-data-members]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:226:11: warning: do not use 'else' after 'return' [readability-else-after-return]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:443:67: warning: implicit conversion 'bool' -> 'int' [readability-implicit-bool-conversion]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:479:61: warning: implicit conversion 'bool' -> 'int' [readability-implicit-bool-conversion]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:501:63: warning: implicit conversion 'bool' -> 'int' [readability-implicit-bool-conversion]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:526:74: warning: statement should be inside braces [readability-braces-around-statements]
PWGLF/Tasks/Resonances/phiphimcinjected.cxx:533:59: warning: statement should be inside braces [readability-braces-around-statements]
++ [[ 2 -gt 0 ]]
++ exit 1
--

Full log here.

@skundu692
skundu692 merged commit 5cdce53 into AliceO2Group:master Dec 1, 2026
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.

3 participants