Skip to content

Commit 395e5c9

Browse files
authored
Fixing error in O2 build
1 parent 741d31d commit 395e5c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PWGCF/FemtoUniverse/Core/FemtoUniverseParticleHisto.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,13 +375,13 @@ class FemtoUniverseParticleHisto
375375
} else {
376376
PDGbin = 3;
377377
}
378-
if (std::abs(pdgcode == 211)) {
378+
if (std::abs(pdgcode) == 211) {
379379
mHistogramRegistry->fill(histFolder + HIST("_MC/hMisidentification"),
380380
PDGbin, 0, part.pt());
381-
} else if (std::abs(pdgcode == 321)) {
381+
} else if (std::abs(pdgcode) == 321) {
382382
mHistogramRegistry->fill(histFolder + HIST("_MC/hMisidentification"),
383383
PDGbin, 1, part.pt());
384-
} else if (std::abs(pdgcode == 2212)) {
384+
} else if (std::abs(pdgcode) == 2212) {
385385
mHistogramRegistry->fill(histFolder + HIST("_MC/hMisidentification"),
386386
PDGbin, 2, part.pt());
387387
} else {

0 commit comments

Comments
 (0)