Skip to content

Commit 27e3828

Browse files
committed
Fix J/Psi mass selection
1 parent 8a66b1b commit 27e3828

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PWGHF/Core/HfHelper.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ struct HfHelper {
937937
}
938938

939939
// J/Psi mass
940-
if (std::abs(candJpsi.m() - o2::constants::physics::MassJPsi) < cuts->get(binPt, "DeltaM J/Psi")) {
940+
if (std::abs(candJpsi.m() - o2::constants::physics::MassJPsi) > cuts->get(binPt, "DeltaM J/Psi")) {
941941
return false;
942942
}
943943

@@ -1127,12 +1127,12 @@ struct HfHelper {
11271127
}
11281128

11291129
// phi mass
1130-
if (std::abs(mCandPhi - o2::constants::physics::MassPhi) < cuts->get(binPt, "DeltaM phi")) {
1130+
if (std::abs(mCandPhi - o2::constants::physics::MassPhi) > cuts->get(binPt, "DeltaM phi")) {
11311131
return false;
11321132
}
11331133

11341134
// J/Psi mass
1135-
if (std::abs(candJpsi.m() - o2::constants::physics::MassJPsi) < cuts->get(binPt, "DeltaM J/Psi")) {
1135+
if (std::abs(candJpsi.m() - o2::constants::physics::MassJPsi) > cuts->get(binPt, "DeltaM J/Psi")) {
11361136
return false;
11371137
}
11381138

0 commit comments

Comments
 (0)