Skip to content

Commit 0e514c1

Browse files
committed
Update IsCoordinateInvalid
1 parent 9838179 commit 0e514c1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎PWGDQ/Core/DQConstants.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ inline constexpr int TPCCalibTypeEnd = 2;
4444
inline constexpr int InvalidDCA = 999;
4545

4646
// Checks
47-
inline constexpr auto IsCoordinateValid = [](float value) constexpr -> bool {
48-
return value >= 0.f;
47+
inline constexpr auto IsCoordinateInvalid = [](float value) constexpr -> bool {
48+
return value < 0.f;
4949
};
5050

5151
inline constexpr auto IsDCAInvalid = [](float value) constexpr -> bool {

‎PWGDQ/Core/VarManager.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,7 @@ class VarManager : public TObject
13531353

13541354
static void GetFwdShiftForY(float y, float& xShift, float& yShift, float& zShift)
13551355
{
1356-
if (fgUseTopBottomShift && o2::dqconstants::IsCoordinateValid(y)) {
1356+
if (fgUseTopBottomShift && o2::dqconstants::IsCoordinateInvalid(y)) {
13571357
xShift = fgxShiftFwdBottom;
13581358
yShift = fgyShiftFwdBottom;
13591359
zShift = fgzShiftFwdBottom;

0 commit comments

Comments
 (0)