From 4a4cd4b21b104d129e6420dda27ba6e6e11cf665 Mon Sep 17 00:00:00 2001 From: abmodak <67369858+abmodak@users.noreply.github.com> Date: Sat, 20 Sep 2025 09:55:27 +0200 Subject: [PATCH 1/3] Fix variable initialization --- PWGCF/TwoParticleCorrelations/Tasks/longrangeCorrelation.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PWGCF/TwoParticleCorrelations/Tasks/longrangeCorrelation.cxx b/PWGCF/TwoParticleCorrelations/Tasks/longrangeCorrelation.cxx index 6d6b811b66b..8231b3749f3 100644 --- a/PWGCF/TwoParticleCorrelations/Tasks/longrangeCorrelation.cxx +++ b/PWGCF/TwoParticleCorrelations/Tasks/longrangeCorrelation.cxx @@ -88,7 +88,7 @@ enum KindOfCorrType { kFT0AFT0C }; -static constexpr std::string_view kCorrType[] = {"Ft0aGlobal/", "Ft0cGlobal/", "MftGlobal/", "Ft0aMft/", "Ft0aFt0c"}; +static constexpr std::string_view kCorrType[] = {"Ft0aGlobal/", "Ft0cGlobal/", "MftGlobal/", "Ft0aMft/", "Ft0aFt0c/"}; static constexpr std::string_view kEvntType[] = {"SE/", "ME/"}; AxisSpec axisEvent{10, 0.5, 9.5, "#Event", "EventAxis"}; @@ -274,6 +274,8 @@ struct LongrangeCorrelation { auto x = chPos.X() + (*offsetFT0)[i].getX(); auto y = chPos.Y() + (*offsetFT0)[i].getY(); auto z = chPos.Z() + (*offsetFT0)[i].getZ(); + if (chno >= 96) + z = -z; auto r = std::sqrt(x * x + y * y); auto theta = std::atan2(r, z); return -std::log(std::tan(0.5 * theta)); From d295fcd09e09c02ff99d4f8366e63baa0e385db8 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Sat, 20 Sep 2025 07:56:19 +0000 Subject: [PATCH 2/3] Please consider the following formatting changes --- PWGCF/TwoParticleCorrelations/Tasks/longrangeCorrelation.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGCF/TwoParticleCorrelations/Tasks/longrangeCorrelation.cxx b/PWGCF/TwoParticleCorrelations/Tasks/longrangeCorrelation.cxx index 8231b3749f3..c68e9e374e1 100644 --- a/PWGCF/TwoParticleCorrelations/Tasks/longrangeCorrelation.cxx +++ b/PWGCF/TwoParticleCorrelations/Tasks/longrangeCorrelation.cxx @@ -274,7 +274,7 @@ struct LongrangeCorrelation { auto x = chPos.X() + (*offsetFT0)[i].getX(); auto y = chPos.Y() + (*offsetFT0)[i].getY(); auto z = chPos.Z() + (*offsetFT0)[i].getZ(); - if (chno >= 96) + if (chno >= 96) z = -z; auto r = std::sqrt(x * x + y * y); auto theta = std::atan2(r, z); From 167dade80ae69f7d61cc218c280d492cd889e8c2 Mon Sep 17 00:00:00 2001 From: abmodak <67369858+abmodak@users.noreply.github.com> Date: Sat, 20 Sep 2025 10:06:47 +0200 Subject: [PATCH 3/3] Fix o2 linter error --- PWGCF/TwoParticleCorrelations/Tasks/longrangeCorrelation.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PWGCF/TwoParticleCorrelations/Tasks/longrangeCorrelation.cxx b/PWGCF/TwoParticleCorrelations/Tasks/longrangeCorrelation.cxx index c68e9e374e1..0d93030b56c 100644 --- a/PWGCF/TwoParticleCorrelations/Tasks/longrangeCorrelation.cxx +++ b/PWGCF/TwoParticleCorrelations/Tasks/longrangeCorrelation.cxx @@ -90,7 +90,7 @@ enum KindOfCorrType { static constexpr std::string_view kCorrType[] = {"Ft0aGlobal/", "Ft0cGlobal/", "MftGlobal/", "Ft0aMft/", "Ft0aFt0c/"}; static constexpr std::string_view kEvntType[] = {"SE/", "ME/"}; - +auto static constexpr kMinFt0cCell = 96; AxisSpec axisEvent{10, 0.5, 9.5, "#Event", "EventAxis"}; struct LongrangeCorrelation { @@ -274,7 +274,7 @@ struct LongrangeCorrelation { auto x = chPos.X() + (*offsetFT0)[i].getX(); auto y = chPos.Y() + (*offsetFT0)[i].getY(); auto z = chPos.Z() + (*offsetFT0)[i].getZ(); - if (chno >= 96) + if (chno >= kMinFt0cCell) z = -z; auto r = std::sqrt(x * x + y * y); auto theta = std::atan2(r, z);