Skip to content

[PWGLF] Added MC truth matching for nSigmaTPC histograms#14342

Merged
maciacco merged 2 commits intoAliceO2Group:masterfrom
tonmoySh:test-mclabels-pid
Dec 27, 2025
Merged

[PWGLF] Added MC truth matching for nSigmaTPC histograms#14342
maciacco merged 2 commits intoAliceO2Group:masterfrom
tonmoySh:test-mclabels-pid

Conversation

@tonmoySh
Copy link
Contributor

This pull request implements a MC truth-matched NSigma TPC histogram for pions, kaons and protons in the Nuspex Task. The aim is to study the PID contamination, by comparing the reconstructed tracks with the true MC matched particle identity.
Key changes:

  1. Added "processTrackMCLabels" function to fill histograms using MC truth labels.
  2. Added a 2dim std::array to manage 18 particle species across 3 selection categories (pi,K, p).
  3. Initialised the histogram registry for storing these new histograms in a structured output (test_mclabels/nsigmatpc).

@github-actions
Copy link

github-actions bot commented Dec 24, 2025

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

@maciacco
Copy link
Collaborator

@tonmoySh this isn't directly related to your PR, but it would be great to check the linter errors on PDG codes in the future

@maciacco maciacco enabled auto-merge (squash) December 27, 2025 14:24
@maciacco maciacco merged commit a671bcb into AliceO2Group:master Dec 27, 2025
12 of 13 checks passed
@tonmoySh tonmoySh deleted the test-mclabels-pid branch December 27, 2025 18:25
sigurdnese pushed a commit to sigurdnese/O2Physics that referenced this pull request Jan 9, 2026
MattOckleton pushed a commit to MattOckleton/O2Physics that referenced this pull request Jan 14, 2026
mapalhares pushed a commit to mapalhares/O2Physics that referenced this pull request Jan 20, 2026
fcolamar pushed a commit to fcolamar/O2Physics that referenced this pull request Feb 4, 2026
karlazertova pushed a commit to karlazertova/O2Physics that referenced this pull request Feb 5, 2026
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