Skip to content

Commit b043d4f

Browse files
authored
Update he3HadronFemto.cxx
1 parent 6f74b40 commit b043d4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PWGLF/TableProducer/Nuspex/he3HadronFemto.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ struct he3HadronFemto {
440440
candidate.tpcNClsCrossedRows() < crossedRowsToFindableRatio * candidate.tpcNClsFindable() ||
441441
candidate.tpcChi2NCl() > maxChi2NCl ||
442442
candidate.tpcChi2NCl() < settingCutChi2tpcLow ||
443-
candidate.itsChi2NCl() > settingCutChi2NClITS || candidate.dcaXY() > settingCutDCAxy ||
444-
candidate.dcaZ() > settingCutDCAz) {
443+
candidate.itsChi2NCl() > settingCutChi2NClITS || std::abs(candidate.dcaXY()) > settingCutDCAxy ||
444+
std::abs(candidate.dcaZ()) > settingCutDCAz) {
445445
return false;
446446
}
447447

@@ -622,7 +622,7 @@ struct he3HadronFemto {
622622
return false;
623623
}
624624

625-
if (he3Hadcand.recoPtHad() < settingCutPtMinHad || he3Hadcand.recoPtHad() > settingCutPtMaxHad)
625+
if (std::abs(he3Hadcand.recoPtHad()) < settingCutPtMinHad || std::abs(he3Hadcand.recoPtHad()) > settingCutPtMaxHad)
626626
return false;
627627

628628
he3Hadcand.signHe3 = trackHe3.sign();

0 commit comments

Comments
 (0)