Skip to content

[PWGDQ,PWGEM] Adding functionality for computing flow for combinatorial pairs - #18974

Merged
iarsene merged 2 commits into
AliceO2Group:masterfrom
iarsene:master
Nov 30, 2026
Merged

iarsene merged 2 commits into
AliceO2Group:masterfrom
iarsene:master

Conversation

@iarsene

@iarsene iarsene commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

Functionality for computing flow observables for comibnatorial pairs in the across TF event mixing. Concrete implementation in VarManager for the barrel flow using the FT0C as reference detector.
Small cleanup

…e across TF event mixing. Concrete implementation in VarManager for the barrel flow using the FT0C as reference detector
@github-actions github-actions Bot changed the title Adding functionality for computing flow for combinatorial pairs [PWGDQ,PWGEM] Adding functionality for computing flow for combinatorial pairs Nov 29, 2026
@github-actions

Copy link
Copy Markdown

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

@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for 4130281 at 2026-11-29 13:56:

## 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 233 warnings.'
Found 2 errors and 233 warnings.
++ [[ 2 -gt 0 ]]
++ cat /sw/BUILD/7207732a7027c6b5bc7f3411517da2168f45b2e2/O2Physics-code-check/errors.txt
PWGDQ/Tasks/tableReader_withAssoc.h:356:86: error: no header providing "o2::constants::lhc::LHCRevFreq" is directly included [misc-include-cleaner,-warnings-as-errors]
PWGDQ/Tasks/tableReader_withAssoc.h:2725:40: error: C-style casts are discouraged; use static_cast [google-readability-casting,-warnings-as-errors]
++ [[ 233 -gt 0 ]]
++ cat /sw/BUILD/7207732a7027c6b5bc7f3411517da2168f45b2e2/O2Physics-code-check/warnings.txt
PWGDQ/Core/MixingHandler.cxx:27:34: warning: initializer for base class 'TNamed' is redundant [readability-redundant-member-init]
PWGDQ/Core/MixingHandler.cxx:29:34: warning: initializer for member 'fVariableLimits' is redundant [readability-redundant-member-init]
PWGDQ/Core/MixingHandler.cxx:30:34: warning: initializer for member 'fVariables' is redundant [readability-redundant-member-init]
PWGDQ/Core/MixingHandler.cxx:32:34: warning: initializer for member 'fPools' is redundant [readability-redundant-member-init]
PWGDQ/Core/MixingHandler.cxx:42:69: warning: initializer for member 'fVariableLimits' is redundant [readability-redundant-member-init]
PWGDQ/Core/MixingHandler.cxx:43:69: warning: initializer for member 'fVariables' is redundant [readability-redundant-member-init]
PWGDQ/Core/MixingHandler.cxx:45:69: warning: initializer for member 'fPools' is redundant [readability-redundant-member-init]
PWGDQ/Core/MixingHandler.cxx:53:16: warning: use '= default' to define a trivial destructor [modernize-use-equals-default]
PWGDQ/Core/MixingHandler.cxx:90:7: warning: the 'empty' method should be used to check for emptiness instead of 'size' [readability-container-size-empty]
PWGDQ/Core/MixingHandler.cxx:140:7: warning: the 'empty' method should be used to check for emptiness instead of 'size' [readability-container-size-empty]
PWGDQ/Core/MixingHandler.h:86:13: warning: implicit conversion 'uint32_t' (aka 'unsigned int') -> 'bool' [readability-implicit-bool-conversion]
PWGDQ/Core/MixingHandler.h:119:13: warning: implicit conversion 'unsigned long long' -> 'bool' [readability-implicit-bool-conversion]
PWGDQ/Core/MixingHandler.h:127:13: warning: implicit conversion 'unsigned long long' -> 'bool' [readability-implicit-bool-conversion]
PWGDQ/Core/MixingHandler.h:178:5: warning: function 'GetEvents' should be marked [[nodiscard]] [modernize-use-nodiscard]
PWGDQ/Core/MixingHandler.h:191:11: warning: prefer using 'override' or (rarely) 'final' instead of 'virtual' [modernize-use-override]
PWGDQ/Core/MixingHandler.h:204:3: warning: function 'GetPoolDepth' should be marked [[nodiscard]] [modernize-use-nodiscard]
PWGDQ/Core/MixingHandler.h:208:3: warning: function 'GetBinFromCategory' should be marked [[nodiscard]] [modernize-use-nodiscard]
PWGDQ/Core/VarManager.h:1304:10: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGDQ/Core/VarManager.h:1305:10: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGDQ/Core/VarManager.h:1721:10: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGDQ/Core/VarManager.h:1725:10: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGDQ/Core/VarManager.h:3550:11: warning: variable 'dcaX' is not initialized [cppcoreguidelines-init-variables]
PWGDQ/Core/VarManager.h:3551:11: warning: variable 'dcaY' is not initialized [cppcoreguidelines-init-variables]
PWGDQ/Core/VarManager.h:4843:14: 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]
PWGDQ/Core/VarManager.h:5593:7: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGDQ/Core/VarManager.h:5596:33: 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]
PWGDQ/Core/VarManager.h:5597:33: 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]
PWGDQ/Core/VarManager.h:7400:9: warning: variable 'pairPhiV' is not initialized [cppcoreguidelines-init-variables]
PWGDQ/Tasks/tableReader.cxx:163:8: warning: constructor does not initialize these fields: fCCDB [cppcoreguidelines-pro-type-member-init]
PWGDQ/Tasks/tableReader.cxx:200:36: 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]
PWGDQ/Tasks/tableReader.cxx:200:65: 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]
PWGDQ/Tasks/tableReader.cxx:251:51: 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]
[0 more errors; see full log]

