Skip to content

Commit 91197e0

Browse files
authored
Replace TMath::Abs with std::abs in etaChargeConditionFunc, add include
1 parent baa39ec commit 91197e0

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
@@ -24,6 +24,7 @@
2424
#include "TParticlePDG.h"
2525

2626
#include <vector>
27+
#include <cmath>
2728

2829
namespace o2
2930
{
@@ -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)