Skip to content

[PWGHF] [xic0omegac0] Update codes to fix PID assignment in KFParticle#16381

Open
jinhyunni wants to merge 8 commits into
AliceO2Group:masterfrom
jinhyunni:kfupdate
Open

[PWGHF] [xic0omegac0] Update codes to fix PID assignment in KFParticle#16381
jinhyunni wants to merge 8 commits into
AliceO2Group:masterfrom
jinhyunni:kfupdate

Conversation

@jinhyunni
Copy link
Copy Markdown
Contributor

@jinhyunni jinhyunni commented May 26, 2026

This PR aims to fix PID assignment when using getTrackParCovFromKFP() method in candidateCreatorXic0Omegac0Qa.cxx code.

@fcatalan92, @mtorresc15

@github-actions github-actions Bot added the pwghf PWG-HF label May 26, 2026
@github-actions github-actions Bot changed the title [xic0omegac0] Update codes to fix PID assignment in KFParticle [PWGHF] [xic0omegac0] Update codes to fix PID assignment in KFParticle May 26, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 26, 2026

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

@fcatalan92
Copy link
Copy Markdown
Collaborator

@jinhyunni Thanks for spotting and fixing this issue! The PR is fine for me, however I think you can solve the same issue in a cleaner way if you define a helper function that converts the PDG code to the correct o2::track::PID one, as Fernanda did in #16352 .

@jinhyunni
Copy link
Copy Markdown
Contributor Author

Hi @fcatalan92, thank you for reviewing this PR and for sharing your thoughts on this point.

I agree that introducing a helper function would make the implementation cleaner. My initial intention was to keep these assignments together with the other decay-channel-dependent variables in the init function, so that all hypotheses for each reconstruction channel are defined in one place.

That said, if you think the helper-function approach would be better for maintainability or consistency with the existing code style, I would be happy to update the implementation accordingly.

@fcatalan92
Copy link
Copy Markdown
Collaborator

That said, if you think the helper-function approach would be better for maintainability or consistency with the existing code style, I would be happy to update the implementation accordingly.

Hi @jinhyunni, yes, if you have time, it would be great if you could update the PR using the helper-function approach. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pwghf PWG-HF

Development

Successfully merging this pull request may close these issues.

3 participants