Skip to content

[PWGJE] jetHadronsPid.cxx task: Adding underlying event implementation in processMatchJets - #19115

Open
llorenc-11 wants to merge 12 commits into
AliceO2Group:masterfrom
llorenc-11:PID-Hadrons-in-Jets
Open

llorenc-11 wants to merge 12 commits into
AliceO2Group:masterfrom
llorenc-11:PID-Hadrons-in-Jets

Conversation

@llorenc-11

Copy link
Copy Markdown
Contributor

Created two helper functions for the underlying-event logic and histogram filling
Added a configurable for using the subtracted jet pT
Added THnSparse histograms for checking the cuts
Added new registry for JetMc histograms
Added combined nσ histograms

llorenc-11 and others added 11 commits July 20, 2026 10:32
…jetHadronsPid.cxx

add dedicated registryMC to separate mc histograms from data
add processMatchJets and processJetsMCP for matched and truth jets
add associated histograms and table join declarations for MC jets
add a ConfigurableGroup for histogram axes
restructure file by moving jet processes below pure track processes
…n jetHadronsPid.cxx

processMatchJets now classifies every detector-level jet as matched, missed,
or fake (tracked via a new jet_match_counter), instead of only bookkeeping
matched jets:
- Fake jets (reconstructed, no truth partner) get the full detector-QA
  histogram set mirroring the existing matched/reconstructed histograms
  (TPC/TOF, DCA, contamination matrix, primary/secondary split).
- Missed jets (truth, no reconstructed partner) get the full truth-composition
  histogram set mirroring the existing matched/truth histograms.
- Matched jets additionally fill 4D response THnSparse (truth pT, truth N,
  reco pT, reco N) per species plus a jet_pt_matrix, for offline
  RooUnfoldResponse::Fill()/Miss()/Fake().

Also removes the jet-cone Delta-eta/Delta-phi histograms from the
matched/reconstructed section (redundant with existing QA elsewhere),
rebins axisJetPt to 20x5 GeV/c bins suitable for a response matrix, and
uncomments the background-subtraction (rho) support that was previously
disabled.
…ew PID method and pt-dependent cut on DCA

Adding new configurables for TPC and ITS clusters selection
Adding new PID method
Adding pt-dependant cut on DCAxy and DCAz
Created two helper functions for the underlying-event logic and histogram filling
Added a configurable for using the subtracted jet pT
Added combined nσ histograms
Added THnSparse histograms for checking the cuts
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

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

@alibuild

alibuild commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for 79965f5 at 2026-12-04 14:54:

## 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 0 warnings.'
Found 2 errors and 0 warnings.
++ [[ 2 -gt 0 ]]
++ cat /sw/BUILD/0e20404b1cc91ef0922c940a59be64c469f84c4e/O2Physics-code-check/errors.txt
PWGJE/Tasks/jetHadronsPid.cxx:212:23: error: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [clang-diagnostic-sign-compare,-warnings-as-errors]
PWGJE/Tasks/jetHadronsPid.cxx:216:23: error: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [clang-diagnostic-sign-compare,-warnings-as-errors]
++ [[ 0 -gt 0 ]]
++ [[ 2 -gt 0 ]]
++ exit 1
--

Full log here.

@alibuild

alibuild commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/staging for 79965f5 at 2026-12-04 14:56:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGJE/Tasks/jetHadronsPid.cxx:212:23: error: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Werror=sign-compare]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGJE/Tasks/jetHadronsPid.cxx:216:23: error: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Werror=sign-compare]
ninja: build stopped: subcommand failed.

Full log here.

@alibuild

alibuild commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/o2 for 79965f5 at 2026-12-04 14:59:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGJE/Tasks/jetHadronsPid.cxx:212:23: error: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Werror=sign-compare]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGJE/Tasks/jetHadronsPid.cxx:216:23: error: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Werror=sign-compare]
ninja: build stopped: subcommand failed.

Full log here.

@llorenc-11
llorenc-11 marked this pull request as draft December 4, 2026 16:04
Removed event and track cut labels along with related histogram label setting code.
@llorenc-11
llorenc-11 marked this pull request as ready for review December 4, 2026 16:28
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