Skip to content

[PWGCF] process NUA Creator added#15029

Merged
victor-gonzalez merged 3 commits intoAliceO2Group:masterfrom
nmallick19:master
Feb 19, 2026
Merged

[PWGCF] process NUA Creator added#15029
victor-gonzalez merged 3 commits intoAliceO2Group:masterfrom
nmallick19:master

Conversation

@nmallick19
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions bot added the pwgcf label Feb 18, 2026
@github-actions github-actions bot changed the title process NUA Creator added [PWGCF] process NUA Creator added Feb 18, 2026
[PWGCF] Please consider the following formatting changes to AliceO2Group#15029
@MaximVirta
Copy link
Copy Markdown
Contributor

Looks good from my point of view, no contradictions with our development

// NUA corrections are a function of multiplicity, partType, phi, eta, and z-vertex
const double nuaCoords[] = {collision.multiplicity(), static_cast<double>(partType), track.phi(), track.eta(), collision.posZ()};
phiWeight = ph->GetBinContent(ph->GetBin(nuaCoords));
phiWeight = phiWeight == 0. ? 1.0f : phiWeight; // avoid division by zero later
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Small change to account for possible numeric rounding issues

Suggested change
phiWeight = phiWeight == 0. ? 1.0f : phiWeight; // avoid division by zero later
if (phiWeight < 1e-6f)
phiWeight = 1.0f; // avoid division by zero later

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It's not a requirement though since the tests have mostly run already.

@victor-gonzalez victor-gonzalez merged commit b85e93b into AliceO2Group:master Feb 19, 2026
13 of 14 checks passed
comrademarvin pushed a commit to comrademarvin/O2Physics that referenced this pull request Mar 16, 2026
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
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.

5 participants