From 0d73236aaeb5d525884e8a41509bff5bde2bd8ff Mon Sep 17 00:00:00 2001 From: cnkoster Date: Tue, 16 Sep 2025 14:54:12 +0200 Subject: [PATCH 1/2] fix typo in shift correction --- PWGCF/Flow/TableProducer/zdcQVectors.cxx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/PWGCF/Flow/TableProducer/zdcQVectors.cxx b/PWGCF/Flow/TableProducer/zdcQVectors.cxx index 14206f7b732..90bdb61c1f2 100644 --- a/PWGCF/Flow/TableProducer/zdcQVectors.cxx +++ b/PWGCF/Flow/TableProducer/zdcQVectors.cxx @@ -956,15 +956,13 @@ struct ZdcQVectors { int binshiftxZDCA = cal.shiftprofileA->FindBin(centrality, 0.5, ishift - 0.5); int binshiftyZDCA = cal.shiftprofileA->FindBin(centrality, 1.5, ishift - 0.5); - if (binshiftxZDCC > 0 && binshiftyZDCC > 0 && binshiftxZDCA > 0 && binshiftyZDCA > 0) { - coeffshiftxZDCC = cal.shiftprofileC->GetBinContent(binshiftxZDCC); - coeffshiftyZDCC = cal.shiftprofileC->GetBinContent(binshiftyZDCC); - coeffshiftxZDCA = cal.shiftprofileA->GetBinContent(binshiftxZDCA); - coeffshiftyZDCA = cal.shiftprofileA->GetBinContent(binshiftyZDCA); - } - deltaPsiZDCC += deltaPsiZDCC + ((2 / (1.0 * ishift)) * (-coeffshiftxZDCC * std::cos(ishift * 1.0 * psiZDCC) + coeffshiftyZDCC * std::sin(ishift * 1.0 * psiZDCC))); - deltaPsiZDCA += deltaPsiZDCA + ((2 / (1.0 * ishift)) * (-coeffshiftxZDCA * std::cos(ishift * 1.0 * psiZDCA) + coeffshiftyZDCA * std::sin(ishift * 1.0 * psiZDCA))); + if (binshiftxZDCC > 0) coeffshiftxZDCC = cal.shiftprofileC->GetBinContent(binshiftxZDCC); + if (binshiftyZDCC > 0) coeffshiftyZDCC = cal.shiftprofileC->GetBinContent(binshiftyZDCC); + if (binshiftxZDCA > 0) coeffshiftxZDCA = cal.shiftprofileA->GetBinContent(binshiftxZDCA); + if (binshiftyZDCA > 0) coeffshiftyZDCA = cal.shiftprofileA->GetBinContent(binshiftyZDCA); } + deltaPsiZDCC += ((2 / (1.0 * ishift)) * (-coeffshiftxZDCC * std::cos(ishift * 1.0 * psiZDCC) + coeffshiftyZDCC * std::sin(ishift * 1.0 * psiZDCC))); + deltaPsiZDCA += ((2 / (1.0 * ishift)) * (-coeffshiftxZDCA * std::cos(ishift * 1.0 * psiZDCA) + coeffshiftyZDCA * std::sin(ishift * 1.0 * psiZDCA))); } psiZDCCshift += deltaPsiZDCC; From 3b222efeb3cb73909dff4291dde4e27a10618a3f Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Tue, 16 Sep 2025 13:03:03 +0000 Subject: [PATCH 2/2] Please consider the following formatting changes --- PWGCF/Flow/TableProducer/zdcQVectors.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/PWGCF/Flow/TableProducer/zdcQVectors.cxx b/PWGCF/Flow/TableProducer/zdcQVectors.cxx index 90bdb61c1f2..2afc85d23f5 100644 --- a/PWGCF/Flow/TableProducer/zdcQVectors.cxx +++ b/PWGCF/Flow/TableProducer/zdcQVectors.cxx @@ -956,10 +956,14 @@ struct ZdcQVectors { int binshiftxZDCA = cal.shiftprofileA->FindBin(centrality, 0.5, ishift - 0.5); int binshiftyZDCA = cal.shiftprofileA->FindBin(centrality, 1.5, ishift - 0.5); - if (binshiftxZDCC > 0) coeffshiftxZDCC = cal.shiftprofileC->GetBinContent(binshiftxZDCC); - if (binshiftyZDCC > 0) coeffshiftyZDCC = cal.shiftprofileC->GetBinContent(binshiftyZDCC); - if (binshiftxZDCA > 0) coeffshiftxZDCA = cal.shiftprofileA->GetBinContent(binshiftxZDCA); - if (binshiftyZDCA > 0) coeffshiftyZDCA = cal.shiftprofileA->GetBinContent(binshiftyZDCA); + if (binshiftxZDCC > 0) + coeffshiftxZDCC = cal.shiftprofileC->GetBinContent(binshiftxZDCC); + if (binshiftyZDCC > 0) + coeffshiftyZDCC = cal.shiftprofileC->GetBinContent(binshiftyZDCC); + if (binshiftxZDCA > 0) + coeffshiftxZDCA = cal.shiftprofileA->GetBinContent(binshiftxZDCA); + if (binshiftyZDCA > 0) + coeffshiftyZDCA = cal.shiftprofileA->GetBinContent(binshiftyZDCA); } deltaPsiZDCC += ((2 / (1.0 * ishift)) * (-coeffshiftxZDCC * std::cos(ishift * 1.0 * psiZDCC) + coeffshiftyZDCC * std::sin(ishift * 1.0 * psiZDCC))); deltaPsiZDCA += ((2 / (1.0 * ishift)) * (-coeffshiftxZDCA * std::cos(ishift * 1.0 * psiZDCA) + coeffshiftyZDCA * std::sin(ishift * 1.0 * psiZDCA)));