Skip to content

Commit 2791ff2

Browse files
jikim1290junleekim
andauthored
[PWGLF] daughter momentum from v0 table (#8939)
Co-authored-by: junleekim <junleekim@maccbookjunlee2024.dyndns.cern.ch>
1 parent f488220 commit 2791ff2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PWGLF/Tasks/Strangeness/lambdapolarization.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -524,12 +524,12 @@ struct lambdapolarization {
524524
continue;
525525

526526
if (LambdaTag) {
527-
ProtonVec = ROOT::Math::PxPyPzMVector(postrack.px(), postrack.py(), postrack.pz(), massPr);
528-
PionVec = ROOT::Math::PxPyPzMVector(negtrack.px(), negtrack.py(), negtrack.pz(), massPi);
527+
ProtonVec = ROOT::Math::PxPyPzMVector(v0.pxpos(), v0.pypos(), v0.pzpos(), massPr);
528+
PionVec = ROOT::Math::PxPyPzMVector(v0.pxneg(), v0.pyneg(), v0.pzneg(), massPi);
529529
}
530530
if (aLambdaTag) {
531-
ProtonVec = ROOT::Math::PxPyPzMVector(negtrack.px(), negtrack.py(), negtrack.pz(), massPr);
532-
PionVec = ROOT::Math::PxPyPzMVector(postrack.px(), postrack.py(), postrack.pz(), massPi);
531+
ProtonVec = ROOT::Math::PxPyPzMVector(v0.pxneg(), v0.pyneg(), v0.pzneg(), massPr);
532+
PionVec = ROOT::Math::PxPyPzMVector(v0.pxpos(), v0.pypos(), v0.pzpos(), massPi);
533533
}
534534
LambdaVec = ProtonVec + PionVec;
535535
LambdaVec.SetM(massLambda);

0 commit comments

Comments
 (0)