From 1ea95779d278f3174943116cfb515fc864e15a34 Mon Sep 17 00:00:00 2001 From: Kangkan Goswami Date: Tue, 3 Jun 2025 11:00:31 +0530 Subject: [PATCH 1/2] [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 --- PWGDQ/Core/VarManager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGDQ/Core/VarManager.h b/PWGDQ/Core/VarManager.h index 1da8fa30562..d6e370378ac 100644 --- a/PWGDQ/Core/VarManager.h +++ b/PWGDQ/Core/VarManager.h @@ -2910,7 +2910,7 @@ void VarManager::FillPair(T1 const& t1, T2 const& t2, float* values) ROOT::Math::XYZVector yaxis_PP{(v12.Vect()).Unit()}; ROOT::Math::XYZVector xaxis_PP{(yaxis_PP.Cross(zaxis_PP)).Unit()}; if (fgUsedVars[kCosThetaPP]) { - values[kCosThetaPP] = zaxis_PP.Dot(v_CM); + values[kCosThetaPP] = zaxis_PP.Dot(v_CM)/std::sqrt(zaxis_PP.Mag2()); } if (fgUsedVars[kPhiPP]) { values[kPhiPP] = TMath::ATan2(yaxis_PP.Dot(v_CM), xaxis_PP.Dot(v_CM)); From 9f2cd3f88706baf7ef427fb02a51a26f329140d4 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Tue, 3 Jun 2025 05:31:44 +0000 Subject: [PATCH 2/2] Please consider the following formatting changes --- PWGDQ/Core/VarManager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGDQ/Core/VarManager.h b/PWGDQ/Core/VarManager.h index d6e370378ac..c4bc733a76b 100644 --- a/PWGDQ/Core/VarManager.h +++ b/PWGDQ/Core/VarManager.h @@ -2910,7 +2910,7 @@ void VarManager::FillPair(T1 const& t1, T2 const& t2, float* values) ROOT::Math::XYZVector yaxis_PP{(v12.Vect()).Unit()}; ROOT::Math::XYZVector xaxis_PP{(yaxis_PP.Cross(zaxis_PP)).Unit()}; if (fgUsedVars[kCosThetaPP]) { - values[kCosThetaPP] = zaxis_PP.Dot(v_CM)/std::sqrt(zaxis_PP.Mag2()); + values[kCosThetaPP] = zaxis_PP.Dot(v_CM) / std::sqrt(zaxis_PP.Mag2()); } if (fgUsedVars[kPhiPP]) { values[kPhiPP] = TMath::ATan2(yaxis_PP.Dot(v_CM), xaxis_PP.Dot(v_CM));