Skip to content

[PWGCF] Generalize fill methods for hist managers in femto framework - #19005

Merged
ariedel-cern merged 3 commits into
AliceO2Group:masterfrom
ariedel-cern:femto-generalize-nested-daughter-fill
Dec 1, 2026
Merged

ariedel-cern merged 3 commits into
AliceO2Group:masterfrom
ariedel-cern:femto-generalize-nested-daughter-fill

Conversation

@ariedel-cern

Copy link
Copy Markdown
Collaborator

Until now, the fill managers expected a track table whenever they needed to resolve a particle’s decay daughters. Upcoming changes introduce particles whose daughters can be other reconstructed particles, such as photons. With the current interface, those cases would require dedicated overloads.

This PR generalizes the fill functions to accept a tuple containing any number of tables. The underlying histogram manager uses the relevant tables to dereference the daughters and fill their histograms.

@github-actions github-actions Bot added the pwgcf label Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

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

@alibuild

alibuild commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/o2 for 376c5ac at 2026-12-01 08:51:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGCF/Femto/Tasks/femtoTrackQa.cxx:113:74: error: unused parameter 'tracks' [-Werror=unused-parameter]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGCF/Femto/Tasks/femtoTrackQa.cxx:126:122: error: unused parameter 'tracks' [-Werror=unused-parameter]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGCF/Femto/Tasks/femtoTrackQa.cxx:142:102: error: unused parameter 'tracks' [-Werror=unused-parameter]
ninja: build stopped: subcommand failed.

Full log here.

@alibuild

alibuild commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/staging for 376c5ac at 2026-12-01 09:04:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGCF/Femto/Tasks/femtoTrackQa.cxx:113:74: error: unused parameter 'tracks' [-Werror=unused-parameter]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGCF/Femto/Tasks/femtoTrackQa.cxx:126:122: error: unused parameter 'tracks' [-Werror=unused-parameter]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGCF/Femto/Tasks/femtoTrackQa.cxx:142:102: error: unused parameter 'tracks' [-Werror=unused-parameter]
ninja: build stopped: subcommand failed.

Full log here.

@alibuild

alibuild commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for 376c5ac at 2026-12-01 09:16:

## 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 6 errors and 3 warnings.'
Found 6 errors and 3 warnings.
++ [[ 6 -gt 0 ]]
++ cat /sw/BUILD/8f89e99d7bf0a9257b625f6dab2ef1ca023d0502/O2Physics-code-check/errors.txt
PWGCF/Femto/Tasks/femtoTrackQa.cxx:113:74: error: parameter 'tracks' is unused [misc-unused-parameters,-warnings-as-errors]
PWGCF/Femto/Tasks/femtoTrackQa.cxx:113:74: error: unused parameter 'tracks' [clang-diagnostic-unused-parameter,-warnings-as-errors]
PWGCF/Femto/Tasks/femtoTrackQa.cxx:126:122: error: parameter 'tracks' is unused [misc-unused-parameters,-warnings-as-errors]
PWGCF/Femto/Tasks/femtoTrackQa.cxx:126:122: error: unused parameter 'tracks' [clang-diagnostic-unused-parameter,-warnings-as-errors]
PWGCF/Femto/Tasks/femtoTrackQa.cxx:142:102: error: parameter 'tracks' is unused [misc-unused-parameters,-warnings-as-errors]
PWGCF/Femto/Tasks/femtoTrackQa.cxx:142:102: error: unused parameter 'tracks' [clang-diagnostic-unused-parameter,-warnings-as-errors]
++ [[ 3 -gt 0 ]]
++ cat /sw/BUILD/8f89e99d7bf0a9257b625f6dab2ef1ca023d0502/O2Physics-code-check/warnings.txt
PWGCF/Femto/Core/pairHistManager.h:1400:2: warning: redundant access specifier has the same accessibility as the previous access specifier [readability-redundant-access-specifiers]
PWGCF/Femto/Tasks/femtoPairTrackTrack.cxx:113:32: 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]
PWGCF/Femto/Tasks/femtoTripletTrackTrackTrack.cxx:80:32: 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]
++ [[ 6 -gt 0 ]]
++ exit 1
--

Full log here.

@ariedel-cern
ariedel-cern marked this pull request as draft December 1, 2026 08:20
@ariedel-cern
ariedel-cern marked this pull request as ready for review December 1, 2026 12:32
@ariedel-cern
ariedel-cern enabled auto-merge (squash) December 1, 2026 12:57

@alibuild alibuild left a comment

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.

Auto-approving on behalf of @ariedel-cern.

@ariedel-cern
ariedel-cern merged commit 039ca84 into AliceO2Group:master Dec 1, 2026
14 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.

2 participants