[PWGHF] Fix D0 ML prompt and non-prompt score ordering#17173
Conversation
|
O2 linter results: ❌ 0 errors, |
|
Error while checking build/O2Physics/code-check for 2167cb7 at 2026-07-22 19:31: Full log here. |
|
Error while checking build/O2Physics/staging for 2167cb7 at 2026-07-23 09:34: Full log here. |
|
Hi @zhangbiao-phy , thanks a lot for the implementation! It looks good to me. As you tagged all the D0 analysers, just a reminder, the order of the BDT responses is also related to that used in local training. That's saying the order in local training should also be:
|
alibuild
left a comment
There was a problem hiding this comment.
Auto-approving on behalf of @zhangbiao-phy.
|
@zhangbiao-phy Please keep in mind that D0 task users are just a subset of the ML response users. If I understand correctly, this affects everyone who applies ML cuts on D0 selection, right? |
I received several reports from different analysers about the D0 BDT score ordering, which has caused some confusion.
This PR fixes the D0 ML score class ordering used in the D0 task and ML response helper.
The D0 ML output vector follows the common charm-hadron convention:
The previous code interpreted indices 1 and 2 as non-prompt and prompt in some places. This update aligns the D0 ML feature mapping and THnSparse axis ordering with the model output convention and with the convention used by other charm-hadron tasks.
The ML selection cut directions are unchanged. For
o2-analysis-hf-candidate-selector-d0,cutDirMlshould remain:i.e.
cutDirMl = 0,1,1.Tagging D0 task users: @Mingyu3360715 @wuctlby @xinyepeng @kgwizdzi @atavirag
Please let me know if you have any comments on this! Thanks a lot!