Skip to content

[PWGEM,PWGEM-36] PM: Fix bug in MCUtilitits isMotherPDG and change …#15876

Merged
mhemmer-cern merged 1 commit intoAliceO2Group:masterfrom
mhemmer-cern:PWGEM-36
Apr 20, 2026
Merged

[PWGEM,PWGEM-36] PM: Fix bug in MCUtilitits isMotherPDG and change …#15876
mhemmer-cern merged 1 commit intoAliceO2Group:masterfrom
mhemmer-cern:PWGEM-36

Conversation

@mhemmer-cern
Copy link
Copy Markdown
Collaborator

…some histograms in photon reso task

  • Fix bug in isMotherPDG from MCUtilities.h where the function returend true when the mother was NOT the searched particle type, instead of returning true when it IS the searched particle type.

  • Add getMotherIndexFromChain inside MCUtilities.h which is similar to isMotherPDG but instead of returning true or false it returns the global index of the mother mcparticle.

  • Change eta and phi resolution histograms to use true vs (true - rec) / true instead of rec vs true.

  • Add extra histograms to distinguish clusters where the main contributor is a leg from a photon between those were both legs are inside the cluster and those were only one is inside the cluster

  • Change Pi0EtaToGamma task for EMCal to use the MinCluster tables from DataModel/GammaTablesRedux.h.

…some histograms in photon reso task

- Fix bug in `isMotherPDG` from `MCUtilities.h` where the function returend true when the mother was NOT the searched particle type, instead of returning true when it IS the searched particle type.
- Add `getMotherIndexFromChain` inside `MCUtilities.h` which is similar to `isMotherPDG` but instead of returning true or false it returns the global index of the mother mcparticle.

- Change eta and phi resolution histograms to use true vs (true - rec) / true instead of rec vs true.

- Change Pi0EtaToGamma task for EMCal to use the MinCluster tables from `DataModel/GammaTablesRedux.h`.
@github-actions github-actions bot added pwgem photon Photon and neutral meson PAG label labels Apr 20, 2026
@github-actions
Copy link
Copy Markdown

O2 linter results: ❌ 4 errors, ⚠️ 17 warnings, 🔕 5 disabled

@mhemmer-cern mhemmer-cern enabled auto-merge (squash) April 20, 2026 11:23
Copy link
Copy Markdown
Collaborator

@alibuild alibuild left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approving on behalf of @mhemmer-cern.

@mhemmer-cern mhemmer-cern merged commit 5c16e33 into AliceO2Group:master Apr 20, 2026
12 of 14 checks passed
@mhemmer-cern mhemmer-cern deleted the PWGEM-36 branch April 20, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

photon Photon and neutral meson PAG label pwgem

Development

Successfully merging this pull request may close these issues.

2 participants