Skip to content

Commit eedec5e

Browse files
committed
TwoParticleCorrelations: Fix abs bugs
1 parent 7900bb8 commit eedec5e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎PWGCF/TwoParticleCorrelations/Core/EventSelectionFilterAndAnalysis.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ inline void EventSelectionFilterAndAnalysis::StoreMultiplicities(CollisionToFilt
142142
/* we require tracks with pT > 0.15 and |eta| < 0.8 and additionally the TPCout flag */
143143
/* for the time being there is not TPCout flag, we just consider hasTPC */
144144
for (auto track : tracks) {
145-
if (track.pt() > 0.15 and abs(track.eta()) < 0.8 and track.hasTPC()) {
145+
if (track.pt() > 0.15 and std::abs(track.eta()) < 0.8 and track.hasTPC()) {
146146
ntracksTPCout++;
147147
}
148148
}

‎PWGCF/TwoParticleCorrelations/Core/SkimmingConfigurableCuts.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,8 @@ class TrackSelectionBrick : public SpecialCutBrick
548548
((mRequireTPCRefit) ? (track.flags() & o2::aod::track::TPCrefit) : true) &&
549549
((mRequireGoldenChi2) ? (track.flags() & o2::aod::track::GoldenChi2) : true) &&
550550
FulfillsITSHitRequirements(track.itsClusterMap()) &&
551-
(mCheckMaxDcaXY && (abs(track.dcaXY()) <= ((mMaxDcaXYPtDep) ? mMaxDcaXYPtDep(track.pt()) : mMaxDcaXY))) &&
552-
(mCheckMaxDcaZ && (abs(track.dcaZ()) <= mMaxDcaZ))) {
551+
(mCheckMaxDcaXY && (std::abs(track.dcaXY()) <= ((mMaxDcaXYPtDep) ? mMaxDcaXYPtDep(track.pt()) : mMaxDcaXY))) &&
552+
(mCheckMaxDcaZ && (std::abs(track.dcaZ()) <= mMaxDcaZ))) {
553553
this->mState = this->kACTIVE;
554554
return true;
555555
} else {

0 commit comments

Comments
 (0)