Skip to content

Commit 0107a40

Browse files
dsekihatmtorresc15
authored andcommitted
[PWGEM/Dilepton] fix phi position range (AliceO2Group#15417)
1 parent ac9b528 commit 0107a40

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

PWGEM/Dilepton/Core/DielectronCut.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ class DielectronCut : public TNamed
416416

417417
case DielectronCuts::kTrackPhiPositionRange: {
418418
float phiPosition = track.phi() + std::asin(-0.30282 * track.sign() * (mBz * 0.1) * mRefR / (2.f * track.pt()));
419+
phiPosition = RecoDecay::constrainAngle(phiPosition, 0, 1U); // 0-2pi
419420

420421
if (mMinTrackPhiPosition < 0.f && mMaxTrackPhiPosition < M_PI) { // threshold across 0 rad.
421422
o2::math_utils::bringToPMPi(phiPosition);

0 commit comments

Comments
 (0)