Full log here.

@iarsene
iarsene enabled auto-merge (squash) November 29, 2026 13:06
@vkucera

vkucera commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

@iarsene Please fix the errors.

Comment thread PWGDQ/Core/VarManager.h
values[kTwoEvPVcontrib1] = ev1.numContrib();
values[kTwoEvPVcontrib2] = ev2.numContrib();

if constexpr (requires { ev1.qVector(); }) {

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.

qVector is is an std::array and not a member function, does this actually works? I think this line is always false

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

yes, it seems that this works like this (tested), see the other places where we use this

@axti98

axti98 commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

@iarsene Please fix the errors.

I fixed the MegaLinter errors in #18985 and the missing include in https://github.com/AliceO2Group/O2Physics/pull/18954/changes

Comment thread PWGDQ/Tasks/tableReader_withAssoc.h Resolved
@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for 970d08f at 2026-11-30 10: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 233 warnings.'
Found 1 errors and 233 warnings.
++ [[ 1 -gt 0 ]]
++ cat /sw/BUILD/6a228dbfa14b9fc8c7e4cce813be78f36ef835ae/O2Physics-code-check/errors.txt
PWGDQ/Tasks/tableReader_withAssoc.h:356:86: error: no header providing "o2::constants::lhc::LHCRevFreq" is directly included [misc-include-cleaner,-warnings-as-errors]
++ [[ 233 -gt 0 ]]
++ cat /sw/BUILD/6a228dbfa14b9fc8c7e4cce813be78f36ef835ae/O2Physics-code-check/warnings.txt
PWGDQ/Core/MixingHandler.cxx:27:34: warning: initializer for base class 'TNamed' is redundant [readability-redundant-member-init]
PWGDQ/Core/MixingHandler.cxx:29:34: warning: initializer for member 'fVariableLimits' is redundant [readability-redundant-member-init]
PWGDQ/Core/MixingHandler.cxx:30:34: warning: initializer for member 'fVariables' is redundant [readability-redundant-member-init]
PWGDQ/Core/MixingHandler.cxx:32:34: warning: initializer for member 'fPools' is redundant [readability-redundant-member-init]
PWGDQ/Core/MixingHandler.cxx:42:69: warning: initializer for member 'fVariableLimits' is redundant [readability-redundant-member-init]
PWGDQ/Core/MixingHandler.cxx:43:69: warning: initializer for member 'fVariables' is redundant [readability-redundant-member-init]
PWGDQ/Core/MixingHandler.cxx:45:69: warning: initializer for member 'fPools' is redundant [readability-redundant-member-init]
PWGDQ/Core/MixingHandler.cxx:53:16: warning: use '= default' to define a trivial destructor [modernize-use-equals-default]
PWGDQ/Core/MixingHandler.cxx:90:7: warning: the 'empty' method should be used to check for emptiness instead of 'size' [readability-container-size-empty]
PWGDQ/Core/MixingHandler.cxx:140:7: warning: the 'empty' method should be used to check for emptiness instead of 'size' [readability-container-size-empty]
PWGDQ/Core/MixingHandler.h:86:13: warning: implicit conversion 'uint32_t' (aka 'unsigned int') -> 'bool' [readability-implicit-bool-conversion]
PWGDQ/Core/MixingHandler.h:119:13: warning: implicit conversion 'unsigned long long' -> 'bool' [readability-implicit-bool-conversion]
PWGDQ/Core/MixingHandler.h:127:13: warning: implicit conversion 'unsigned long long' -> 'bool' [readability-implicit-bool-conversion]
PWGDQ/Core/MixingHandler.h:178:5: warning: function 'GetEvents' should be marked [[nodiscard]] [modernize-use-nodiscard]
PWGDQ/Core/MixingHandler.h:191:11: warning: prefer using 'override' or (rarely) 'final' instead of 'virtual' [modernize-use-override]
PWGDQ/Core/MixingHandler.h:204:3: warning: function 'GetPoolDepth' should be marked [[nodiscard]] [modernize-use-nodiscard]
PWGDQ/Core/MixingHandler.h:208:3: warning: function 'GetBinFromCategory' should be marked [[nodiscard]] [modernize-use-nodiscard]
PWGDQ/Core/VarManager.h:1304:10: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGDQ/Core/VarManager.h:1305:10: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGDQ/Core/VarManager.h:1721:10: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGDQ/Core/VarManager.h:1725:10: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGDQ/Core/VarManager.h:3550:11: warning: variable 'dcaX' is not initialized [cppcoreguidelines-init-variables]
PWGDQ/Core/VarManager.h:3551:11: warning: variable 'dcaY' is not initialized [cppcoreguidelines-init-variables]
PWGDQ/Core/VarManager.h:4843:14: 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]
PWGDQ/Core/VarManager.h:5593:7: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGDQ/Core/VarManager.h:5596:33: 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]
PWGDQ/Core/VarManager.h:5597:33: 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]
PWGDQ/Core/VarManager.h:7400:9: warning: variable 'pairPhiV' is not initialized [cppcoreguidelines-init-variables]
PWGDQ/Tasks/tableReader.cxx:163:8: warning: constructor does not initialize these fields: fCCDB [cppcoreguidelines-pro-type-member-init]
PWGDQ/Tasks/tableReader.cxx:200:36: 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]
PWGDQ/Tasks/tableReader.cxx:200:65: 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]
PWGDQ/Tasks/tableReader.cxx:251:51: 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]
PWGDQ/Tasks/tableReader.cxx:255:33: 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]
[0 more errors; see full log]

Full log here.

@iarsene
iarsene merged commit f21f099 into AliceO2Group:master Nov 30, 2026
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

5 participants