Skip to content

[PWGUD] sgDeuteronSpectra: Implement DCA nsigma selection - #18940

Merged
amatyja merged 7 commits into
AliceO2Group:masterfrom
m-rasa:taskdevelopment
Nov 27, 2026
Merged

amatyja merged 7 commits into
AliceO2Group:masterfrom
m-rasa:taskdevelopment

Conversation

@m-rasa

@m-rasa m-rasa commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Added functionality to implement DCAxy/DCAz cuts with a nsigma parametrization:

  • Removed the use of SgParticleSelector to add DCAz pt dependence
  • Defined two process functions (with process switches) to obtain DCA distributions to fit offline and then normal data anallysis
  • Common part for the two process functions implemented in auxiliary functions (avoid code duplication)

@github-actions github-actions Bot added the pwgud label Nov 26, 2026
@github-actions github-actions Bot changed the title Implement DCA nsigma selection [PWGUD] Implement DCA nsigma selection Nov 26, 2026
@github-actions

Copy link
Copy Markdown

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

Please consider the following formatting changes to AliceO2Group#18940
@m-rasa
m-rasa marked this pull request as ready for review November 26, 2026 15:26
amatyja
amatyja previously approved these changes Nov 26, 2026
@amatyja
amatyja enabled auto-merge (squash) November 26, 2026 15:39
@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for 1c7b5c0 at 2026-11-26 16:41:

## 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 3 errors and 5 warnings.'
Found 3 errors and 5 warnings.
++ [[ 3 -gt 0 ]]
++ cat /sw/BUILD/e26b749cce40bc1fa9d82bdec3d459304fab04af/O2Physics-code-check/errors.txt
PWGUD/Tasks/sgDeuteronSpectra.cxx:18:1: error: included header SGTrackSelector.h is not used directly [misc-include-cleaner,-warnings-as-errors]
PWGUD/Tasks/sgDeuteronSpectra.cxx:54:16: error: no header providing "o2::framework::LabeledArray" is directly included [misc-include-cleaner,-warnings-as-errors]
PWGUD/Tasks/sgDeuteronSpectra.cxx:191:14: error: no header providing "std::strcmp" is directly included [misc-include-cleaner,-warnings-as-errors]
++ [[ 5 -gt 0 ]]
++ cat /sw/BUILD/e26b749cce40bc1fa9d82bdec3d459304fab04af/O2Physics-code-check/warnings.txt
PWGUD/Tasks/sgDeuteronSpectra.cxx:136:10: warning: implicit conversion 'unwrap_t<int>' (aka 'int') -> 'bool' [readability-implicit-bool-conversion]
PWGUD/Tasks/sgDeuteronSpectra.cxx:140:10: warning: implicit conversion 'unwrap_t<int>' (aka 'int') -> 'bool' [readability-implicit-bool-conversion]
PWGUD/Tasks/sgDeuteronSpectra.cxx:144:10: warning: implicit conversion 'unwrap_t<int>' (aka 'int') -> 'bool' [readability-implicit-bool-conversion]
PWGUD/Tasks/sgDeuteronSpectra.cxx:149:12: warning: implicit conversion 'unwrap_t<int>' (aka 'int') -> 'bool' [readability-implicit-bool-conversion]
PWGUD/Tasks/sgDeuteronSpectra.cxx:156:10: warning: implicit conversion 'unwrap_t<int>' (aka 'int') -> 'bool' [readability-implicit-bool-conversion]
++ [[ 3 -gt 0 ]]
++ exit 1
--

Full log here.

@vkucera
vkucera disabled auto-merge November 26, 2026 15:43
@vkucera

vkucera commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Hi @m-rasa , please fix the PR title and the errors. The title could refer to any task. Please add where. See the contribution guidelines. https://aliceo2group.github.io/analysis-framework/docs/gettingstarted/contributingtocode.html#pull-requests

@m-rasa m-rasa changed the title [PWGUD] Implement DCA nsigma selection [PWGUD] sgDeuteronSpectra: Implement DCA nsigma selection Nov 26, 2026
@m-rasa

m-rasa commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Hi @vkucera, thanks for reporting.
PR renamed (I will be more careful to follow the guidelines for next PRs) and errors fixed (that went unnoticed in local checks: I will try to set properly all the available checkers on my local machine). All is good now and all test are successful. Sorry for the issues!

@amatyja @ekryshen due to the previous errors the PR needs again to be reviewed. Could you do it? Sorry for the double work!

@vkucera

vkucera commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Hi @vkucera, thanks for reporting. PR renamed (I will be more careful to follow the guidelines for next PRs) and errors fixed (that went unnoticed in local checks: I will try to set properly all the available checkers on my local machine). All is good now and all test are successful. Sorry for the issues!

@amatyja @ekryshen due to the previous errors the PR needs again to be reviewed. Could you do it? Sorry for the double work!

Hi @m-rasa , thanks a lot!

@amatyja
amatyja merged commit cd5f13c into AliceO2Group:master Nov 27, 2026
16 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.

4 participants