From 94bd056f25f53934d87907203dac3229ad1d0bca Mon Sep 17 00:00:00 2001 From: Chiara De Martin Date: Tue, 1 Dec 2026 17:57:55 +0100 Subject: [PATCH] correct for resolution on the fly for Omega --- PWGLF/TableProducer/Strangeness/cascadeflow.cxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/PWGLF/TableProducer/Strangeness/cascadeflow.cxx b/PWGLF/TableProducer/Strangeness/cascadeflow.cxx index 5a53bfa2b03..c31c6545b1a 100644 --- a/PWGLF/TableProducer/Strangeness/cascadeflow.cxx +++ b/PWGLF/TableProducer/Strangeness/cascadeflow.cxx @@ -1712,6 +1712,12 @@ struct cascadeFlow { ComputeEPResolutionwShifts(coll, psiT0C, psiT0C, psiT0C, psiTPCA, psiTPCC, shiftprofileFT0C, shiftprofileTPCL, shiftprofileTPCR, shiftprofileFT0C, shiftprofileFT0C); } + double EPresolution = 1; + if (applyResoCorrection) { + int centBin = hReso->FindBin(coll.centFT0C()); + EPresolution = hReso->GetBinContent(centBin); + } + histos.fill(HIST("hPsiT0C"), psiT0CCorr); histos.fill(HIST("hPsiT0CvsCentFT0C"), coll.centFT0C(), psiT0CCorr); @@ -1855,11 +1861,11 @@ struct cascadeFlow { int chargeIndex = 0; if (casc.sign() > 0) chargeIndex = 1; - double pzs2Xi = cosThetaStarLambda[0] * std::sin(2 * (casc.phi() - psiT0CCorr)) / cascadev2::AlphaXi[chargeIndex] / meanCos2ThetaLambdaFromXi; - double pzs2Omega = cosThetaStarLambda[1] * std::sin(2 * (casc.phi() - psiT0CCorr)) / cascadev2::AlphaOmega[chargeIndex] / meanCos2ThetaLambdaFromOmega; + double pzs2Xi = cosThetaStarLambda[0] * std::sin(2 * (casc.phi() - psiT0CCorr)) / cascadev2::AlphaXi[chargeIndex] / meanCos2ThetaLambdaFromXi / EPresolution; + double pzs2Omega = cosThetaStarLambda[1] * std::sin(2 * (casc.phi() - psiT0CCorr)) / cascadev2::AlphaOmega[chargeIndex] / meanCos2ThetaLambdaFromOmega / EPresolution; double cos2ThetaXi = cosThetaStarLambda[0] * cosThetaStarLambda[0]; double cos2ThetaOmega = cosThetaStarLambda[1] * cosThetaStarLambda[1]; - double pzs2LambdaFromCasc = cosThetaStarProton * std::sin(2 * (casc.phi() - psiT0CCorr)) / cascadev2::AlphaLambda[chargeIndex] / meanCos2ThetaProtonFromLambda; + double pzs2LambdaFromCasc = cosThetaStarProton * std::sin(2 * (casc.phi() - psiT0CCorr)) / cascadev2::AlphaLambda[chargeIndex] / meanCos2ThetaProtonFromLambda / EPresolution; double cos2ThetaLambda = cosThetaStarProton * cosThetaStarProton; double cosThetaXiWithAlpha = cosThetaStarLambda[0] / cascadev2::AlphaXi[chargeIndex];