Skip to content

[PWGHF/D2H] Added MC process function for feed-down correction - #18973

Merged
singhra1994 merged 3 commits into
AliceO2Group:masterfrom
deependra170598:hfc-mc-process
Dec 1, 2026
Merged

singhra1994 merged 3 commits into
AliceO2Group:masterfrom
deependra170598:hfc-mc-process

Conversation

@deependra170598

Copy link
Copy Markdown
Contributor

Hi @vkucera , @singhra1994 and @apalasciano !

Could you please review this PR?
This PR adds an MC process function for MC-matched prompts and non-prompt candidates to enable feed-down correction in the inclusive correlation function. The correction part will be offline; only containers are added here.

Please let me know if you have any comments or suggestions. Thanks.

Kind regards,
Deependra

@github-actions

Copy link
Copy Markdown

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

@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for e2c4b25 at 2026-11-28 20:15:

## sw/BUILD/O2Physics-code-check-latest/log
--
========== List of issues found ==========
++ echo 'To reproduce the results below locally, run: '\''aliBuild build O2Physics-code-check -e ALIBUILD_BASE_HASH=upstream/master'\''.'
To reproduce the results below locally, run: 'aliBuild build O2Physics-code-check -e ALIBUILD_BASE_HASH=upstream/master'.
++ echo 'To apply all automatic fixes, add the '\''-e O2PHYSICS_CHECKER_FIX=1'\'' option.'
To apply all automatic fixes, add the '-e O2PHYSICS_CHECKER_FIX=1' option.
++ echo 'See the documentation for more details at: <https://aliceo2group.github.io/analysis-framework/docs/tools/#running-with-o2physics-code-check>.'
See the documentation for more details at: <https://aliceo2group.github.io/analysis-framework/docs/tools/#running-with-o2physics-code-check>.
++ echo 'Found 5 errors and 32 warnings.'
Found 5 errors and 32 warnings.
++ [[ 5 -gt 0 ]]
++ cat /sw/BUILD/9cb9b5f6cdfeadfc656e8fec1ade7cbe7400d257/O2Physics-code-check/errors.txt
PWGHF/HFC/TableProducer/correlatorDstarHadrons.cxx:285:39: error: no header providing "RecoDecay" is directly included [misc-include-cleaner,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationDstarHadrons.cxx:121:38: error: no header providing "o2::soa::Join" is directly included [misc-include-cleaner,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationDstarHadrons.cxx:133:10: error: no header providing "std::array" is directly included [misc-include-cleaner,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationDstarHadrons.cxx:134:14: error: no header providing "std::accumulate" is directly included [misc-include-cleaner,-warnings-as-errors]
PWGHF/HFC/Tasks/taskCorrelationDstarHadrons.cxx:297:41: error: no header providing "RecoDecay" is directly included [misc-include-cleaner,-warnings-as-errors]
++ [[ 32 -gt 0 ]]
++ cat /sw/BUILD/9cb9b5f6cdfeadfc656e8fec1ade7cbe7400d257/O2Physics-code-check/warnings.txt
PWGHF/HFC/TableProducer/correlatorDstarHadrons.cxx:56:7: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGHF/HFC/TableProducer/correlatorDstarHadrons.cxx:57:63: warning: 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]
PWGHF/HFC/TableProducer/correlatorDstarHadrons.cxx:57:90: warning: 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]
PWGHF/HFC/TableProducer/correlatorDstarHadrons.cxx:59:7: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGHF/HFC/TableProducer/correlatorDstarHadrons.cxx:60:65: warning: 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]
PWGHF/HFC/TableProducer/correlatorDstarHadrons.cxx:60:94: warning: 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]
PWGHF/HFC/TableProducer/correlatorDstarHadrons.cxx:62:7: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGHF/HFC/TableProducer/correlatorDstarHadrons.cxx:63:67: warning: 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]
PWGHF/HFC/TableProducer/correlatorDstarHadrons.cxx:63:98: warning: 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]
PWGHF/HFC/TableProducer/correlatorDstarHadrons.cxx:65:7: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGHF/HFC/TableProducer/correlatorDstarHadrons.cxx:66:63: warning: 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]
PWGHF/HFC/TableProducer/correlatorDstarHadrons.cxx:66:90: warning: 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]
PWGHF/HFC/TableProducer/correlatorDstarHadrons.cxx:68:7: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGHF/HFC/TableProducer/correlatorDstarHadrons.cxx:69:63: warning: 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]
PWGHF/HFC/TableProducer/correlatorDstarHadrons.cxx:69:90: warning: 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]
PWGHF/HFC/Tasks/taskCorrelationDstarHadrons.cxx:58:7: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGHF/HFC/Tasks/taskCorrelationDstarHadrons.cxx:59:63: warning: 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]
PWGHF/HFC/Tasks/taskCorrelationDstarHadrons.cxx:59:90: warning: 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]
PWGHF/HFC/Tasks/taskCorrelationDstarHadrons.cxx:61:7: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGHF/HFC/Tasks/taskCorrelationDstarHadrons.cxx:62:65: warning: 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]
PWGHF/HFC/Tasks/taskCorrelationDstarHadrons.cxx:62:94: warning: 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]
PWGHF/HFC/Tasks/taskCorrelationDstarHadrons.cxx:64:7: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGHF/HFC/Tasks/taskCorrelationDstarHadrons.cxx:65:67: warning: 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]
PWGHF/HFC/Tasks/taskCorrelationDstarHadrons.cxx:65:98: warning: 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]
PWGHF/HFC/Tasks/taskCorrelationDstarHadrons.cxx:73:7: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGHF/HFC/Tasks/taskCorrelationDstarHadrons.cxx:74:63: warning: 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]
PWGHF/HFC/Tasks/taskCorrelationDstarHadrons.cxx:74:90: warning: 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]
PWGHF/HFC/Tasks/taskCorrelationDstarHadrons.cxx:76:7: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGHF/HFC/Tasks/taskCorrelationDstarHadrons.cxx:77:63: warning: 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]
[0 more errors; see full log]

Full log here.

@deependra170598
deependra170598 marked this pull request as draft November 28, 2026 19:23
@deependra170598
deependra170598 marked this pull request as ready for review November 28, 2026 20:55
@singhra1994
singhra1994 enabled auto-merge (squash) November 29, 2026 11:51
@singhra1994
singhra1994 merged commit 936f23d into AliceO2Group:master Dec 1, 2026
14 checks passed
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.

3 participants