Skip to content

Commit 9ed3b32

Browse files
[PWGDQ] Calculation of kDeltaPhiPair2 in FillPairME (AliceO2Group#8269)
1 parent 8151a22 commit 9ed3b32

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

PWGDQ/Core/VarManager.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2896,6 +2896,17 @@ void VarManager::FillPairME(T1 const& t1, T2 const& t2, float* values)
28962896
values[kPhi] = v12.Phi() > 0 ? v12.Phi() : v12.Phi() + 2. * M_PI;
28972897
values[kRap] = -v12.Rapidity();
28982898

2899+
if (fgUsedVars[kDeltaPhiPair2]) {
2900+
double phipair2ME = v1.Phi() - v2.Phi();
2901+
if (phipair2ME > 3 * TMath::Pi() / 2) {
2902+
values[kDeltaPhiPair2] = phipair2ME - 2 * TMath::Pi();
2903+
} else if (phipair2ME < -TMath::Pi() / 2) {
2904+
values[kDeltaPhiPair2] = phipair2ME + 2 * TMath::Pi();
2905+
} else {
2906+
values[kDeltaPhiPair2] = phipair2ME;
2907+
}
2908+
}
2909+
28992910
// TODO: provide different computations for vn
29002911
// Compute the scalar product UQ for two muon from different event using Q-vector from A, for second and third harmonic
29012912
values[kU2Q2Ev1] = values[kQ2X0A1] * std::cos(2 * v1.Phi()) + values[kQ2Y0A1] * std::sin(2 * v1.Phi());

0 commit comments

Comments
 (0)