Skip to content

[PWGLF] Added process function for closure in MCGen#15703

Merged
romainschotter merged 2 commits intoAliceO2Group:masterfrom
scannito:closure
Apr 9, 2026
Merged

[PWGLF] Added process function for closure in MCGen#15703
romainschotter merged 2 commits intoAliceO2Group:masterfrom
scannito:closure

Conversation

@scannito
Copy link
Copy Markdown
Contributor

@scannito scannito commented Apr 9, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 9, 2026 18:09
@github-actions github-actions bot added the pwglf label Apr 9, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

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

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

Adds an MCGen “closure” processing path to phiStrangeCorrelation by introducing lightweight per-event/per-particle containers and a multiplicity-binned mixed-event buffer, then filling new Δy vs Δφ closure histograms for Φ–K0S and Φ–π in same-event (SE) and mixed-event (ME) modes.

Changes:

  • Add MiniParticle/MiniEvent structures plus a std::vector<std::deque<MiniEvent>> event-mixing buffer (binned in multiplicity).
  • Add getCentBin() helper and a new processMCGenClosure() that fills new MCGen closure SE/ME histograms.
  • Change defaults for analysisMode, selectK0sInSigRegion, and selectPionInSigRegion.

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

Comment on lines 353 to 357
}
}

eventBuffer.resize(binsMult->size() - 1);
}
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

eventBuffer.resize(binsMult->size() - 1) can underflow if binsMult is misconfigured with < 2 entries (size_t wraparound), potentially attempting a huge allocation. Add a guard/check in init() (and ideally LOG(fatal)/throw) to enforce at least 2 bin edges before resizing.

Copilot uses AI. Check for mistakes.
Comment on lines +838 to +842
/*void processMCGenClosureSE(MCCollisions::iterator const& mcCollision, aod::McParticles const& mcParticles)
{
float multiplicity = mcCollision.centFT0M();

std::vector<int64_t> phiIndices;
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

A large block of fully commented-out code (processMCGenClosureSE/processMCGenClosureME) is left in the task. This makes the file harder to maintain/review and can easily drift out of sync. Please remove it (or move it to a separate commit/branch) now that processMCGenClosure replaces it.

Copilot uses AI. Check for mistakes.
@romainschotter romainschotter enabled auto-merge (squash) April 9, 2026 18:19
@romainschotter romainschotter merged commit b9375c5 into AliceO2Group:master Apr 9, 2026
16 of 19 checks passed
@scannito scannito deleted the closure branch April 9, 2026 19:18
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