Skip to content

Commit 41a6ff6

Browse files
committed
RecoDecay: fix getParticleOrigin when searchUpToQuark is false
1 parent c200300 commit 41a6ff6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Common/Core/RecoDecay.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,16 +1157,16 @@ struct RecoDecay {
11571157
auto mother = particlesMC.rawIteratorAt(particleMother.mothersIds().front() - particlesMC.offset());
11581158
auto pdgParticleIMother = std::abs(mother.pdgCode()); // PDG code of the mother
11591159
if (pdgParticleIMother <= PdgQuarkMax || (pdgParticleIMother >= PdgBosonMin && pdgParticleIMother <= PdgBosonMax)) {
1160-
// auto PDGPaticle = std::abs(particleMother.pdgCode());
1160+
auto pdgCurrentParticle = std::abs(particleMother.pdgCode()); // PDG code of the particle
11611161
if (
1162-
(pdgParticle / PdgDivisorMeson == PDG_t::kBottom || // b mesons
1163-
pdgParticle / PdgDivisorBaryon == PDG_t::kBottom) // b baryons
1162+
(pdgCurrentParticle / PdgDivisorMeson == PDG_t::kBottom || // b mesons
1163+
pdgCurrentParticle / PdgDivisorBaryon == PDG_t::kBottom) // b baryons
11641164
) {
11651165
return OriginType::NonPrompt; // beauty
11661166
}
11671167
if (
1168-
(pdgParticle / PdgDivisorMeson == PDG_t::kCharm || // c mesons
1169-
pdgParticle / PdgDivisorBaryon == PDG_t::kCharm) // c baryons
1168+
(pdgCurrentParticle / PdgDivisorMeson == PDG_t::kCharm || // c mesons
1169+
pdgCurrentParticle / PdgDivisorBaryon == PDG_t::kCharm) // c baryons
11701170
) {
11711171
return OriginType::Prompt; // charm
11721172
}

0 commit comments

Comments
 (0)