@@ -2158,7 +2158,7 @@ class BuilderModule
21582158 if (bachelorParticle.pdgCode () == PDG_t::kPiPlus ) { // pi+, look for antiproton in negative prong
21592159 if (negTrack.has_mcParticle ()) {
21602160 auto baryonParticle = negTrack.template mcParticle_as <aod::McParticles>();
2161- if (baryonParticle.has_mothers () && bachelorParticle.has_mothers () && baryonParticle.pdgCode () == PDG_t::kProtonBar ) {
2161+ if (baryonParticle.has_mothers () && bachelorParticle.has_mothers () && baryonParticle.pdgCode () == PDG_t::Bar ) {
21622162 for (const auto & baryonMother : baryonParticle.template mothers_as <aod::McParticles>()) {
21632163 for (const auto & pionMother : bachelorParticle.template mothers_as <aod::McParticles>()) {
21642164 if (baryonMother.globalIndex () == pionMother.globalIndex () && baryonMother.pdgCode () == PDG_t::kLambda0Bar ) {
@@ -2172,7 +2172,7 @@ class BuilderModule
21722172 if (bachelorParticle.pdgCode () == PDG_t::kPiMinus ) { // pi-, look for proton in positive prong
21732173 if (posTrack.has_mcParticle ()) {
21742174 auto baryonParticle = posTrack.template mcParticle_as <aod::McParticles>();
2175- if (baryonParticle.has_mothers () && bachelorParticle.has_mothers () && baryonParticle.pdgCode () == PDG_t::kProton ) {
2175+ if (baryonParticle.has_mothers () && bachelorParticle.has_mothers () && baryonParticle.pdgCode () == PDG_t::) {
21762176 for (const auto & baryonMother : baryonParticle.template mothers_as <aod::McParticles>()) {
21772177 for (const auto & pionMother : bachelorParticle.template mothers_as <aod::McParticles>()) {
21782178 if (baryonMother.globalIndex () == pionMother.globalIndex () && baryonMother.pdgCode () == PDG_t::kLambda0 ) {
@@ -2256,7 +2256,7 @@ class BuilderModule
22562256 thisCascInfo.xyz [2 ] = dau.vz ();
22572257 thisCascInfo.mcParticleBachelor = dau.globalIndex ();
22582258 }
2259- if (std::abs (dau.pdgCode ()) == PDG_t::kProton ) {
2259+ if (std::abs (dau.pdgCode ()) == PDG_t::kLambda0 ) {
22602260 thisCascInfo.pdgCodeV0 = dau.pdgCode ();
22612261
22622262 for (const auto & v0Dau : dau.template daughters_as <aod::McParticles>()) {
0 commit comments