Skip to content

[PWGEM] add new deduplication modes + MC information - #17407

Open
Steffimro wants to merge 3 commits into
AliceO2Group:masterfrom
Steffimro:master
Open

[PWGEM] add new deduplication modes + MC information#17407
Steffimro wants to merge 3 commits into
AliceO2Group:masterfrom
Steffimro:master

Conversation

@Steffimro

Copy link
Copy Markdown
Contributor

Two new deduplication modes added:

Deduplaction Mode 2: Instead of ranking V0 candidates by score and accepting them one by one, as the greedy mode does, the whole group of candidates connected through shared tracks is decided at once, keeping the maximum number of V0s that do not share a track. Among equally large solutions the one with the smallest sum of scores wins, so the score still decides, but only between solutions of the same size.

Dedpulication Mode 3: Keeps all V0s. No deduplication - more for cross-checks.

For better diagnostics of the deduplication procedure truth categories where added. processMC now classifies every candidate from the MC mothers of its two legs: true (both legs from the same photon), cross-leg fake (legs from two different photons), other fake (at least one leg is not a conversion leg) — and records which surviving candidate took a leg from a rejected one. A true photon counts as lost when all of its true candidates were rejected, and those blockers give the reason.

@github-actions github-actions Bot added pwgem photon Photon and neutral meson PAG label labels Aug 11, 2026
@github-actions github-actions Bot changed the title add new deduplication modes + MC information [PWGEM] add new deduplication modes + MC information Aug 11, 2026
@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown

O2 linter results: ❌ 31 errors, ⚠️ 79 warnings, 🔕 16 disabled

@Steffimro
Steffimro marked this pull request as ready for review August 11, 2026 12:12
Comment thread PWGEM/PhotonMeson/Utils/PCMUtilities.h Outdated
/// \param track track with an MC label
/// \param mcparticles the full McParticles table
/// \return index of the mother if it is a photon, -1 otherwise
template <typename TTrack, typename TMCParticles>

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.

replace typename with the correct concept for iterators and tables to speed up build time please

Comment thread PWGEM/PhotonMeson/Utils/PCMUtilities.h Outdated
/// \param motherPos photon mother of the positive leg, -1 if none
/// \param motherEle photon mother of the negative leg, -1 if none
/// \return kV0True, kV0CrossLegFake or kV0OtherFake
template <typename TTrack, typename TMCParticles>

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.

replace typename with the correct concept for iterators and tables to speed up build time please

Configurable<int> useMatCorrType{"useMatCorrType", 0, "0: none, 1: TGeo, 2: LUT"};
Configurable<int> modeTrackPropagation{"modeTrackPropagation", 0, "0: use real track propagation, including material, 1: use fast approximation using only geometry, 2: Use real track propagation and make comparison to fast propagation (only for debugging and testing)"};
Configurable<int> deduplicationMode{"deduplicationMode", 0, "0: Pairwise deduplication, 1: Based on Greedy matching (best score wins)"};
Configurable<int> deduplicationMode{"deduplicationMode", 0, "0: Pairwise deduplication, 1: Based on Greedy matching (best score wins), 2: Based on Group matching (crossed pairs are both kept), 3: Keep all V0s"};

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.

Maybe add comment that method 1 is fall back method

@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for 4990761 at 2026-08-11 14:29:

## sw/BUILD/O2Physics-code-check-latest/log
--
========== List of issues found ==========
++ echo 'Found 1 errors and 0 warnings.'
Found 1 errors and 0 warnings.
++ [[ 1 -gt 0 ]]
++ cat /sw/BUILD/7a04d3af97cfbdcec6e670a066e45f137ec8390a/O2Physics-code-check/errors.txt
PWGEM/PhotonMeson/TableProducer/photonconversionbuilder.cxx:1654:12: error: no header providing "size_t" is directly included [misc-include-cleaner,-warnings-as-errors]
++ [[ 0 -gt 0 ]]
++ [[ 1 -gt 0 ]]
++ exit 1
--

Full log here.

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.

3 participants