Skip to content

[PWGCF] lambdaSpinPolarization.cxx: fix clang-tidy code-check errors from the previous version - #18229

Merged
dsarkaralice merged 1 commit into
AliceO2Group:masterfrom
subhadee-ali:lambdaSpinpol
Oct 9, 2026
Merged

dsarkaralice merged 1 commit into
AliceO2Group:masterfrom
subhadee-ali:lambdaSpinpol

Conversation

@subhadee-ali

Copy link
Copy Markdown
Contributor

Follow-up to #18228, which was merged before the build/O2Physics/code check (clang-tidy) result came in. It fixes the 5 errors and 12 warnings reported there

  1. Removed three unused includes (ASoAHelpers.h, BinningPolicy.h, TH2.h).
  2. Changed the floating-point loop counter for the ME pool-size axis edges to an integer one.
  3. Moved the widening cast in the pool count to before the multiplication.
  4. Removed redundant member initializers, used designated initializers, made a pointer check explicit, and replaced a static_cast downcast with dynamic_cast. No change in behavior: the axis edges, pool count and every condition are the same as before.

…Physics/code-check (clang-tidy) result came in. It fixes the 5 errors and 12 warnings reported there

1. Removed three unused includes (ASoAHelpers.h, BinningPolicy.h, TH2.h).
2. Changed the floating-point loop counter for the ME pool-size axis edges to an integer one.
3. Moved the widening cast in the pool count to before the multiplication.
4. Removed redundant member initializers, used designated initializers, made a pointer check explicit, and replaced a static_cast downcast with dynamic_cast.
No change in behavior: the axis edges, pool count and every condition are the same as before.
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

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

@dsarkaralice
dsarkaralice enabled auto-merge (squash) October 9, 2026 04:32
@dsarkaralice
dsarkaralice merged commit 1223729 into AliceO2Group:master Oct 9, 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.

2 participants