Skip to content

[PWGEM] Fix potential mismatches between data and MC table size - #17411

Merged
mhemmer-cern merged 1 commit into
AliceO2Group:masterfrom
mhemmer-cern:em-emcal-mc-fix
Aug 11, 2026
Merged

[PWGEM] Fix potential mismatches between data and MC table size#17411
mhemmer-cern merged 1 commit into
AliceO2Group:masterfrom
mhemmer-cern:em-emcal-mc-fix

Conversation

@mhemmer-cern

Copy link
Copy Markdown
Collaborator

In skimmerGammaCalo merged the filling of the reconstruction data table and the MC info table into one function to ensure both are filled at the same time using the exact same cuts. Before this commit, MC was missing the maxEnergy and exotic cluster cut.
Also now, one only needs one of the two new MC process and no longer needs Reco + MC to have both informations available.

In associateMCinfoPhoton added additional collision check for filling the mclabels tables. Before it was only checked that the reco collision has a matching mc_collision nothing else. However, when creating the fEventLabels look up map for the association of the collisions the isSelected() function is called. This could result in EmMcParticles pointing to garbage EMMCEventIds. The usage of isSelected() can now be turned on and off via the new config useIsSelected .
Also added extra protection against cases where a collisionId was not added to fEventLabels which will results in a warning log message.

In skimmerGammaCalo merged the filling of the reconstruction data table and the MC info table into one function to ensure both are filled at the same time using the exact same cuts.

In associateMCinfoPhoton added additionl collision check for filling the mclabels tables.
Before it was only checked that the reco collision has a matching mc_collision nothing else. However, when creating the `fEventLabels` look up map for the association of the collisions isSelected() function is called. This could result in EmMcParticles poiting to garbage EMMCEventIds.
@github-actions github-actions Bot added pwgem photon Photon and neutral meson PAG label labels Aug 11, 2026
@mhemmer-cern mhemmer-cern changed the title [PWGEM] Fix potential missmatches between data and MC [PWGEM] Fix potential miss matches between data and MC table size Aug 11, 2026
@github-actions

Copy link
Copy Markdown

O2 linter results: ❌ 9 errors, ⚠️ 18 warnings, 🔕 4 disabled

@mhemmer-cern mhemmer-cern changed the title [PWGEM] Fix potential miss matches between data and MC table size [PWGEM] Fix potential mismatches between data and MC table size Aug 11, 2026
@mhemmer-cern
mhemmer-cern enabled auto-merge (squash) August 11, 2026 14:40

@alibuild alibuild left a comment

Copy link
Copy Markdown
Collaborator

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 d43105e into AliceO2Group:master Aug 11, 2026
17 of 18 checks passed
@mhemmer-cern
mhemmer-cern deleted the em-emcal-mc-fix branch August 11, 2026 14:43
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