Skip to content

[PWGLF] Add optional downsampling for cascades - #18874

Merged
romainschotter merged 1 commit into
AliceO2Group:masterfrom
mpuccio:master
Nov 23, 2026
Merged

romainschotter merged 1 commit into
AliceO2Group:masterfrom
mpuccio:master

Conversation

@mpuccio

@mpuccio mpuccio commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions

Copy link
Copy Markdown

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

@github-actions github-actions Bot changed the title Add optional downsampling for cascades [PWGLF] Add optional downsampling for cascades Nov 23, 2026
@romainschotter
romainschotter enabled auto-merge (squash) November 23, 2026 15:07
@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for d97d33b at 2026-11-23 17:39:

## 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 41 warnings.'
Found 1 errors and 41 warnings.
++ [[ 1 -gt 0 ]]
++ cat /sw/BUILD/97da0e67ca3fa70e3f7e6bd23f5681c25b85fdce/O2Physics-code-check/errors.txt
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:303:45: error: no header providing "TH1" is directly included [misc-include-cleaner,-warnings-as-errors]
++ [[ 41 -gt 0 ]]
++ cat /sw/BUILD/97da0e67ca3fa70e3f7e6bd23f5681c25b85fdce/O2Physics-code-check/warnings.txt
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:176:22: warning: 'nParticles' is a static definition in anonymous namespace; static is redundant here [readability-static-definition-in-anonymous-namespace]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:177:22: warning: 'nCutsPID' is a static definition in anonymous namespace; static is redundant here [readability-static-definition-in-anonymous-namespace]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:178:39: warning: 'matterOrNot' is a static definition in anonymous namespace; static is redundant here [readability-static-definition-in-anonymous-namespace]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:179:39: warning: 'particlesNames' is a static definition in anonymous namespace; static is redundant here [readability-static-definition-in-anonymous-namespace]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:180:39: warning: 'cutsNames' is a static definition in anonymous namespace; static is redundant here [readability-static-definition-in-anonymous-namespace]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:181:18: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:181:24: warning: 'cutsPID' is a static definition in anonymous namespace; static is redundant here [readability-static-definition-in-anonymous-namespace]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:188:30: warning: variable 'gCandidates' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:189:30: warning: variable 'gCandidatesNT' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:193:8: warning: constructor does not initialize these fields: mCCDB, pdgDB [cppcoreguidelines-pro-type-member-init]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:233:69: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:273:9: warning: use auto when initializing with a template cast to avoid duplicating the type name [modernize-use-auto]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:297:9: warning: boolean expression can be simplified by DeMorgan's theorem [readability-simplify-boolean-expr]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:300:9: warning: boolean expression can be simplified by DeMorgan's theorem [readability-simplify-boolean-expr]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:330:21: warning: narrowing conversion from 'float' to 'int' [bugprone-narrowing-conversions]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:331:24: warning: narrowing conversion from 'float' to 'int' [bugprone-narrowing-conversions]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:528:7: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:563:7: warning: uninitialized record type: 'momenta' [cppcoreguidelines-pro-type-member-init]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:564:7: warning: uninitialized record type: 'cascadeMomentum' [cppcoreguidelines-pro-type-member-init]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:677:71: warning: redundant boolean literal in ternary expression result [readability-simplify-boolean-expr]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:692:19: warning: use 'contains' to check for membership [readability-container-contains]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:914:11: warning: boolean expression can be simplified by DeMorgan's theorem [readability-simplify-boolean-expr]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:1064:13: warning: implicit conversion 'value_type' (aka 'char') -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:1090:11: warning: implicit conversion 'value_type' (aka 'char') -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:1090:49: warning: implicit conversion 'value_type' (aka 'char') -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:1134:13: warning: implicit conversion 'value_type' (aka 'char') -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:1143:13: warning: implicit conversion 'value_type' (aka 'char') -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:1154:13: warning: implicit conversion 'value_type' (aka 'char') -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:1162:13: warning: implicit conversion 'value_type' (aka 'char') -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:1181:11: warning: implicit conversion 'value_type' (aka 'char') -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:1192:11: warning: implicit conversion 'value_type' (aka 'char') -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:1207:12: warning: implicit conversion 'value_type' (aka 'char') -> 'bool' [readability-implicit-bool-conversion]
PWGLF/Tasks/Strangeness/nonPromptCascade.cxx:1221:11: warning: implicit conversion 'value_type' (aka 'char') -> 'bool' [readability-implicit-bool-conversion]
[0 more errors; see full log]

Full log here.

@romainschotter
romainschotter merged commit 24edaa1 into AliceO2Group:master Nov 23, 2026
13 of 15 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