Skip to content

[PWGCF] FU MC Truth: producer and task update for D0 analysis - #18903

Merged
prchakra merged 3 commits into
AliceO2Group:masterfrom
kgwizdzi:femtoUniMcTruth20261124
Nov 24, 2026
Merged

prchakra merged 3 commits into
AliceO2Group:masterfrom
kgwizdzi:femtoUniMcTruth20261124

Conversation

@kgwizdzi

Copy link
Copy Markdown
Contributor

femtoUniverseProducerMCTruthTask.cxx:

  • two new process functions processTrackMcWithHf and processTrackMcOnlyRecoCollWithHf, which allow to do proper selection of generated D0/D0bar mesons based on aod::McParticles and HF-dedicated table aod::HfCand2ProngMcGen
    ** users not interested in HF analysis can use processTrackMc and processTrackMcOnlyRecoColl (no need to add the HF helper tasks to run)
    ** process functions with the text OnlyRecoColl in the name of the process are processing only MC Truth events which are reconstructed
    ** all MC Truth events are processed in processTrackMc and processTrackMcWithHf
  • new function fillParticlesWithHf created to fill tables with D0/D0bar mesons in the dedicated process functions
  • adding the possibility to switch on/off additional event selection criteria with dedicated configurables: confUseIsGoodZvtxFT0vsPV, confUseIsVertexITSTPC, confUseNoSameBunchPileup
  • configurable confStoreMotherPDG removed - The mother PDG is now always stored.
  • fixing two O2 linter warnings

femtoUniversePairTaskTrackTrackMcTruth.cxx:

  • adding separate configurables for the eta cuts of particles 1 and 2 (confEtaMaxPart1, confEtaMaxPart2)
  • adding the possibility to switch on/off mother PDG check for particle 1 and 2 (confCheckMotherPDGPart1, confCheckMotherPDGPart2); check can be done for one of the particle or for both; a particle is rejected if the mother PDG is same as the one provided within dedicated configurable (confMotherPdgPart1, confMotherPdgPart2)
  • one new function passesParticleSelection which checks the selection criteria for the particle
  • removing unused variables/configurables

@github-actions

Copy link
Copy Markdown

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

@github-actions github-actions Bot added the pwgcf label Nov 24, 2026
@github-actions github-actions Bot changed the title FU MC Truth: producer and task update for D0 analysis [PWGCF] FU MC Truth: producer and task update for D0 analysis Nov 24, 2026
@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for d9074ae at 2026-11-24 17:46:

## 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 3 errors and 8 warnings.'
Found 3 errors and 8 warnings.
++ [[ 3 -gt 0 ]]
++ cat /sw/BUILD/801e07b04362f03c9c8cf2fe072bdf168ff598d0/O2Physics-code-check/errors.txt
PWGCF/FemtoUniverse/TableProducer/femtoUniverseProducerMCTruthTask.cxx:21:1: error: included header utilsMcMatching.h is not used directly [misc-include-cleaner,-warnings-as-errors]
PWGCF/FemtoUniverse/TableProducer/femtoUniverseProducerMCTruthTask.cxx:330:75: error: no header providing "o2::hf_decay::hf_cand_2prong::DecayChannelMain" is directly included [misc-include-cleaner,-warnings-as-errors]
PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackTrackMcTruth.cxx:159:14: error: no header providing "std::abs" is directly included [misc-include-cleaner,-warnings-as-errors]
++ [[ 8 -gt 0 ]]
++ cat /sw/BUILD/801e07b04362f03c9c8cf2fe072bdf168ff598d0/O2Physics-code-check/warnings.txt
PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackTrackMcTruth.cxx:131:86: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackTrackMcTruth.cxx:133:88: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackTrackMcTruth.cxx:139:150: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackTrackMcTruth.cxx:140:151: warning: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion]
PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackTrackMcTruth.cxx:235:20: warning: statement should be inside braces [readability-braces-around-statements]
PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackTrackMcTruth.cxx:237:13: warning: statement should be inside braces [readability-braces-around-statements]
PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackTrackMcTruth.cxx:279:18: warning: statement should be inside braces [readability-braces-around-statements]
PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackTrackMcTruth.cxx:281:11: warning: statement should be inside braces [readability-braces-around-statements]
++ [[ 3 -gt 0 ]]
++ exit 1
--

Full log here.

@prchakra
prchakra merged commit 186af51 into AliceO2Group:master Nov 24, 2026
14 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