Skip to content

[PWGHF] Make D0 dual-hypothesis rejection configurable - #17476

Open
swapneshkhade wants to merge 1 commit into
AliceO2Group:masterfrom
swapneshkhade:configurable-d0-dual-hypothesis-rejection
Open

[PWGHF] Make D0 dual-hypothesis rejection configurable#17476
swapneshkhade wants to merge 1 commit into
AliceO2Group:masterfrom
swapneshkhade:configurable-d0-dual-hypothesis-rejection

Conversation

@swapneshkhade

Copy link
Copy Markdown
Contributor

Changes:

  • Make the rejection of candidates satisfying both the D0 and D0bar hypotheses configurable in the downstream D0-hadron correlation task.
  • Apply the configurable rejection consistently in data and MC-reconstructed processing.
  • Add hypothesis-specific prompt, non-prompt, and background ML-score selections.
  • Propagate the D0 and D0bar non-prompt ML scores through the candidate correlation table.
  • Introduce dedicated D0 pT bins for the ML working-point thresholds.
  • Apply the corresponding hypothesis-specific ML selection to the MC-reconstructed signal, reflection, and background distributions.

This allows the analysis to be run both with and without rejecting candidates satisfying both hypotheses, enabling the physics impact of the rejection to be evaluated.

@github-actions

Copy link
Copy Markdown

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

@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for d660317 at 2026-08-17 20:25:

## sw/BUILD/O2Physics-code-check-latest/log
--
========== List of issues found ==========
++ echo 'Found 25 errors and 0 warnings.'
Found 25 errors and 0 warnings.
++ [[ 25 -gt 0 ]]
++ cat /sw/BUILD/c30c8204fcc8d363c7c5515717549673a740162e/O2Physics-code-check/errors.txt
PWGHF/HFC/DataModel/CorrelationTables.h:131:1: error: initial values in enum 'o2::aod::hf_correlation_d0_hadron::ParticleTypeData' are not consistent, consider explicit initialization of all, none or only the first enumerator [readability-enum-initial-value,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:65:7: error: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:66:56: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:66:76: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:67:7: error: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:68:7: error: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:69:7: error: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:70:7: error: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:71:7: error: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:72:7: error: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:73:54: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:73:79: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:74:55: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:74:81: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:75:55: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:75:81: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:76:55: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:76:81: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:77:56: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:77:83: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:78:56: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:78:83: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:80:7: error: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:81:54: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx:81:79: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
++ [[ 0 -gt 0 ]]
++ [[ 25 -gt 0 ]]
++ exit 1
--

Full log here.

@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/o2 for d660317 at 2026-08-17 22:45:

## sw/BUILD/O2Physics-latest/log
c++: fatal error: Killed signal terminated program cc1plus
c++: fatal error: Killed signal terminated program cc1plus
c++: fatal error: Killed signal terminated program cc1plus
ninja: build stopped: subcommand failed.

Full log here.

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

Labels

Development

Successfully merging this pull request may close these issues.

2 participants