Skip to content

[PWGLF] Possible change in MC trigger definition#16085

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

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

Conversation

@scannito

@scannito scannito commented May 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

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

github-actions Bot commented May 4, 2026

Copy link
Copy Markdown

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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
SuJeong-Ji pushed a commit to SuJeong-Ji/O2Physics that referenced this pull request May 22, 2026
jjuracka pushed a commit to jjuracka/O2Physics that referenced this pull request Jun 6, 2026
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