Skip to content

[PWGLF] Add new process function for mixing#15245

Draft
skundu692 wants to merge 7 commits intoAliceO2Group:masterfrom
skundu692:spincorrmc3
Draft

[PWGLF] Add new process function for mixing#15245
skundu692 wants to merge 7 commits intoAliceO2Group:masterfrom
skundu692:spincorrmc3

Conversation

@skundu692
Copy link
Collaborator

No description provided.

@github-actions github-actions bot added the pwglf label Mar 3, 2026
@github-actions github-actions bot changed the title Add new process function for mixing [PWGLF] Add new process function for mixing Mar 3, 2026
static inline float phi0To2Pi(float phi)
{
// harmonic=1, min=0 => [0, 2pi)
return RecoDecay::constrainAngle(phi, 0.0f, 1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

harmonic is 1 by default.

static inline float deltaPhiMinusPiToPi(float phiA, float phiB)
{
// returns in [-pi, pi)
const float d = phi0To2Pi(phiA) - phi0To2Pi(phiB);
Copy link
Collaborator

Choose a reason for hiding this comment

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

The phi0To2Pi calls are useless.

{
// returns in [-pi, pi)
const float d = phi0To2Pi(phiA) - phi0To2Pi(phiB);
return RecoDecay::constrainAngle(d, -TMath::Pi(), 1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Take Pi from O2, not from ROOT.

const float dPtSE = std::abs(static_cast<float>(l1SE.Pt() - l2SE.Pt()));
const float dEtaSE = std::abs(static_cast<float>(l1SE.Eta() - l2SE.Eta()));
const float dPhiSE = std::abs(RecoDecay::constrainAngle(
RecoDecay::constrainAngle(static_cast<float>(l1SE.Phi()), 0.f, 1) -
Copy link
Collaborator

Choose a reason for hiding this comment

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

Providing default values is useless.

@skundu692 skundu692 enabled auto-merge (squash) March 3, 2026 21:02
Copy link
Collaborator

@alibuild alibuild left a comment

Choose a reason for hiding this comment

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

Auto-approving on behalf of @skundu692.

@alibuild
Copy link
Collaborator

alibuild commented Mar 4, 2026

Error while checking build/O2Physics/o2 for 4cfeb6a at 2026-03-04 02:43:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/15245-slc9_x86-64/0/PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx:1183:31: error: 'phiBins' was not declared in this scope; did you mean 'phiB'?
/sw/SOURCES/O2Physics/15245-slc9_x86-64/0/PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx:1184:26: error: no match for call to '(lambdaspincorrderived::processMEV4(const EventCandidates&, const AllTrackCandidates&)::<lambda(int)>) (const int&, const int&, int&)'
/sw/SOURCES/O2Physics/15245-slc9_x86-64/0/PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx:1185:19: error: 'maxKeep' was not declared in this scope
/sw/SOURCES/O2Physics/15245-slc9_x86-64/0/PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx:1189:17: error: 'maxKeep' was not declared in this scope
/sw/SOURCES/O2Physics/15245-slc9_x86-64/0/PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx:1193:15: error: 'maxKeep' was not declared in this scope
ninja: build stopped: subcommand failed.

Full log here.

@skundu692 skundu692 disabled auto-merge March 4, 2026 05:38
@vkucera vkucera marked this pull request as draft March 4, 2026 09:02
@vkucera
Copy link
Collaborator

vkucera commented Mar 4, 2026

@skundu692 Please tests your changes before you make a PR.

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