Skip to content

Commit cd8d769

Browse files
prottayCMTProttay Das
andauthored
[PWGLF] few more QA and a small check (#12659)
Co-authored-by: Prottay Das <prottay@alipap1.cern.ch>
1 parent 91bcf5f commit cd8d769

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

PWGLF/Tasks/Strangeness/lambdapolsp.cxx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1470,6 +1470,15 @@ struct lambdapolsp {
14701470
}
14711471
}
14721472
} else {
1473+
1474+
int binxwgt;
1475+
double wgtvalue;
1476+
if (useyldwgt) {
1477+
binxwgt = hwgtAL->GetXaxis()->FindBin(v0.pt());
1478+
wgtvalue = hwgtAL->GetBinContent(binxwgt);
1479+
} else {
1480+
wgtvalue = 1.0;
1481+
}
14731482
if (analyzeLambda && LambdaTag) {
14741483
Lambda = Proton + AntiPion;
14751484
tagb = 0;
@@ -1488,7 +1497,7 @@ struct lambdapolsp {
14881497
int biny = accprofileAL->GetYaxis()->FindBin(v0.pt());
14891498
double acvalue = accprofileAL->GetBinContent(binx, biny);
14901499
// double acvalue = 1.0;
1491-
fillHistograms(taga, tagb, AntiLambda, AntiProton, psiZDCC, psiZDCA, psiZDC, centrality, v0.mAntiLambda(), v0.pt(), v0.eta(), acvalue, 1.0);
1500+
fillHistograms(taga, tagb, AntiLambda, AntiProton, psiZDCC, psiZDCA, psiZDC, centrality, v0.mAntiLambda(), v0.pt(), v0.eta(), acvalue, wgtvalue);
14921501
}
14931502
}
14941503
}

0 commit comments

Comments
 (0)