@@ -417,7 +417,7 @@ struct HfCandidateSigmac0plusplusMc {
417417
418418 using BCsInfo = soa::Join<aod::BCs, aod::Timestamps, aod::BcSels>;
419419 using LambdacMc = soa::Join<aod::HfCand3Prong, aod::HfSelLc, aod::HfCand3ProngMcRec>;
420- using McParticlesLcGenMatch = soa::Join<aod::McParticles, aod::HfCand3ProngMcGen>;
420+ using McParticlesLcGenMatch = soa::Join<aod::McParticles, aod::HfCand3ProngMcGen>; // including response of particle matching to MC from candidate-creator-3-prong
421421 using McCollisionsNoCents = soa::Join<aod::Collisions, aod::EvSels, aod::McCollisionLabels>;
422422
423423 PresliceUnsorted<McCollisionsNoCents> colPerMcCollision = aod::mccollisionlabel::mcCollisionId;
@@ -466,9 +466,9 @@ struct HfCandidateSigmac0plusplusMc {
466466 // / @brief process function for MC matching of Σc0,++ → Λc+(→pK-π+) π- reconstructed candidates and counting of generated ones
467467 // / @param candidatesSigmac reconstructed Σc0,++ candidates
468468 // / @param mcParticles table of generated particles
469- void processMc (aod::McParticles const & mcParticles,
469+ void processMc (McParticlesLcGenMatch const & mcParticles,
470470 aod::TracksWMc const & tracks,
471- LambdacMc const & candsLc, McParticlesLcGenMatch const & mcParticlesLcGenMatch,
471+ LambdacMc const & candsLc,
472472 McCollisionsNoCents const & collInfos,
473473 aod::McCollisions const &,
474474 BCsInfo const &)
@@ -576,7 +576,7 @@ struct HfCandidateSigmac0plusplusMc {
576576 } // / end loop over reconstructed Σc0,++ candidates
577577
578578 // / Match generated Σc0,++ candidates
579- for (const auto & particle : mcParticlesLcGenMatch ) {
579+ for (const auto & particle : mcParticles ) {
580580 flag = 0 ;
581581 origin = 0 ;
582582 std::vector<int > idxBhadMothers{};
@@ -602,7 +602,7 @@ struct HfCandidateSigmac0plusplusMc {
602602 // / → here we check level 1. first, and then levels 2. and 3. are inherited by the Λc+ → pK-π+ MC matching in candidateCreator3Prong.cxx
603603
604604 // / look for Σc0,++(2455)
605- if (RecoDecay::isMatchedMCGen (mcParticlesLcGenMatch , particle, Pdg::kSigmaC0 , std::array{static_cast <int >(Pdg::kLambdaCPlus ), static_cast <int >(kPiMinus )}, true , &sign, 1 )) {
605+ if (RecoDecay::isMatchedMCGen (mcParticles , particle, Pdg::kSigmaC0 , std::array{static_cast <int >(Pdg::kLambdaCPlus ), static_cast <int >(kPiMinus )}, true , &sign, 1 )) {
606606 // generated Σc0(2455)
607607 for (const auto & daughter : particle.daughters_as <McParticlesLcGenMatch>()) {
608608 // look for Λc+ daughter decaying in pK-π+
@@ -615,7 +615,7 @@ struct HfCandidateSigmac0plusplusMc {
615615 break ;
616616 }
617617 }
618- } else if (RecoDecay::isMatchedMCGen (mcParticlesLcGenMatch , particle, Pdg::kSigmaCPlusPlus , std::array{static_cast <int >(Pdg::kLambdaCPlus ), static_cast <int >(kPiPlus )}, true , &sign, 1 )) {
618+ } else if (RecoDecay::isMatchedMCGen (mcParticles , particle, Pdg::kSigmaCPlusPlus , std::array{static_cast <int >(Pdg::kLambdaCPlus ), static_cast <int >(kPiPlus )}, true , &sign, 1 )) {
619619 // generated Σc++(2455)
620620 for (const auto & daughter : particle.daughters_as <McParticlesLcGenMatch>()) {
621621 // look for Λc+ daughter decaying in pK-π+
@@ -632,7 +632,7 @@ struct HfCandidateSigmac0plusplusMc {
632632
633633 // / look for Σc0,++(2520)
634634 if (flag == 0 ) {
635- if (RecoDecay::isMatchedMCGen (mcParticlesLcGenMatch , particle, Pdg::kSigmaCStar0 , std::array{static_cast <int >(Pdg::kLambdaCPlus ), static_cast <int >(kPiMinus )}, true , &sign, 1 )) {
635+ if (RecoDecay::isMatchedMCGen (mcParticles , particle, Pdg::kSigmaCStar0 , std::array{static_cast <int >(Pdg::kLambdaCPlus ), static_cast <int >(kPiMinus )}, true , &sign, 1 )) {
636636 // generated Σc0(2520)
637637 for (const auto & daughter : particle.daughters_as <McParticlesLcGenMatch>()) {
638638 // look for Λc+ daughter decaying in pK-π+
@@ -645,7 +645,7 @@ struct HfCandidateSigmac0plusplusMc {
645645 break ;
646646 }
647647 }
648- } else if (RecoDecay::isMatchedMCGen (mcParticlesLcGenMatch , particle, Pdg::kSigmaCStarPlusPlus , std::array{static_cast <int >(Pdg::kLambdaCPlus ), static_cast <int >(kPiPlus )}, true , &sign, 1 )) {
648+ } else if (RecoDecay::isMatchedMCGen (mcParticles , particle, Pdg::kSigmaCStarPlusPlus , std::array{static_cast <int >(Pdg::kLambdaCPlus ), static_cast <int >(kPiPlus )}, true , &sign, 1 )) {
649649 // generated Σc++(2520)
650650 for (const auto & daughter : particle.daughters_as <McParticlesLcGenMatch>()) {
651651 // look for Λc+ daughter decaying in pK-π+
@@ -663,7 +663,7 @@ struct HfCandidateSigmac0plusplusMc {
663663
664664 // / check the origin (prompt vs. non-prompt)
665665 if (flag != 0 ) {
666- origin = RecoDecay::getCharmHadronOrigin (mcParticlesLcGenMatch , particle, false , &idxBhadMothers);
666+ origin = RecoDecay::getCharmHadronOrigin (mcParticles , particle, false , &idxBhadMothers);
667667 }
668668 // / fill the table with results of generation level MC matching
669669 if (origin == RecoDecay::OriginType::NonPrompt) {
0 commit comments