Skip to content

[PWGLF] Possible change in MC trigger definition#16085

Merged
lhusova merged 2 commits intoAliceO2Group:masterfrom
scannito:corrections
May 4, 2026
Merged

[PWGLF] Possible change in MC trigger definition#16085
lhusova merged 2 commits intoAliceO2Group:masterfrom
scannito:corrections

Conversation

@scannito
Copy link
Copy Markdown
Contributor

@scannito scannito commented May 4, 2026

No description provided.

@github-actions github-actions Bot added the pwglf label May 4, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

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

@scannito scannito marked this pull request as ready for review May 4, 2026 14:48
Copilot AI review requested due to automatic review settings May 4, 2026 14:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts how the phi “trigger” is defined in MC by adding an option to build MCGen phi candidates either from true generated phi mesons or from generated K+K− pairs, and it adds toggles affecting pion PID electron rejection and event-level phi presence checks.

Changes:

  • Add trueGenPhi option in PhiMesonCandProducer::processMCGen to switch between true-phi based MCGen candidates vs K+K− pair reconstruction.
  • Add applyElRejection option to enable/disable the electron-rejection block inside pion PID hypotheses rejection.
  • Add withTrueGenPhi option to switch the event-level “has phi” decision from a mass-window count to a simple “any candidate exists” check.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


if (!(mcParticle1.pdgCode() == PDG_t::kKPlus && mcParticle2.pdgCode() == PDG_t::kKMinus) &&
!(mcParticle1.pdgCode() == PDG_t::kKMinus && mcParticle2.pdgCode() == PDG_t::kKPlus))
phimesonCandidatesMcGen(mcCollision.globalIndex(), 0, mcParticle.pt(), mcParticle.y(), mcParticle.phi());
Comment on lines +340 to +341
if (!(mcParticle1.pdgCode() == PDG_t::kKPlus && mcParticle2.pdgCode() == PDG_t::kKMinus) &&
!(mcParticle1.pdgCode() == PDG_t::kKMinus && mcParticle2.pdgCode() == PDG_t::kKPlus))
Comment on lines +934 to +936
if (withTrueGenPhi) {
if (phiCandidates.size() < 1)
return false;
@lhusova lhusova enabled auto-merge (squash) May 4, 2026 15:01
@lhusova lhusova merged commit 8024c53 into AliceO2Group:master May 4, 2026
16 of 19 checks passed
@scannito scannito deleted the corrections branch May 4, 2026 16:54
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