Skip to content

Commit 65aafe3

Browse files
authored
[PWGCF] Update lambdaR2Correlation.cxx
1 parent df44df4 commit 65aafe3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PWGCF/TwoParticleCorrelations/Tasks/lambdaR2Correlation.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -764,11 +764,11 @@ struct LambdaTableProducer {
764764
// get information about secondary lambdas
765765
if (cRecSecondaryLambda) {
766766
auto lambdaMothers = mcpart.template mothers_as<aod::McParticles>();
767-
if (std::abs(lambdaMothers[0].pdgCode()) == 3112 || std::abs(lambdaMothers[0].pdgCode()) == 3212 || std::abs(lambdaMothers[0].pdgCode()) == 3222) {
767+
if (std::abs(lambdaMothers[0].pdgCode()) == kSigmaMinus || std::abs(lambdaMothers[0].pdgCode()) == kSigma0 || std::abs(lambdaMothers[0].pdgCode()) == kSigmaPlus) {
768768
histos.fill(HIST("Tracks/h2f_lambda_from_sigma"), mcpart.pdgCode(), mcpart.pt());
769-
} else if (std::abs(lambdaMothers[0].pdgCode()) == 3312 || std::abs(lambdaMothers[0].pdgCode()) == 3322) {
769+
} else if (std::abs(lambdaMothers[0].pdgCode()) == kXiMinus || std::abs(lambdaMothers[0].pdgCode()) == kXi0) {
770770
histos.fill(HIST("Tracks/h2f_lambda_from_cascade"), mcpart.pdgCode(), mcpart.pt());
771-
} else if (std::abs(lambdaMothers[0].pdgCode()) == 3334) {
771+
} else if (std::abs(lambdaMothers[0].pdgCode()) == kOmegaMinus) {
772772
histos.fill(HIST("Tracks/h2f_lambda_from_omega"), mcpart.pdgCode(), mcpart.pt());
773773
}
774774
}

0 commit comments

Comments
 (0)