Skip to content

Commit b3920fd

Browse files
authored
Fix matching bug. (#5884)
1 parent 4e25cc3 commit b3920fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Analysis/Tasks/PWGHF/HFCandidateCreator3Prong.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ struct HFCandidateCreator3ProngMC {
210210
// Ξc± → p± K∓ π±
211211
if (flag == 0) {
212212
//Printf("Checking Ξc± → p± K∓ π±");
213-
if (RecoDecay::getMatchedMCRec(particlesMC, std::move(arrayDaughters), 4232, array{+kProton, -kKPlus, +kPiPlus}, true, &sign) > -1) {
213+
indexRec = RecoDecay::getMatchedMCRec(particlesMC, std::move(arrayDaughters), 4232, array{+kProton, -kKPlus, +kPiPlus}, true, &sign);
214+
if (indexRec > -1) {
214215
flag = sign * (1 << XicToPKPi);
215216
}
216217
}

0 commit comments

Comments
 (0)