Skip to content

[PWGCF] Fixes in femto framework - #16938

Merged
ariedel-cern merged 6 commits into
AliceO2Group:masterfrom
ariedel-cern:master
Jul 6, 2026
Merged

[PWGCF] Fixes in femto framework#16938
ariedel-cern merged 6 commits into
AliceO2Group:masterfrom
ariedel-cern:master

Conversation

@ariedel-cern

Copy link
Copy Markdown
Collaborator
  • Fix minor bugs in V0 and cascade selection
  • Fix namespace across the full framework
  • Implement first batch of warnings indicated by the new clang-tidy check

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

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

ariedel-cern and others added 2 commits July 6, 2026 16:53
@ariedel-cern
ariedel-cern marked this pull request as ready for review July 6, 2026 15:00
@ariedel-cern
ariedel-cern enabled auto-merge (squash) July 6, 2026 15:00

@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 29a2746 into AliceO2Group:master Jul 6, 2026
15 of 16 checks passed
mcoquet642 pushed a commit to AliceMCH/O2Physics that referenced this pull request Jul 9, 2026
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
(o2::aod::femtocollisions::magField >= o2::framework::expressions::as<int8_t>(selection.magFieldMin) && \
o2::aod::femtocollisions::magField <= o2::framework::expressions::as<int8_t>(selection.magFieldMax)) && \
ncheckbit(o2::aod::femtocollisions::mask, selection.collisionMask)
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)

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.

Why did you disable the check?

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.

Hi Vit, I found that using macros is a convenient way to reuse the same partitions and filters across different files. Without suppressing the check, clang-tidy warns that the macro should be replaced with a constexpr template function. I am not sure that is actually possible in this case (I tried a few approaches, but I couldn't get the code to compile). If you know of a way to implement this without macros, please let me know, and I will replace them with functions.

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.

Hi Anton, indeed. In your case, it probably makes sense. Thanks for the clarification.

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.

3 participants