Skip to content

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

Merged
zhangbiao-phy merged 1 commit into
AliceO2Group:masterfrom
lubynets:lc-ml
May 28, 2026
Merged

[PWGHF] treeCreatorLcToPKPi: check the size of HfMlLcToPKPi#16425
zhangbiao-phy merged 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

@zhangbiao-phy zhangbiao-phy merged commit 517be15 into AliceO2Group:master May 28, 2026
15 of 16 checks passed
bhattdurgesh921-sys pushed a commit to bhattdurgesh921-sys/O2Physics that referenced this pull request May 28, 2026
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.

2 participants