Skip to content

Commit e5d64ac

Browse files
zchochulZuzanna Chochulska
andauthored
[PWGCF] FemtoUniverse -- Fix angular correlations (#9113)
Co-authored-by: Zuzanna Chochulska <01150674@pw.edu.pl>
1 parent 916dd1d commit e5d64ac

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

PWGCF/FemtoUniverse/Core/FemtoUniverseAngularContainer.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,13 @@ class FemtoUniverseAngularContainer
159159
deltaEta = part1.eta() - part2.eta();
160160

161161
deltaPhi = part1.phi() - part2.phi();
162-
deltaPhi = RecoDecay::constrainAngle(deltaPhi, 0);
162+
163+
while (deltaPhi < mPhiLow) {
164+
deltaPhi += o2::constants::math::TwoPI;
165+
}
166+
while (deltaPhi > mPhiHigh) {
167+
deltaPhi -= o2::constants::math::TwoPI;
168+
}
163169

164170
mHistogramRegistry->fill(HIST(FolderSuffix[EventType]) + HIST(o2::aod::femtouniverse_mc_particle::MCTypeName[mc]) + HIST("/DeltaEtaDeltaPhi"), deltaPhi, deltaEta, weight);
165171
if (use3dplots) {

0 commit comments

Comments
 (0)