From 663af9af2d4bd156473b291107496f13d84e4bc9 Mon Sep 17 00:00:00 2001 From: Subhadeep Roy Date: Thu, 27 Aug 2026 13:37:42 +0530 Subject: [PATCH] lambdaSpinPolarization.cxx: Refactor track momentum retrieval for Lambda and AntiLambda The track momentum retrieved from the lambda decay vertex --- .../Tasks/lambdaSpinPolarization.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/PWGCF/TwoParticleCorrelations/Tasks/lambdaSpinPolarization.cxx b/PWGCF/TwoParticleCorrelations/Tasks/lambdaSpinPolarization.cxx index 91fc6b6ec3a..f5d26c6fbaa 100644 --- a/PWGCF/TwoParticleCorrelations/Tasks/lambdaSpinPolarization.cxx +++ b/PWGCF/TwoParticleCorrelations/Tasks/lambdaSpinPolarization.cxx @@ -1180,17 +1180,17 @@ struct LambdaTableProducer { : getCorrectionFactors(v0); if (v0Type == kLambda) { - prPx = v0.template posTrack_as().px(); - prPy = v0.template posTrack_as().py(); - prPz = v0.template posTrack_as().pz(); + prPx = v0.pxpos(); + prPy = v0.pypos(); + prPz = v0.pzpos(); histos.fill(HIST("Tracks/h1f_lambda_pt_vs_invm"), mass, v0.pt()); fillLambdaQAHistos(collision, v0, tracks); fillKinematicHists(v0.pt(), v0.eta(), v0.yLambda(), v0.phi()); } else { - prPx = v0.template negTrack_as().px(); - prPy = v0.template negTrack_as().py(); - prPz = v0.template negTrack_as().pz(); + prPx = v0.pxneg(); + prPy = v0.pyneg(); + prPz = v0.pzneg(); histos.fill(HIST("Tracks/h1f_antilambda_pt_vs_invm"), mass, v0.pt()); fillLambdaQAHistos(collision, v0, tracks); fillKinematicHists(v0.pt(), v0.eta(), v0.yLambda(),