Skip to content

[PWGCF] Fixing minor bugs#15277

Merged
otonvd merged 1 commit intoAliceO2Group:masterfrom
sustripathy:master
Mar 7, 2026
Merged

[PWGCF] Fixing minor bugs#15277
otonvd merged 1 commit intoAliceO2Group:masterfrom
sustripathy:master

Conversation

@sustripathy
Copy link
Copy Markdown
Contributor

The commit fixes a few minor bugs related to proton candidates.

@github-actions github-actions bot added the pwgcf label Mar 5, 2026
@github-actions github-actions bot changed the title Fixing minor bugs [PWGCF] Fixing minor bugs Mar 5, 2026
@otonvd otonvd merged commit c25bcdf into AliceO2Group:master Mar 7, 2026
11 of 12 checks passed
Comment on lines +2687 to +2696
const double mass = invariantMass(pr.px, pr.py, pr.pz, MassProton, k.px, k.py, k.pz, MassKaonCharged);

const float pxTot = pr.px + k.px;
const float pyTot = pr.py + k.py;
const float pzTot = pr.pz + k.pz;
const float ptPair = std::sqrt(pxTot * pxTot + pyTot * pyTot);
const float phiPair = phiFromPxPy(pxTot, pyTot);

const double eTot = std::sqrt(mass * mass + static_cast<double>(pxTot) * pxTot + static_cast<double>(pyTot) * pyTot + static_cast<double>(pzTot) * pzTot);
const float yPair = rapidityFromEPz(eTot, pzTot);
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.

Why don't you just use the RecoDecay methods?

scannito pushed a commit to scannito/O2Physics that referenced this pull request Mar 20, 2026
Co-authored-by: Sushanta Tripathy <sushantatripathy@ip13-89.eduroam-employee.wireless.lu.se>
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