Skip to content

Commit ceca854

Browse files
committed
minor
1 parent 8173258 commit ceca854

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PWGHF/D2H/Core/DataCreationCharmReso.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -743,9 +743,9 @@ bool isTrackSelected(const Tr& track, const std::array<int, 3>& dDaughtersIds, c
743743
bool isProtonTOF = hasTOF ? std::abs(track.tofNSigmaPr()) < cfgSingleTrackCuts.maxNsigmaTofPr.value : false;
744744

745745
// --- Combined logic ---
746-
bool isPion = isPionTPC && (!cfgSingleTrackCuts.forceTOF || isPionTOF);
747-
bool isKaon = isKaonTPC && (!cfgSingleTrackCuts.forceTOF || isKaonTOF);
748-
bool isProton = isProtonTPC && (!cfgSingleTrackCuts.forceTOF || isProtonTOF);
746+
bool isPion = isPionTPC && (!cfgSingleTrackCuts.forceTOF.value || isPionTOF);
747+
bool isKaon = isKaonTPC && (!cfgSingleTrackCuts.forceTOF.value || isKaonTOF);
748+
bool isProton = isProtonTPC && (!cfgSingleTrackCuts.forceTOF.value || isProtonTOF);
749749

750750
return (isPion || isKaon || isProton); // we keep the track if is it compatible with at least one of the PID hypotheses selected
751751
}

0 commit comments

Comments
 (0)