@@ -146,6 +146,8 @@ struct LambdaJetpolarization {
146146 Configurable<int > pdgkZeroShort{" pdgkZeroShort" , 310 , " pdgkZeroShort" };
147147 Configurable<int > pdgProton{" pdgProton" , 2212 , " pdgProton" };
148148 Configurable<int > pdgPion{" pdgPion" , 211 , " pdgPion" };
149+ Configurable<int > pdgXiMinus{" pdgXiMinus" , 3312 , " pdgXiMinus" };
150+ Configurable<int > pdgXiZero{" pdgXiZero" , 3322 , " pdgXiZero" };
149151
150152 void init (InitContext const &)
151153 {
@@ -2348,7 +2350,7 @@ struct LambdaJetpolarization {
23482350
23492351 if (std::abs (v0mcparticle.pdgCode ()) == pdgLmbda && v0mcparticle.has_mothers ()) {
23502352 for (const auto & mcparticleMother0 : v0mcparticle.mothers_as <aod::McParticles>()) {
2351- if (std::abs (mcparticleMother0.pdgCode ()) == 3312 || std::abs (mcparticleMother0.pdgCode ()) == 3322 ) {
2353+ if (std::abs (mcparticleMother0.pdgCode ()) == pdgXiMinus || std::abs (mcparticleMother0.pdgCode ()) == pdgXiZero ) {
23522354 ptMotherMC = mcparticleMother0.pt ();
23532355 pdgMother = mcparticleMother0.pdgCode ();
23542356 }
@@ -2371,10 +2373,10 @@ struct LambdaJetpolarization {
23712373 }
23722374
23732375 } else if (std::abs (v0.mLambda () - o2::constants::physics::MassLambda0) < 0.01 ) {
2374- if (pdgMother == 3312 ) {
2376+ if (pdgMother == pdgXiMinus ) {
23752377 registryData.fill (HIST (" MC/hFDVsPtLambdaVsMotherPt_DoubleCharged_MC" ), v0.pt (), ptMotherMC, mcCollision.centFT0M ());
23762378 }
2377- if (pdgMother == 3312 || pdgMother == 3322 ) {
2379+ if (pdgMother == pdgXiMinus || pdgMother == pdgXiZero ) {
23782380 registryData.fill (HIST (" MC/hFDVsPtLambdaVsMotherPt_MCRatio_MC" ), v0.pt (), ptMotherMC, mcCollision.centFT0M ());
23792381 }
23802382 }
@@ -2426,7 +2428,7 @@ struct LambdaJetpolarization {
24262428 float pdgMother = 0 .;
24272429 if (std::abs (v0mcparticle.pdgCode ()) == pdgLmbda && v0mcparticle.has_mothers ()) {
24282430 for (const auto & mcparticleMother0 : v0mcparticle.mothers_as <aod::McParticles>()) {
2429- if (std::abs (mcparticleMother0.pdgCode ()) == 3312 || std::abs (mcparticleMother0.pdgCode ()) == 3322 ) {
2431+ if (std::abs (mcparticleMother0.pdgCode ()) == pdgXiMinus || std::abs (mcparticleMother0.pdgCode ()) == pdgXiZero ) {
24302432 // ptMotherMC = mcparticleMother0.pt();
24312433 pdgMother = mcparticleMother0.pdgCode ();
24322434 }
@@ -2489,10 +2491,10 @@ struct LambdaJetpolarization {
24892491 }
24902492
24912493 } else if (std::abs (v0.mLambda () - o2::constants::physics::MassLambda0) < 0.01 ) {
2492- if (pdgMother == 3312 ) {
2494+ if (pdgMother == pdgXiMinus ) {
24932495 continue ;
24942496 }
2495- if (pdgMother == 3312 || pdgMother == 3322 ) {
2497+ if (pdgMother == pdgXiMinus || pdgMother == pdgXiZero ) {
24962498 continue ;
24972499 }
24982500 }
0 commit comments