Skip to content

[PWGJE] trackEfficiency: add track pT-eta-phi histogram; jetCrossSectionEfficiency review follow-up - #17539

Merged
nzardosh merged 2 commits into
AliceO2Group:masterfrom
joonsukbae:je-trackeff-phi-hist
Aug 21, 2026
Merged

[PWGJE] trackEfficiency: add track pT-eta-phi histogram; jetCrossSectionEfficiency review follow-up#17539
nzardosh merged 2 commits into
AliceO2Group:masterfrom
joonsukbae:je-trackeff-phi-hist

Conversation

@joonsukbae

Copy link
Copy Markdown
Contributor

Two independent changes:

  1. trackEfficiency: adds a 3D histogram of track pT vs eta vs phi to the track QA processes, for azimuthal QA of the track sample in pT slices.

  2. jetCrossSectionEfficiency: addresses the review comments left on [PWGJE] jetCrossSectionEfficiency: cascade variants + hybrid-MC handling #16546 — restores <TH1.h>/<TH2.h> (used via registry.get<TH1/TH2>(), previously surviving only through transitive includes), replaces the magic-number bin indices by enums, drops the redundant local string copy and dispatches the event-selection preset through a single switch, and fixes the constexpr constant names per name/constexpr-constant. Bin numbering, histogram labels and process logic are unchanged.

Joonsuk Bae and others added 2 commits August 21, 2026 20:27
…Group#16546

* Restore <TH1.h> and <TH2.h>. They were dropped in AliceO2Group#16546 although the
  task uses registry.get<TH1>()/get<TH2>(); the build only survived
  because both arrive transitively through HistogramRegistry.h. The
  other removals (<algorithm>, <cstddef>, <set>, <utility>, <vector>)
  match symbols that are no longer used, and <cstdint> is needed for
  the fixed-width mask member.

* Replace the magic-number bin indices of the two cascade variants by
  enums. They are unscoped, like the counter enums in the other PWGJE
  tasks, so the enumerators serve directly as bin numbers. Names spell
  out the variant they belong to (collRecoFirst, bcBitsFirst) and the
  event-selection flag each step checks.

* Drop the redundant local copy of the eventSelections configurable and
  dispatch the preset through a single switch.

* Rename the constexpr constants to UpperCamelCase, as required by the
  o2-linter rule name/constexpr-constant.

Bin numbering, histogram labels and process-function logic are
unchanged; the axis labels are identical before and after.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xzpJe4BMMjS3m14A9w8V4
Adds a three-dimensional histogram of track pT, eta and phi to the
track QA, so that the azimuthal distribution of the track sample can be
inspected in pT slices. It is booked together with the other histograms
of the track QA processes and filled in fillTrackHistograms, following
the inline axis definitions used in that block.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xzpJe4BMMjS3m14A9w8V4
@github-actions

Copy link
Copy Markdown

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

@nzardosh
nzardosh enabled auto-merge (squash) August 21, 2026 12:10
@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for ddf0cb6 at 2026-08-21 14:33:

## sw/BUILD/O2Physics-code-check-latest/log
--
========== List of issues found ==========
++ echo 'Found 3 errors and 8 warnings.'
Found 3 errors and 8 warnings.
++ [[ 3 -gt 0 ]]
++ cat /sw/BUILD/d5529d68299ae31e0ce9c8a873b5c81ed8c1c1e8/O2Physics-code-check/errors.txt
PWGJE/Tasks/trackEfficiency.cxx:47:8: error: constructor does not initialize these fields: pdg [cppcoreguidelines-pro-type-member-init,-warnings-as-errors]
PWGJE/Tasks/trackEfficiency.cxx:176:139: error: the parameter 'tracks' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors]
PWGJE/Tasks/trackEfficiency.cxx:1487:52: error: no header providing "kPDecay" is directly included [misc-include-cleaner,-warnings-as-errors]
++ [[ 8 -gt 0 ]]
++ cat /sw/BUILD/d5529d68299ae31e0ce9c8a873b5c81ed8c1c1e8/O2Physics-code-check/warnings.txt
PWGJE/Tasks/jetCrossSectionEfficiency.cxx:98:3: warning: initial values in enum 'JetCrossSectionEfficiency::BinCollRecoFirst' are not consistent, consider explicit initialization of all, none or only the first enumerator [readability-enum-initial-value]
PWGJE/Tasks/jetCrossSectionEfficiency.cxx:113:3: warning: initial values in enum 'JetCrossSectionEfficiency::BinBcBitsFirst' are not consistent, consider explicit initialization of all, none or only the first enumerator [readability-enum-initial-value]
PWGJE/Tasks/jetCrossSectionEfficiency.cxx:159:9: warning: boolean expression can be simplified by DeMorgan's theorem [readability-simplify-boolean-expr]
PWGJE/Tasks/jetCrossSectionEfficiency.cxx:345:5: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGJE/Tasks/jetCrossSectionEfficiency.cxx:356:20: warning: statement should be inside braces [readability-braces-around-statements]
PWGJE/Tasks/jetCrossSectionEfficiency.cxx:421:5: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGJE/Tasks/jetCrossSectionEfficiency.cxx:431:20: warning: statement should be inside braces [readability-braces-around-statements]
PWGJE/Tasks/trackEfficiency.cxx:201:9: warning: boolean expression can be simplified by DeMorgan's theorem [readability-simplify-boolean-expr]
++ [[ 3 -gt 0 ]]
++ exit 1
--

Full log here.

@nzardosh
nzardosh merged commit 364da38 into AliceO2Group:master Aug 21, 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