Skip to content

Commit 3d0fa61

Browse files
committed
Implement Mattia comment
1 parent b9120ff commit 3d0fa61

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

PWGHF/TableProducer/candidateCreator3Prong.cxx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

PWGHF/Utils/utilsMcGen.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -312,17 +312,12 @@ void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
312312
}
313313

314314
// Check whether the particle is non-prompt (from a b quark).
315-
// LOG(info) << "[Gen] Flag: " << static_cast<int>(flag);
316315
if (flag != 0) {
317-
// LOG(info) << "[Gen] Setting origin gen";
318316
origin = RecoDecay::getCharmHadronOrigin(mcParticles, particle, false, &idxBhadMothers);
319317
}
320318
if (origin == RecoDecay::OriginType::NonPrompt) {
321-
// LOG(info) << "Origin is non-prompt";
322-
// LOG(info) << "[MCGEN] flag " << static_cast<int>(flag) << " origin " << static_cast<int>(origin) << " channel " << static_cast<int>(channel);
323319
rowMcMatchGen(flag, origin, channel, idxBhadMothers[0]);
324320
} else {
325-
// LOG(info) << "[MCGEN] flag " << static_cast<int>(flag) << " origin " << static_cast<int>(origin) << " channel " << static_cast<int>(channel);
326321
rowMcMatchGen(flag, origin, channel, -1);
327322
}
328323
}

0 commit comments

Comments
 (0)