Skip to content

Commit 0db73cd

Browse files
committed
Simplify condition
1 parent 6516bdd commit 0db73cd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

PWGHF/TableProducer/candidateCreatorBs.cxx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -468,11 +468,9 @@ struct HfCandidateCreatorBsExpressions {
468468
int index3Mother = RecoDecay::getMother(mcParticles, particleProng3, bHadronMotherHypo, true);
469469

470470
// look for common b-hadron ancestor
471-
if (index0Mother > -1 && index1Mother > -1 && index2Mother > -1 && index3Mother > -1) {
472-
if (index0Mother == index1Mother && index1Mother == index2Mother && index2Mother == index3Mother) {
473-
flagChannelMain = hf_cand_bs::DecayTypeMc::PartlyRecoDecay; // FIXME
474-
break;
475-
}
471+
if (index0Mother > -1 && index0Mother == index1Mother && index1Mother == index2Mother && index2Mother == index3Mother) {
472+
flagChannelMain = hf_cand_bs::DecayTypeMc::PartlyRecoDecay; // FIXME
473+
break;
476474
}
477475
}
478476
}

0 commit comments

Comments
 (0)