Skip to content

[PWGUD] Add RCT selection to global muon candidate producer - #19017

Open
nivram-phy wants to merge 2 commits into
AliceO2Group:masterfrom
nivram-phy:codex/rct-global-muon
Open

nivram-phy wants to merge 2 commits into
AliceO2Group:masterfrom
nivram-phy:codex/rct-global-muon

Conversation

@nivram-phy

@nivram-phy nivram-phy commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

GlobalMuon candidate production currently does not check RCT quality. Add configurable RCT selection for reconstructed tracks in both data and MC using BcSels and the same muon/muon_glo detector masks as UPCCandidateProducer. The defaults select muon quality with ZDC checking and limited-acceptance rejection enabled; rctLabel=none disables the checks.

Evaluate the existing source BC before the track-time shift, including the first listed BC for ambiguous tracks. Stop with a run/BC diagnostic when the RCT object is missing, and guard missing or invalid source-BC associations. These validity and ambiguous-track checks are stricter than the current general producer. Add a three-bin track-level selection counter; derived UD output columns remain unchanged.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

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

@alibuild

alibuild commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for 8aa8729 at 2026-12-01 15:48:

## 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 1 errors and 45 warnings.'
Found 1 errors and 45 warnings.
++ [[ 1 -gt 0 ]]
++ cat /sw/BUILD/db4ce482712bb9d7ad49c3b410164b68f7be84d2/O2Physics-code-check/errors.txt
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:761:37: error: redundant explicit casting to the same type 'int64_t' (aka 'long') as the sub-expression, remove this casting [readability-redundant-casting,-warnings-as-errors]
++ [[ 45 -gt 0 ]]
++ cat /sw/BUILD/db4ce482712bb9d7ad49c3b410164b68f7be84d2/O2Physics-code-check/warnings.txt
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:70:8: warning: constructor does not initialize these fields: fCCDB [cppcoreguidelines-pro-type-member-init]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:90:30: warning: initializer for member 'fUpcCuts' is redundant [readability-redundant-member-init]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:222:16: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:224:17: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:226:18: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:228:18: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:230:18: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:246:37: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:284:7: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:332:33: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:336:23: warning: 1st argument 'bc2' (passed to 'bc1') looks like it might be swapped with the 2nd, 'inGbc' (passed to 'bc2') [readability-suspicious-call-argument]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:347:72: warning: forwarding reference parameter 'func' is never forwarded inside the function body [cppcoreguidelines-missing-std-forward]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:358:32: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:367:28: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:377:30: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:389:33: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:407:25: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:483:11: warning: variable 'px' is not initialized [cppcoreguidelines-init-variables]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:483:15: warning: variable 'py' is not initialized [cppcoreguidelines-init-variables]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:483:19: warning: variable 'pz' is not initialized [cppcoreguidelines-init-variables]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:484:9: warning: variable 'sign' is not initialized [cppcoreguidelines-init-variables]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:517:17: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:565:27: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:611:25: warning: use 'contains' to check for membership [readability-container-contains]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:661:60: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:668:11: warning: use auto when initializing with a cast to avoid duplicating the type name [modernize-use-auto]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:669:28: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:670:35: 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]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:697:47: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:707:92: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:719:11: warning: the 'empty' method should be used to check for emptiness instead of 'size' [readability-container-size-empty]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:743:43: warning: statement should be inside braces [readability-braces-around-statements]
PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx:748:28: warning: use 'contains' to check for membership [readability-container-contains]
[0 more errors; see full log]

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