Skip to content

Commit defca62

Browse files
scattaruvkucera
andauthored
Update PWGHF/HFC/Tasks/taskCorrelationDsHadrons.cxx
Co-authored-by: Vít Kučera <vit.kucera@cern.ch>
1 parent fa0dc8e commit defca62

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

PWGHF/HFC/Tasks/taskCorrelationDsHadrons.cxx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,7 @@ struct HfTaskCorrelationDsHadrons {
270270
bool isSelectedCandidate(const int ptBinD, const float bdtScorePrompt, const float bdtScoreBkg)
271271
{
272272

273-
if (ptBinD == -1 || bdtScorePrompt < mlOutputPromptMin->at(ptBinD) || bdtScorePrompt > mlOutputPromptMax->at(ptBinD) || bdtScoreBkg > mlOutputBkg->at(ptBinD)) {
274-
return false;
275-
} else {
276-
return true;
277-
}
273+
return (ptBinD != -1 && bdtScorePrompt >= mlOutputPromptMin->at(ptBinD) && bdtScorePrompt <= mlOutputPromptMax->at(ptBinD) && bdtScoreBkg <= mlOutputBkg->at(ptBinD));
278274
}
279275

280276
void processData(DsHadronPairWithMl const& pairEntries,

0 commit comments

Comments
 (0)