Skip to content

Commit 1ea9577

Browse files
[PWGDQ] Update VarManager.h to correct the cos theta definition in PP frame
Update VarManager.h to correct the cos theta definition in the production plane
1 parent f8f8fbc commit 1ea9577

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
@@ -2910,7 +2910,7 @@ void VarManager::FillPair(T1 const& t1, T2 const& t2, float* values)
29102910
ROOT::Math::XYZVector yaxis_PP{(v12.Vect()).Unit()};
29112911
ROOT::Math::XYZVector xaxis_PP{(yaxis_PP.Cross(zaxis_PP)).Unit()};
29122912
if (fgUsedVars[kCosThetaPP]) {
2913-
values[kCosThetaPP] = zaxis_PP.Dot(v_CM);
2913+
values[kCosThetaPP] = zaxis_PP.Dot(v_CM)/std::sqrt(zaxis_PP.Mag2());
29142914
}
29152915
if (fgUsedVars[kPhiPP]) {
29162916
values[kPhiPP] = TMath::ATan2(yaxis_PP.Dot(v_CM), xaxis_PP.Dot(v_CM));

0 commit comments

Comments
 (0)