Skip to content

Conversation

@ikantak
Copy link
Contributor

@ikantak ikantak commented Jan 14, 2026

Add ML-based photon cuts to photonconversionbuilder, V0PhotonCut and Pi0EtaToGammaGamma(MC) in addition to normal standard cuts

Isabel Kantak added 2 commits January 14, 2026 10:01
…Pi0EtaToGammaGamma(MC) as additional option to the normal standard cuts. Add ML workflow to PhotonMeson.
@github-actions github-actions bot added the pwgem label Jan 14, 2026
@github-actions github-actions bot changed the title Add ML-based photon cuts [PWGEM] Add ML-based photon cuts Jan 14, 2026
@github-actions
Copy link

github-actions bot commented Jan 14, 2026

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

@ikantak ikantak marked this pull request as ready for review January 14, 2026 09:39
Copy link
Collaborator

@mhemmer-cern mhemmer-cern left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@mhemmer-cern mhemmer-cern enabled auto-merge (squash) January 14, 2026 09:48
@mhemmer-cern mhemmer-cern added the photon Photon and neutral meson PAG label label Jan 14, 2026
@mhemmer-cern mhemmer-cern merged commit b72aed1 into AliceO2Group:master Jan 14, 2026
12 of 13 checks passed
@ktf
Copy link
Member

ktf commented Jan 14, 2026

Hi, Notice this code uses KFParticle::GetQ which simply will not work on ARM, where char by default is unsigned. One needs alisw/KFParticle#9.

@ktf
Copy link
Member

ktf commented Jan 15, 2026

Now integrated in alisw/alidist#6086. Please make sure you validate the results if you are running this on ARM, because I simply did the mechanical substitution from char to signed char.

@mhemmer-cern
Copy link
Collaborator

Hi, Notice this code uses KFParticle::GetQ which simply will not work on ARM, where char by default is unsigned. One needs alisw/KFParticle#9.

Hey @ktf is there a way we could have known this before, when the person working on this does not have access to a Mac with ARM?
In any case thanks a lot for finding and quickly fixing this!

@ktf
Copy link
Member

ktf commented Jan 15, 2026

Actually Macs with ARM are fine, since there char is also signed by default. It can only be spotted on Linux on ARM and it was found by our code checker when building the O2 full system test on such platform. That said, I cannot guaranteed that everything is fine because if you do:

int charge = particle.GetQ();

you end up with positive charges only and you do not get any complains, so one would really need to check the details.

@mhemmer-cern
Copy link
Collaborator

I am confused, I thought with your PR GetQ() returns a signed char now, so should

int charge = particle.GetQ();

work without an issue now since on every system the return value for GetQ is ensured to be signed?

@ktf
Copy link
Member

ktf commented Jan 15, 2026

Yes, of course. What I meant is that there might have been other tasks where the old version was silently misbehaving. If that misbehaviour ended up in derived data, we would still be in trouble.

@mhemmer-cern
Copy link
Collaborator

Oh I see. Thanks a lot and lets hope that this is not the case!

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