Skip to content

Commit ab76bd0

Browse files
committed
dataCreatorCharmResoReduced.cxx: Simplify return condition
1 parent 29f6665 commit ab76bd0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

PWGHF/D2H/TableProducer/dataCreatorCharmResoReduced.cxx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -600,10 +600,7 @@ struct HfDataCreatorCharmResoReduced {
600600
bool isPion = std::abs(track.tpcNSigmaPi()) < cfgSingleTrackCuts.maxNsigmaTpcPi;
601601
bool isKaon = std::abs(track.tpcNSigmaKa()) < cfgSingleTrackCuts.maxNsigmaTpcKa;
602602
bool isProton = std::abs(track.tpcNSigmaPr()) < cfgSingleTrackCuts.maxNsigmaTpcPr;
603-
if (!isPion && !isKaon && !isProton) { // we keep the track if is it compatible with at least one of the PID hypotheses selected
604-
return false;
605-
}
606-
return true;
603+
return (isPion || isKaon || isProton); // we keep the track if is it compatible with at least one of the PID hypotheses selected
607604
}
608605

609606
template <typename PParticles, typename TrIU>

0 commit comments

Comments
 (0)