Skip to content

Conversation

@FDUEnrich
Copy link
Contributor

No description provided.

@github-actions github-actions bot changed the title Add omegac0 xic0 to omega ka framework reconstructed by kf [PWGHF] Add omegac0 xic0 to omega ka framework reconstructed by kf Jun 25, 2025
@github-actions
Copy link

github-actions bot commented Jun 25, 2025

O2 linter results: ❌ 6 errors, ⚠️ 0 warnings, 🔕 2 disabled

Please consider the following formatting changes to AliceO2Group#11764
Copy link
Collaborator

@fgrosa fgrosa left a comment

Choose a reason for hiding this comment

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

Hi @FDUEnrich thanks for the implementation! As a general comment, I think it would have been beneficial to have a single process function for Omega+Pi and Omega+Ka (and also for Xi and Omega actually), where only the PID selection and the mass hypothesis is different for the bachelor, to avoid a large amount of code duplication, which is much more difficult to maintain. However since the other cases are already split we can keep this strategy (but it would be good to improve this sooner or later).
In the following you can see my detailed comments to your additionss

auto trackKaFromOmega = casc.bachelor_as<MyKfTracks>(); // Ka <- Omega track
auto trackV0DauPos = casc.posTrack_as<MyKfTracks>(); // V0 positive daughter track
auto trackV0DauNeg = casc.negTrack_as<MyKfTracks>(); // V0 negative daughter track
auto KaFromOmegaCharge = trackKaFromOmega.signed1Pt() > 0 ? +1 : -1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why can't you use the trackKaFromOmega.sign() directly?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@FDUEnrich did you check if you can use trackKaFromOmega.sign() directly instead of defining a new variable?

auto trackV0DauPos = casc.posTrack_as<MyKfTracks>(); // V0 positive daughter track
auto trackV0DauNeg = casc.negTrack_as<MyKfTracks>(); // V0 negative daughter track
auto KaFromOmegaCharge = trackKaFromOmega.signed1Pt() > 0 ? +1 : -1;
int signOmega = casc.sign() > 0 ? +1 : -1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why can't you use casc.sign() directly?

Copy link
Collaborator

Choose a reason for hiding this comment

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

same as above

@FDUEnrich FDUEnrich marked this pull request as ready for review July 1, 2025 01:20
@vkucera vkucera marked this pull request as draft July 1, 2025 11:27
Co-authored-by: Fabrizio <fabrizio.grosa@cern.ch>
@FDUEnrich FDUEnrich marked this pull request as ready for review July 2, 2025 05:34
@fgrosa fgrosa merged commit d8b3775 into AliceO2Group:master Jul 7, 2025
13 of 14 checks passed
@vkucera
Copy link
Collaborator

vkucera commented Jul 7, 2025

@FDUEnrich Please fix the errors.

jpxrk pushed a commit to jpxrk/O2Physics that referenced this pull request Jul 16, 2025
…liceO2Group#11764)

Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
Co-authored-by: Fabrizio <fabrizio.grosa@cern.ch>
prottayCMT pushed a commit to prottayCMT/O2Physics2024 that referenced this pull request Jul 18, 2025
…liceO2Group#11764)

Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
Co-authored-by: Fabrizio <fabrizio.grosa@cern.ch>
JimunLee pushed a commit to JimunLee/O2Physics that referenced this pull request Jul 22, 2025
…liceO2Group#11764)

Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
Co-authored-by: Fabrizio <fabrizio.grosa@cern.ch>
vojmach pushed a commit to vojmach/O2Physics that referenced this pull request Jul 23, 2025
…liceO2Group#11764)

Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
Co-authored-by: Fabrizio <fabrizio.grosa@cern.ch>
jloemker pushed a commit to jloemker/O2Physics that referenced this pull request Nov 11, 2025
…liceO2Group#11764)

Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
Co-authored-by: Fabrizio <fabrizio.grosa@cern.ch>
alibuild added a commit to alibuild/O2Physics that referenced this pull request Dec 5, 2025
…liceO2Group#11764)

Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
Co-authored-by: Fabrizio <fabrizio.grosa@cern.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

4 participants