Skip to content

Commit e5903f7

Browse files
authored
[PWGJE] Fixing O2 build errors in jetCorrelationD0 (#17342)
1 parent 25079b3 commit e5903f7

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

PWGJE/Tasks/jetCorrelationD0.cxx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,13 @@
3333

3434
#include <Rtypes.h>
3535

36+
#include <cmath>
3637
#include <cstdint>
3738
#include <cstdlib>
3839
#include <string>
3940
#include <type_traits>
4041
#include <vector>
4142

42-
#include <math.h>
43-
4443
using namespace o2;
4544
using namespace o2::framework;
4645
using namespace o2::framework::expressions;
@@ -367,9 +366,9 @@ struct JetCorrelationD0 {
367366
} else if (d0DecayChannel < 0) { // matched to a D0bar on truth level (any channel)
368367
matchedFrom = -1;
369368
}
370-
if (d0Candidate.candidateSelFlag() & BIT(0)) { // CandidateSelFlag == BIT(0) -> selected as D0
369+
if ((d0Candidate.candidateSelFlag() & BIT(0)) != 0) { // CandidateSelFlag == BIT(0) -> selected as D0
371370
selectedAs = 1;
372-
} else if (d0Candidate.candidateSelFlag() & BIT(1)) { // CandidateSelFlag == BIT(1) -> selected as D0bar
371+
} else if ((d0Candidate.candidateSelFlag() & BIT(1)) != 0) { // CandidateSelFlag == BIT(1) -> selected as D0bar
373372
selectedAs = -1;
374373
}
375374
if ((std::abs(d0DecayChannel) == kD0ToKPi) && (matchedFrom != 0) && (selectedAs == matchedFrom)) {

0 commit comments

Comments
 (0)