Skip to content

[PWGHF] treeCreatorLcToPKPi: check the size of HfMlLcToPKPi#16425

Open
lubynets wants to merge 1 commit into
AliceO2Group:masterfrom
lubynets:lc-ml
Open

[PWGHF] treeCreatorLcToPKPi: check the size of HfMlLcToPKPi#16425
lubynets wants to merge 1 commit into
AliceO2Group:masterfrom
lubynets:lc-ml

Conversation

@lubynets
Copy link
Copy Markdown
Contributor

@lubynets lubynets commented May 27, 2026

In the current implementation of the code if applyMl == true and the sizes of tables with candidates and the aod::HfMlLcToPKPi are not equal (e.g. applyMl was not enabled in the candidateSelectorLc), the code crashes via segmentation error because of dereferencing the nullptr. (The reason why mentioned tables are not joined is discussed here).

This PR adds a function which checks the mentioned sizes for equality and throws a fatal error in case of fail.

@github-actions github-actions Bot added the pwghf PWG-HF label May 27, 2026
@github-actions github-actions Bot changed the title treeCreatorLcToPKPi: check the size of HfMlLcToPKPi [PWGHF] treeCreatorLcToPKPi: check the size of HfMlLcToPKPi May 27, 2026
@github-actions
Copy link
Copy Markdown

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

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.

1 participant