Skip to content

Commit 3a4cbd3

Browse files
committed
replace std::fmod() with RecoDecay::constrainAngle()
1 parent 40d784f commit 3a4cbd3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Common/Tools/PID/pidTPCModule.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "Common/CCDB/ctpRateFetcher.h"
2525
#include "Common/Core/CollisionTypeHelper.h"
2626
#include "Common/Core/PID/TPCPIDResponse.h"
27+
#include "Common/Core/RecoDecay.h"
2728
#include "Common/Core/TableHelper.h"
2829
#include "Common/DataModel/EventSelection.h"
2930
#include "Common/DataModel/PIDResponseTPC.h"
@@ -616,7 +617,7 @@ class pidTPCModule
616617
if (nnVersion == NNVersionWithModPhiEntrance) {
617618
phi += pidTPCopts.phiEntranceCoeff1 * LightSpeedDm2PS * 0.5 * pidTPCopts.phiEntranceCoeff2 * trk.signed1Pt();
618619
}
619-
trackProperties[counterTrackProps + IdxModPhi] = std::fmod(std::fmod(phi, o2::constants::math::TwoPI) + o2::constants::math::TwoPI, o2::constants::math::TwoPI / o2::constants::math::NSectors);
620+
trackProperties[counterTrackProps + IdxModPhi] = RecoDecay::constrainAngle(phi, 0.f, o2::constants::math::NSectors);
620621
}
621622
counterTrackProps += inputDimensions;
622623
}

0 commit comments

Comments
 (0)