Skip to content

Commit 0b51095

Browse files
[PWGCF] Implementing Victor comments
1 parent f46050f commit 0b51095

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGCF/Tasks/correlations.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ struct CorrelationTask {
484484
if (cfgDecayParticleMask != 0 && (cfgDecayParticleMask & (1u << static_cast<uint32_t>(track1.decay()))) == 0u) {
485485
continue; // skip particles that do not match the decay mask
486486
}
487-
if (cfgV0RapidityMax > 0 && abs(getV0Rapidity(track1)) > cfgV0RapidityMax) {
487+
if (cfgV0RapidityMax > 0 && std::abs(getV0Rapidity(track1)) > cfgV0RapidityMax) {
488488
continue; // V0s are not allowed to be outside the rapidity range
489489
}
490490
registry.fill(HIST("yvspt"), getV0Rapidity(track1), track1.pt());
@@ -565,7 +565,7 @@ struct CorrelationTask {
565565
if (cfgDecayParticleMask != 0 && (cfgDecayParticleMask & (1u << static_cast<uint32_t>(track2.decay()))) == 0u) {
566566
continue; // skip particles that do not match the decay mask
567567
}
568-
if (cfgV0RapidityMax > 0 && abs(getV0Rapidity(track1)) > cfgV0RapidityMax) {
568+
if (cfgV0RapidityMax > 0 && std::abs(getV0Rapidity(track1)) > cfgV0RapidityMax) {
569569
continue; // V0s are not allowed to be outside the rapidity range
570570
}
571571
}

0 commit comments

Comments
 (0)