Skip to content

Commit df7102f

Browse files
[PWGDQ] Update VarManager.h to correct the cos theta definition in PP frame (#11451)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 2aaed28 commit df7102f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PWGDQ/Core/VarManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2917,7 +2917,7 @@ void VarManager::FillPair(T1 const& t1, T2 const& t2, float* values)
29172917
ROOT::Math::XYZVector yaxis_PP{(v12.Vect()).Unit()};
29182918
ROOT::Math::XYZVector xaxis_PP{(yaxis_PP.Cross(zaxis_PP)).Unit()};
29192919
if (fgUsedVars[kCosThetaPP]) {
2920-
values[kCosThetaPP] = zaxis_PP.Dot(v_CM);
2920+
values[kCosThetaPP] = zaxis_PP.Dot(v_CM) / std::sqrt(zaxis_PP.Mag2());
29212921
}
29222922
if (fgUsedVars[kPhiPP]) {
29232923
values[kPhiPP] = TMath::ATan2(yaxis_PP.Dot(v_CM), xaxis_PP.Dot(v_CM));

0 commit comments

Comments
 (0)