Skip to content

Commit 7a785ee

Browse files
authored
fix the o2-linter error
Use std::fabs for absolute value of eta
1 parent edb8a3c commit 7a785ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PWGCF/Flow/Tasks/flowFlucGfwPp.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,14 +1015,14 @@ struct FlowFlucGfwPp {
10151015
registry.fill(HIST("qvecQA/ChTracks"), trk.pt(), trk.eta(), trk.phi());
10161016
}
10171017

1018-
if (trk.eta() > 0 && fabs(trk.eta()) < cfgQnTrkAbsEtaMax) {
1018+
if (trk.eta() > 0 && std::fabs(trk.eta()) < cfgQnTrkAbsEtaMax) {
10191019
// In qVectorsTable this branch is additionally guarded by useDetector["QvectorTPCposs"] || useDetector["QvectorBPoss"].
10201020
// Here TPCpos is always computed because the downstream ESE selector can require it.
10211021
qvec.qVectTPCPos[0] += trk.pt() * std::cos(trk.phi() * nMode);
10221022
qvec.qVectTPCPos[1] += trk.pt() * std::sin(trk.phi() * nMode);
10231023
qvec.trkTPCPosLabel.push_back(trk.globalIndex());
10241024
qvec.nTrkTPCPos++;
1025-
} else if (trk.eta() < 0 && fabs(trk.eta()) < cfgQnTrkAbsEtaMax) {
1025+
} else if (trk.eta() < 0 && std::fabs(trk.eta()) < cfgQnTrkAbsEtaMax) {
10261026
// In qVectorsTable this branch is additionally guarded by useDetector["QvectorTPCnegs"] || useDetector["QvectorBNegs"].
10271027
// Here TPCneg is always computed because the downstream ESE selector can require it.
10281028
qvec.qVectTPCNeg[0] += trk.pt() * std::cos(trk.phi() * nMode);

0 commit comments

Comments
 (0)