Skip to content

Commit d771766

Browse files
authored
update pdg codes
1 parent 7d91463 commit d771766

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

PWGLF/Tasks/Strangeness/strangenessInJets.cxx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2018,7 +2018,7 @@ struct StrangenessInJets {
20182018

20192019
if (std::abs(v0mcparticle.pdgCode()) == kLambda0 && v0mcparticle.has_mothers()) {
20202020
for (auto& mcparticleMother0 : v0mcparticle.mothers_as<aod::McParticles>()) {
2021-
if (std::abs(mcparticleMother0.pdgCode()) == 3312 || std::abs(mcparticleMother0.pdgCode()) == 3322) {
2021+
if (std::abs(mcparticleMother0.pdgCode()) == kXiMinus || std::abs(mcparticleMother0.pdgCode()) == kXi0) {
20222022
ptMotherMC = mcparticleMother0.pt();
20232023
pdgMother = mcparticleMother0.pdgCode();
20242024
}
@@ -2041,19 +2041,19 @@ struct StrangenessInJets {
20412041
if (passedLambdaSelection(v0, pos, neg) && motherPos.pdgCode() == kLambda0 && isPhysPrim) {
20422042
if (position.isInJet()) {
20432043
registryMC.fill(HIST("Lambda_reconstructed_jet"), multiplicity, v0.pt());
2044-
if (pdgMother == 3312) {
2044+
if (pdgMother == kXiMinus) {
20452045
registryMC.fill(HIST("hFDVsPtLambdaVsMotherPt_DoubleCharged_jet"), v0mcparticle.pt(), ptMotherMC);
20462046
}
2047-
if (pdgMother == 3312 || pdgMother == 3322) {
2047+
if (pdgMother == kXiMinus || pdgMother == kXi0) {
20482048
registryMC.fill(HIST("hFDVsPtLambdaVsMotherPt_MCRatio_jet"), v0mcparticle.pt(), ptMotherMC);
20492049
}
20502050
}
20512051
if (position.isInUE1() || position.isInUE2()) {
20522052
registryMC.fill(HIST("Lambda_reconstructed_ue"), multiplicity, v0.pt());
2053-
if (pdgMother == 3312) {
2053+
if (pdgMother == kXiMinus) {
20542054
registryMC.fill(HIST("hFDVsPtLambdaVsMotherPt_DoubleCharged_ue"), v0mcparticle.pt(), ptMotherMC);
20552055
}
2056-
if (pdgMother == 3312 || pdgMother == 3322) {
2056+
if (pdgMother == kXiMinus || pdgMother == kXi0) {
20572057
registryMC.fill(HIST("hFDVsPtLambdaVsMotherPt_MCRatio_ue"), v0mcparticle.pt(), ptMotherMC);
20582058
}
20592059
}
@@ -2062,19 +2062,19 @@ struct StrangenessInJets {
20622062
if (passedAntiLambdaSelection(v0, pos, neg) && motherPos.pdgCode() == kLambda0Bar && isPhysPrim) {
20632063
if (position.isInJet()) {
20642064
registryMC.fill(HIST("AntiLambda_reconstructed_jet"), multiplicity, v0.pt());
2065-
if (pdgMother == -3312) {
2065+
if (pdgMother == kXiPlusBar) {
20662066
registryMC.fill(HIST("hFDVsPtAntiLambdaVsMotherPt_DoubleCharged_jet"), v0mcparticle.pt(), ptMotherMC);
20672067
}
2068-
if (pdgMother == -3312 || pdgMother == -3322) {
2068+
if (pdgMother == kXiPlusBar || pdgMother == -kXi0) {
20692069
registryMC.fill(HIST("hFDVsPtAntiLambdaVsMotherPt_MCRatio_jet"), v0mcparticle.pt(), ptMotherMC);
20702070
}
20712071
}
20722072
if (position.isInUE1() || position.isInUE2()) {
20732073
registryMC.fill(HIST("AntiLambda_reconstructed_ue"), multiplicity, v0.pt());
2074-
if (pdgMother == -3312) {
2074+
if (pdgMother == kXiPlusBar) {
20752075
registryMC.fill(HIST("hFDVsPtAntiLambdaVsMotherPt_DoubleCharged_ue"), v0mcparticle.pt(), ptMotherMC);
20762076
}
2077-
if (pdgMother == -3312 || pdgMother == -3322) {
2077+
if (pdgMother == kXiPlusBar || pdgMother == -kXi0) {
20782078
registryMC.fill(HIST("hFDVsPtAntiLambdaVsMotherPt_MCRatio_ue"), v0mcparticle.pt(), ptMotherMC);
20792079
}
20802080
}

0 commit comments

Comments
 (0)