Skip to content

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

Open
mhemmer-cern wants to merge 1 commit into
AliceO2Group:masterfrom
mhemmer-cern:em-emcal-mc-fix
Open

[PWGEM] Fix potential mismatches between data and MC table size#17411
mhemmer-cern wants to merge 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
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.

1 participant