Skip to content

Commit 6ea81cc

Browse files
committed
fixing build errors
1 parent 3d5c4cc commit 6ea81cc

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
@@ -36,10 +36,9 @@
3636
#include <cstdint>
3737
#include <cstdlib>
3838
#include <string>
39-
#include <type_traits>
4039
#include <vector>
4140

42-
#include <math.h>
41+
#include <cmath>
4342

4443
using namespace o2;
4544
using namespace o2::framework;
@@ -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)