[PWGHF] Fix PID assignment in Xic0 and Omegac0 candidate creator#16352
Draft
mtorresc15 wants to merge 2 commits into
Draft
[PWGHF] Fix PID assignment in Xic0 and Omegac0 candidate creator#16352mtorresc15 wants to merge 2 commits into
mtorresc15 wants to merge 2 commits into
Conversation
|
O2 linter results: ❌ 0 errors, |
vkucera
reviewed
May 22, 2026
| }; | ||
|
|
||
| // Convert the KFParticle PDG code to the O2 track PID enum needed by getTrackParCovFromKFP() | ||
| o2::track::PID::ID getTrackPIDFromPDG(const int pdg) |
Collaborator
There was a problem hiding this comment.
There is no way this conversion does not exist in some common utilities yet.
vkucera
reviewed
May 22, 2026
Comment on lines
+103
to
+106
| case 211: | ||
| return o2::track::PID::Pion; | ||
| case 321: | ||
| return o2::track::PID::Kaon; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes the PID assignment passed to getTrackParCovFromKFP() in candidateCreatorXic0Omegac0.cxx.
KFParticle::GetPDG() returns a PDG code, while getTrackParCovFromKFP() expects an o2::track::PID enum. This PR adds a helper function to convert the PDG code to the corresponding PID enum before calling getTrackParCovFromKFP().
@fcatalan92 @jinhyunni