@@ -979,7 +979,7 @@ struct HfCandidateCreator3ProngExpressions {
979979 }
980980 }
981981 }
982- if (!RecoDecay::isMatchedMCGen (mcParticles, motherParticle, pdg, finalStateParts3ProngAll, false , &sign, depth)) {
982+ if (!RecoDecay::isMatchedMCGen (mcParticles, motherParticle, pdg, finalStateParts3ProngAll, true , &sign, depth)) {
983983 indexRec = -1 ; // Reset indexRec if the generated decay does not match the reconstructed one is not matched
984984 }
985985 } else if (finalState.size () == 5 ) { // Check if the final state has 5 particles
@@ -1015,7 +1015,6 @@ struct HfCandidateCreator3ProngExpressions {
10151015
10161016 // Flag the resonant decay channel
10171017 int resoMaxDepth = 1 ;
1018- // if (std::abs(pdg) == Pdg::kDStar) {
10191018 if (std::abs (mcParticles.rawIteratorAt (indexRec).pdgCode ()) == Pdg::kDStar ) {
10201019 resoMaxDepth = 2 ; // Flag D0 resonances
10211020 }
@@ -1167,23 +1166,17 @@ struct HfCandidateCreator3ProngExpressions {
11671166
11681167 // Check whether the particle is non-prompt (from a b quark).
11691168 if (flag != 0 ) {
1170- // LOG(info) << "Setting origin";
11711169 auto particle = mcParticles.rawIteratorAt (indexRec);
11721170 origin = RecoDecay::getCharmHadronOrigin (mcParticles, particle, false , &idxBhadMothers);
11731171 }
11741172 if (origin == RecoDecay::OriginType::NonPrompt) {
11751173 auto bHadMother = mcParticles.rawIteratorAt (idxBhadMothers[0 ]);
1176- // LOG(info) << "[MCREC] Filling with flag: " << static_cast<int>(flag) << ", origin: " << static_cast<int>(origin) << ", channel: " << static_cast<int>(channel);
11771174 rowMcMatchRec (flag, origin, swapping, channel, bHadMother.pt (), bHadMother.pdgCode (), nKinkedTracks, nInteractionsWithMaterial);
11781175 } else {
1179- // LOG(info) << "[MCREC] Filling with flag: " << static_cast<int>(flag) << ", origin: " << static_cast<int>(origin) << ", channel: " << static_cast<int>(channel);
11801176 rowMcMatchRec (flag, origin, swapping, channel, -1 .f , 0 , nKinkedTracks, nInteractionsWithMaterial);
11811177 }
11821178 }
11831179
1184- // LOG(info) << "BYE REC MATCHING, HELLO GEN MATCHING";
1185- // LOG(info) << "Filling MC match gen for 3 prong candidates";
1186- // LOG(info) << "Number of MC collisions: " << mcCollisions.size();
11871180 for (const auto & mcCollision : mcCollisions) {
11881181
11891182 // Slice the particles table to get the particles for the current MC collision
0 commit comments