Skip to content

Commit dc5990a

Browse files
authored
[PWGLF] Replace TMath::Abs with std::abs in etaChargeConditionFunc, add include (#13036)
1 parent 6f74b40 commit dc5990a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PWGLF/Utils/inelGt.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
#include "TParticlePDG.h"
2525

26+
#include <cmath>
2627
#include <vector>
2728

2829
namespace o2
@@ -69,7 +70,7 @@ bool isINELgtNmc(TMcParticles particles, int nChToSatisfySelection, pdgDatabase
6970
ParticlesEtaAndCharge.resize(nParticles);
7071

7172
auto etaChargeConditionFunc = [](EtaCharge elem) {
72-
return ((TMath::Abs(elem.eta) < 1.0) && (TMath::Abs(elem.charge) > 0.001));
73+
return ((std::abs(elem.eta) < 1.0) && (std::abs(elem.charge) > 0.001));
7374
};
7475

7576
if (std::count_if(ParticlesEtaAndCharge.begin(), ParticlesEtaAndCharge.end(), etaChargeConditionFunc) > nChToSatisfySelection) {

0 commit comments

Comments
 (0)